repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nvim: more laziness and windows stuff

661f145b39ea4f326f343b66c3f0ba2211cd4bd3

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (20)

neovim/lazy-lock.json

Modified
4 4 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
5 5 "better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" },
6 6 "cmp-omni": { "branch": "main", "commit": "9436e6cdd7c5dfa24a99a60d9280b24dbdea3649" },
7 7 "dressing.nvim": { "branch": "master", "commit": "e6eff7a5a950a853c3903d906dbcea03f778db5f" },
8 - "gitsigns.nvim": { "branch": "main", "commit": "adcf2c7f2f495f5df148683764bf7cba6a70f34c" },
8 + "gitsigns.nvim": { "branch": "main", "commit": "bb808fc7376ed7bac0fbe8f47b83d4bf01738167" },
9 9 "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" },
10 10 "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" },
11 11 "hlargs.nvim": { "branch": "main", "commit": "cfc9beab4e176a13311efe03e38e6b6fed5df4f6" },
12 12 "lazy.nvim": { "branch": "main", "commit": "14d76aac4bd3ff07c1fca074c210f28f766a931e" },
13 13 "lush.nvim": { "branch": "main", "commit": "b10ef2bfff0647e701b691019ade3edd5e44eb50" },
14 14 "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
15 - "noice.nvim": { "branch": "main", "commit": "74f9155f2ff2f7172d5709c8df9357ba69b834db" },
15 + "noice.nvim": { "branch": "main", "commit": "40d670ef8935af3bf5df44ca27d83dcf1d75f0fd" },
16 16 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
17 17 "nui.nvim": { "branch": "main", "commit": "7a524120a7a70761b5a65b602fd235a65cb005aa" },
18 18 "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" },
24 24 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
25 25 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
26 26 "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" },
27 - "nvim-treesitter": { "branch": "master", "commit": "461d841771c7a576e5fd33d1320934a4a0f1dbc9" },
27 + "nvim-treesitter": { "branch": "master", "commit": "9fa6806b88905d52b5ca36094909630919b432cc" },
28 28 "nvim-treesitter-textobjects": { "branch": "master", "commit": "52f1f3280d9092bfaee5c45be5962fabee3d9654" },
29 29 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
30 30 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" },
34 34 "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
35 35 "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
36 36 "substitute.nvim": { "branch": "main", "commit": "42d09f1e6324d98aa2e5b765b64528e0aefe72b0" },
37 - "telescope-file-browser.nvim": { "branch": "master", "commit": "e03ff55962417b69c85ef41424079bb0580546ba" },
38 - "telescope-fzf-native.nvim": { "branch": "main", "commit": "9bc8237565ded606e6c366a71c64c0af25cd7a50" },
39 37 "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" },
40 38 "telescope.nvim": { "branch": "0.1.x", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
41 39 "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
42 - "tokyonight.nvim": { "branch": "main", "commit": "a0a7bfbc4c54348b56880a162afac9d103c618c1" },
43 40 "treesj": { "branch": "main", "commit": "3203aa553217921fd4dcb79245f9df07278910b2" },
44 41 "virt-column.nvim": { "branch": "master", "commit": "93b40ea038f676f5a72d7d1f2336fe7b051fc0ce" }

neovim/lua/bugabinga/lazy.lua

Modified
25 25 install = {
26 26 missing = true,
27 - colorthemes = { 'lunaperche' },
29 28 checker = {
30 - enabled = true,
29 + enabled = not vim.loop.os_uname().sysname:match'Win',
32 31 ui = {
33 32 size = { width = 0.69 , heigth = 0.69 },

neovim/lua/bugabinga/lsp.lua

Deleted
deleted file mode 100644
1 -local icon = require 'std.icon'
2 -local map = require 'std.keymap'
3 -local auto = require 'std.auto'
4 -local project = require 'std.project'
5 -local want = require 'std.want'
7 --- TODO: setup codelens -> use lsp-signature plugin?
8 --- TODO: setup custom cmp keybinds
9 -want {
10 - 'lsp-zero',
11 - 'null-ls',
12 - 'nvim-lsp-installer',
13 - 'neodev',
14 - 'rust-tools',
15 - 'nvim-navic',
16 - 'lsp-status',
17 -}(function(zero, null_ls, installer, neodev, rust, navic, lsp_status)
18 - installer.settings {
19 - ui = {
20 - --TODO: use some global float window settings
21 - border = 'rounded',
22 - },
23 - }
25 - zero.preset 'recommended'
26 - zero.set_preferences {
27 - configure_diagnostics = false,
28 - set_lsp_keymaps = false,
29 - sign_icons = {
30 - error = icon 'Error',
31 - warn = icon 'Warning',
32 - hint = icon 'Hint',
33 - info = icon 'Information',
34 - },
35 - }
37 - -- setup lsp for my neovim config
38 - zero.nvim_workspace {
39 - -- add paths of all plugins and neovim
40 - library = vim.api.nvim_get_runtime_file('', true),
41 - }
42 - -- Initialize rust_analyzer with rust-tools
43 - rust.setup {
44 - server = zero.build_options('rust_analyzer', {}),
45 - }
47 - -- this will prevent zero from loading this server.
48 - -- Java will be managed by nvim-jdtls, which wants to do things differently.
49 - -- see ftplugin/java.lua
50 - zero.build_options('jdtls', {})
52 - -- lua neovim lsp
53 - neodev.setup {
54 - lspconfig = zero.defaults.nvim_workspace(),
55 - }
57 - -- disable disco mode while typing
58 - zero.setup_nvim_cmp {
59 - completion = {
60 - autocomplete = false,
61 - },
62 - }
64 - local null_opts = zero.build_options 'null-ls'
66 - local formatting = null_ls.builtins.formatting
67 - local diagnostics = null_ls.builtins.diagnostics
68 - local code_actions = null_ls.builtins.code_actions
69 - local hover = null_ls.builtins.hover
70 - local completion = null_ls.builtins.completion
72 - -- run diagnostics on save
73 - local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE }
74 - null_ls.setup {
75 - on_attach = null_opts.on_attach,
76 - sources = {
77 - formatting.stylua,
78 - formatting.clang_format,
79 - formatting.jq,
80 - formatting.protolint,
81 - formatting.shellharden,
82 - formatting.shfmt,
83 - formatting.taplo,
85 - hover.dictionary,
87 - diagnostics.actionlint.with(diagnostics_on_save),
88 - diagnostics.checkmake.with(diagnostics_on_save),
89 - diagnostics.gitlint.with(diagnostics_on_save),
90 - diagnostics.protoc_gen_lint.with(diagnostics_on_save),
91 - diagnostics.protolint.with(diagnostics_on_save),
92 - diagnostics.selene.with(diagnostics_on_save).with {
93 - -- null-ls determines the root in a too simplistic manner.
94 - -- since my neovim configuration live inside my dotfiles, the dotfiles root
95 - -- was taken. but i want the neovim config folder as root.
96 - cwd = function(parameters)
97 - local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root)
98 - return root or parameters.root
99 - end,
100 - },
101 - diagnostics.shellcheck.with(diagnostics_on_save),
102 - diagnostics.tidy.with(diagnostics_on_save),
104 - code_actions.refactoring,
105 - code_actions.shellcheck,
107 - completion.luasnip,
108 - },
109 - }
111 - local function setup_keybinds_and_actions(client, buffer_number)
112 - -- TODO: use buffer number in keymaps
113 - -- TODO: make format changed lines command
114 - local capabilities = client.server_capabilities
115 - if capabilities.document_formatting then
116 - map.normal {
117 - name = 'Format buffer using LSP',
118 - category = "editing",
119 - keys = '<leader>' .. 'l' .. 'f',
120 - command = function()
121 - vim.lsp.buf.format { bufnr = buffer_number }
122 - vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number))
123 - end,
124 - }
125 - end
126 - if capabilities.document_range_formatting then
127 - map.visual {
128 - name = 'Format range using LSP',
129 - category = 'editing',
130 - keys = '<leader>' .. 'l' .. 'f',
131 - command = function()
132 - vim.lsp.buf.range_formatting { bufnr = buffer_number }
133 - vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number))
134 - end,
135 - }
136 - end
137 - --TODO: change some of these commands to telescoped versions
138 - if capabilities.hover then
139 - map.normal {
140 - name = 'Show Hover',
141 - category = 'view',
142 - keys = '<leader>' .. 'l' .. 'k',
143 - command = vim.lsp.buf.hover,
144 - }
145 - end
146 - if capabilities.goto_definition then
147 - map.normal {
148 - name = 'Go to Definition',
149 - category = 'navigation',
150 - keys = '<leader>' .. 'l' .. 'd',
151 - command = vim.lsp.buf.definition,
152 - }
153 - end
154 - if capabilities.declaration then
155 - map.normal {
156 - name = 'Go to Declaration',
157 - category = 'navigation',
158 - keys = '<leader>' .. 'l' .. 'd' .. 'd',
159 - command = vim.lsp.buf.declaration,
160 - }
161 - end
162 - if capabilities.implementation then
163 - map.normal {
164 - name = 'Go to Implementation',
165 - category = 'navigation',
166 - keys = '<leader>' .. 'l' .. 'i',
167 - command = vim.lsp.buf.implementation,
168 - }
169 - end
170 - if capabilities.type_definition then
171 - map.normal {
172 - name = 'Go to Type Definition',
173 - category = 'navigation',
174 - keys = '<leader>' .. 'l' .. 't',
175 - command = vim.lsp.buf.type_definition,
176 - }
177 - end
178 - if capabilities.find_references then
179 - map.normal {
180 - name = 'Go to References',
181 - category = 'navigation',
182 - keys = '<leader>' .. 'l' .. 'r',
183 - command = vim.lsp.buf.references
184 - }
185 - end
186 - if capabilities.call_hierarchy then
187 - map.normal {
188 - name = 'Go to Incoming Call',
189 - category = 'navigation',
190 - keys = '<leader>' .. 'l' .. 'c',
191 - command = vim.lsp.buf.incoming_calls,
192 - }
193 - map.normal {
194 - name = 'Go to Outgoing Call',
195 - category = 'navigation',
196 - keys = '<leader>' .. 'l' .. 'c' .. 'c',
197 - command = vim.lsp.buf.outgoing_calls,
198 - }
199 - end
200 - if capabilities.rename then
201 - map.normal {
202 - name = 'Rename symbol',
203 - category = 'editing',
204 - keys = 'f'2,
205 - command = vim.lsp.buf.rename,
206 - }
207 - end
208 - if capabilities.code_action then
209 - map.normal {
210 - name = 'Show code actions',
211 - category = 'view',
212 - keys = 'f'4,
213 - command = vim.lsp.buf.code_action,
214 - }
215 - map.visual {
216 - name = 'Show code actions in range',
217 - category = 'view',
218 - keys = 'f'4,
219 - command = vim.lsp.buf.range_code_action,
220 - }
221 - end
222 - if capabilities.document_highlight then
223 - -- this variable should technically be scoped to the current buffer.
224 - -- how to do that?
225 - local highlight_timer = nil
226 - auto 'highlight_reference_under_cursor' {
227 - {
228 - description = 'Automatically highlight a symbol under cursor',
229 - events = 'CursorHold',
230 - pattern = '<buffer>',
231 - command = function()
232 - if not highlight_timer then
233 - highlight_timer = vim.defer_fn(function()
234 - vim.lsp.buf.document_highlight()
235 - highlight_timer = nil
236 - end, 866)
237 - end
238 - end,
239 - },
240 - {
241 - description = 'Clear highlighted symbol under cursor',
242 - events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' },
243 - pattern = '<buffer>',
244 - command = function()
245 - if highlight_timer then
246 - highlight_timer:close()
247 - highlight_timer = nil
248 - end
249 - vim.lsp.buf.clear_references()
250 - end,
251 - },
252 - }
253 - end
254 - end
256 - zero.on_attach(function(client, buffer_number)
257 - if client.name ~= 'null-ls' and not vim.b.lsp_attached then
258 - navic.attach(client, buffer_number)
259 - lsp_status.on_attach(client, buffer_number)
260 - setup_keybinds_and_actions(client, buffer_number)
261 - end
262 - end)
264 - zero.setup()
265 -end)

neovim/lua/bugabinga/lsp.old

Added
new file mode 100644
1 +local icon = require 'std.icon'
2 +local map = require 'std.keymap'
3 +local auto = require 'std.auto'
4 +local project = require 'std.project'
5 +local want = require 'std.want'
7 +-- TODO: setup codelens -> use lsp-signature plugin?
8 +-- TODO: setup custom cmp keybinds
9 +want {
10 + 'lsp-zero',
11 + 'null-ls',
12 + 'nvim-lsp-installer',
13 + 'neodev',
14 + 'rust-tools',
15 + 'nvim-navic',
16 + 'lsp-status',
17 +}(function(zero, null_ls, installer, neodev, rust, navic, lsp_status)
18 + installer.settings {
19 + ui = {
20 + --TODO: use some global float window settings
21 + border = 'rounded',
22 + },
23 + }
25 + zero.preset 'recommended'
26 + zero.set_preferences {
27 + configure_diagnostics = false,
28 + set_lsp_keymaps = false,
29 + sign_icons = {
30 + error = icon 'Error',
31 + warn = icon 'Warning',
32 + hint = icon 'Hint',
33 + info = icon 'Information',
34 + },
35 + }
37 + -- setup lsp for my neovim config
38 + zero.nvim_workspace {
39 + -- add paths of all plugins and neovim
40 + library = vim.api.nvim_get_runtime_file('', true),
41 + }
42 + -- Initialize rust_analyzer with rust-tools
43 + rust.setup {
44 + server = zero.build_options('rust_analyzer', {}),
45 + }
47 + -- this will prevent zero from loading this server.
48 + -- Java will be managed by nvim-jdtls, which wants to do things differently.
49 + -- see ftplugin/java.lua
50 + zero.build_options('jdtls', {})
52 + -- lua neovim lsp
53 + neodev.setup {
54 + lspconfig = zero.defaults.nvim_workspace(),
55 + }
57 + -- disable disco mode while typing
58 + zero.setup_nvim_cmp {
59 + completion = {
60 + autocomplete = false,
61 + },
62 + }
64 + local null_opts = zero.build_options 'null-ls'
66 + local formatting = null_ls.builtins.formatting
67 + local diagnostics = null_ls.builtins.diagnostics
68 + local code_actions = null_ls.builtins.code_actions
69 + local hover = null_ls.builtins.hover
70 + local completion = null_ls.builtins.completion
72 + -- run diagnostics on save
73 + local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE }
74 + null_ls.setup {
75 + on_attach = null_opts.on_attach,
76 + sources = {
77 + formatting.stylua,
78 + formatting.clang_format,
79 + formatting.jq,
80 + formatting.protolint,
81 + formatting.shellharden,
82 + formatting.shfmt,
83 + formatting.taplo,
85 + hover.dictionary,
87 + diagnostics.actionlint.with(diagnostics_on_save),
88 + diagnostics.checkmake.with(diagnostics_on_save),
89 + diagnostics.gitlint.with(diagnostics_on_save),
90 + diagnostics.protoc_gen_lint.with(diagnostics_on_save),
91 + diagnostics.protolint.with(diagnostics_on_save),
92 + diagnostics.selene.with(diagnostics_on_save).with {
93 + -- null-ls determines the root in a too simplistic manner.
94 + -- since my neovim configuration live inside my dotfiles, the dotfiles root
95 + -- was taken. but i want the neovim config folder as root.
96 + cwd = function(parameters)
97 + local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root)
98 + return root or parameters.root
99 + end,
100 + },
101 + diagnostics.shellcheck.with(diagnostics_on_save),
102 + diagnostics.tidy.with(diagnostics_on_save),
104 + code_actions.refactoring,
105 + code_actions.shellcheck,
107 + completion.luasnip,
108 + },
111 + local function setup_keybinds_and_actions(client, buffer_number)
112 + -- TODO: use buffer number in keymaps
113 + -- TODO: make format changed lines command
114 + local capabilities = client.server_capabilities
115 + if capabilities.document_formatting then
116 + map.normal {
117 + name = 'Format buffer using LSP',
118 + category = "editing",
119 + keys = '<leader>' .. 'l' .. 'f',
120 + command = function()
121 + vim.lsp.buf.format { bufnr = buffer_number }
122 + vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number))
123 + end,
125 + end
126 + if capabilities.document_range_formatting then
127 + map.visual {
128 + name = 'Format range using LSP',
129 + category = 'editing',
130 + keys = '<leader>' .. 'l' .. 'f',
131 + command = function()
132 + vim.lsp.buf.range_formatting { bufnr = buffer_number }
133 + vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number))
134 + end,
136 + end
137 + --TODO: change some of these commands to telescoped versions
138 + if capabilities.hover then
139 + map.normal {
140 + name = 'Show Hover',
141 + category = 'view',
142 + keys = '<leader>' .. 'l' .. 'k',
143 + command = vim.lsp.buf.hover,
145 + end
146 + if capabilities.goto_definition then
147 + map.normal {
148 + name = 'Go to Definition',
149 + category = 'navigation',
150 + keys = '<leader>' .. 'l' .. 'd',
151 + command = vim.lsp.buf.definition,
153 + end
154 + if capabilities.declaration then
155 + map.normal {
156 + name = 'Go to Declaration',
157 + category = 'navigation',
158 + keys = '<leader>' .. 'l' .. 'd' .. 'd',
159 + command = vim.lsp.buf.declaration,
161 + end
162 + if capabilities.implementation then
163 + map.normal {
164 + name = 'Go to Implementation',
165 + category = 'navigation',
166 + keys = '<leader>' .. 'l' .. 'i',
167 + command = vim.lsp.buf.implementation,
169 + end
170 + if capabilities.type_definition then
171 + map.normal {
172 + name = 'Go to Type Definition',
173 + category = 'navigation',
174 + keys = '<leader>' .. 'l' .. 't',
175 + command = vim.lsp.buf.type_definition,
177 + end
178 + if capabilities.find_references then
179 + map.normal {
180 + name = 'Go to References',
181 + category = 'navigation',
182 + keys = '<leader>' .. 'l' .. 'r',
183 + command = vim.lsp.buf.references
185 + end
186 + if capabilities.call_hierarchy then
187 + map.normal {
188 + name = 'Go to Incoming Call',
189 + category = 'navigation',
190 + keys = '<leader>' .. 'l' .. 'c',
191 + command = vim.lsp.buf.incoming_calls,
193 + map.normal {
194 + name = 'Go to Outgoing Call',
195 + category = 'navigation',
196 + keys = '<leader>' .. 'l' .. 'c' .. 'c',
197 + command = vim.lsp.buf.outgoing_calls,
199 + end
200 + if capabilities.rename then
201 + map.normal {
202 + name = 'Rename symbol',
203 + category = 'editing',
204 + keys = 'f'2,
205 + command = vim.lsp.buf.rename,
207 + end
208 + if capabilities.code_action then
209 + map.normal {
210 + name = 'Show code actions',
211 + category = 'view',
212 + keys = 'f'4,
213 + command = vim.lsp.buf.code_action,
215 + map.visual {
216 + name = 'Show code actions in range',
217 + category = 'view',
218 + keys = 'f'4,
219 + command = vim.lsp.buf.range_code_action,
221 + end
222 + if capabilities.document_highlight then
223 + -- this variable should technically be scoped to the current buffer.
224 + -- how to do that?
225 + local highlight_timer = nil
226 + auto 'highlight_reference_under_cursor' {
228 + description = 'Automatically highlight a symbol under cursor',
229 + events = 'CursorHold',
230 + pattern = '<buffer>',
231 + command = function()
232 + if not highlight_timer then
233 + highlight_timer = vim.defer_fn(function()
234 + vim.lsp.buf.document_highlight()
235 + highlight_timer = nil
236 + end, 866)
237 + end
238 + end,
239 + },
241 + description = 'Clear highlighted symbol under cursor',
242 + events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' },
243 + pattern = '<buffer>',
244 + command = function()
245 + if highlight_timer then
246 + highlight_timer:close()
247 + highlight_timer = nil
248 + end
249 + vim.lsp.buf.clear_references()
250 + end,
251 + },
253 + end
254 + end
256 + zero.on_attach(function(client, buffer_number)
257 + if client.name ~= 'null-ls' and not vim.b.lsp_attached then
258 + navic.attach(client, buffer_number)
259 + lsp_status.on_attach(client, buffer_number)
260 + setup_keybinds_and_actions(client, buffer_number)
261 + end
262 + end)
264 + zero.setup()
265 +end)

neovim/lua/bugabinga/nugu/init.lua

Modified
58 58 DiffDelete { fg = content_focus, gui = "strikethrough" }, -- diff mode: Deleted line |diff.txt|
59 59 DiffChange { fg = content_important_global }, -- diff mode: Changed line |diff.txt|
60 60 DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt|
61 - EndOfBuffer { LineNr }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
61 + EndOfBuffer { Normal }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
62 62 TermCursor { lCursor }, -- cursor in a focused terminal
63 63 TermCursorNC { Cursor }, -- cursor in an unfocused terminal
64 64 ErrorMsg { fg = error.readable(), bg = error }, -- error messages on the command line

neovim/lua/bugabinga/options/keymaps.lua

Modified
4 4 local map = require 'std.keymap'
5 5 local want = require 'std.want'
7 7 -- set <SPACE> as leader key
8 8 map {
9 9 keys = '<space>',
10 - command = '<Nop>',
10 + command = '<nop>',
13 13 vim.g.mapleader = ' '
13 13 -- disable default ENTER binding
14 14 map {
15 15 keys = '<enter>',
16 - command = '<NOP>',
16 + command = '<nop>',
19 19 -- insert newline under or above in normal mode
46 46 -- disable command history keymap, because i fatfinger it too often
47 47 map {
48 48 keys = 'q:',
49 - command = '<NOP>',
49 + command = '<nop>',
52 52 map {
53 53 keys = 'Q:',
54 - command = '<NOP>',
54 + command = '<nop>',
57 57 map {
58 58 keys = 'q/',
59 - command = '<NOP>',
59 + command = '<nop>',
62 62 map {
63 63 keys = 'Q',
64 - command = '<NOP>',
64 + command = '<nop>',
67 67 -- disable them evil arrows
68 68 map {
69 69 keys = '<up>',
70 - command = '<NOP>',
70 + command = '<nop>',
73 73 map {
74 74 keys = '<down>',
75 - command = '<NOP>',
75 + command = '<nop>',
78 78 map {
79 79 keys = '<left>',
80 - command = '<NOP>',
80 + command = '<nop>',
83 83 map {
84 84 keys = '<right>',
85 - command = '<NOP>',
85 + command = '<nop>',
88 88 -- system clipboard copy and paste
200 200 command = vim.cmd.redo,
203 +map.normal {
204 + name = 'Move next in quickfix list',
205 + category = 'navigation',
206 + keys = '<A-bs>',
207 + command = '<cmd>cnext<cr>',
210 +map.normal {
211 + name = 'Move back in quickfix list',
212 + category = 'navigation',
213 + keys = '<bs>',
214 + command = '<cmd>cprevious<cr>',

neovim/lua/bugabinga/options/togglers.lua

Modified
1 +local icon = require'std.icon'
1 3 local _ = {}
3 -local toggle_on_icon = '蘒'
4 -local toggle_off_icon = '﨡'
5 +local toggle_on_icon = icon.toggle_on
6 +local toggle_off_icon = icon.toggle_off
7 9 local get_option = function(name) return vim.api.nvim_get_option_value(name, {}) end
50 52 table.insert(_, make_toggler(display_name, togglers ))
53 -add_toggler('暈', { make_option'spell' } )
54 -add_toggler(' ', { make_option'number', make_option'relativenumber'})
55 -add_toggler('―', { make_option'cursorline'} )
55 +add_toggler(icon.spelling, { make_option'spell' } )
56 +add_toggler(icon.linenumber, { make_option'number', make_option'relativenumber'})
57 +add_toggler(icon.linehighlight, { make_option'cursorline'} )
57 59 local tostring = function(self)
58 60 return vim.iter(self)
59 61 :map(toggler_tostring)
60 62 :fold('', function(buffer, text)
61 - return buffer .. (buffer == '' and '' or ' ') .. text
63 + return buffer .. (buffer == '' and '' or ' ') .. text
62 64 end)

neovim/lua/bugabinga/plugins/gitsigns.lua

Modified
1 1 return {
2 2 'lewis6991/gitsigns.nvim',
3 - branch='main',
3 + -- branch='main',
4 4 event = 'VeryLazy',
5 5 opts = {},

neovim/lua/bugabinga/plugins/heirline.lua

Modified
1 +local icon = require'std.icon'
1 2 local auto = require'std.auto'
3 4 return {
5 6 'rebelot/heirline.nvim',
6 - event = 'BufEnter',
7 + event = {'BufReadPost', 'BufNew'},
7 8 config = function()
8 9 local heirline = require'heirline'
9 10 local conditions = require("heirline.conditions")
80 81 provider = function(self)
81 - return "  %3(" .. self.mode_names[self.mode] .. "%) "
82 + return " ".. icon.vim .." %3(" .. self.mode_names[self.mode] .. "%) "
84 85 hl = function(self)
108 109 local file_name = {
109 110 init = function(self)
110 111 self.lfilename = vim.fn.fnamemodify(self.filename, ":.")
111 - if self.lfilename == "" then self.lfilename = " scratch " end
112 + if self.lfilename == "" then self.lfilename = "~scratch~" end
114 115 flexible = 2,
130 131 condition = function()
131 132 return vim.bo.modified
133 - provider = "  ",
134 + provider = string.format(" %s ", icon.modified),
134 135 hl = 'Comment',
137 138 condition = function()
138 139 return not vim.bo.modifiable or vim.bo.readonly
140 - provider = "",
141 + provider = string.format(" %s ", icon.lock),
141 142 hl = 'ErrorMsg',
157 158 local file_type = {
158 159 provider = function()
159 - return ' ' .. string.upper(vim.bo.filetype)
160 + return icon.file .. ' ' .. string.upper(vim.bo.filetype)
170 171 local file_format = {
171 172 static = {
172 - dos = '␤␍',
173 - unix = '␤',
174 - mac = '␍',
173 + dos = icon.newline .. icon.carriage_return,
174 + unix = icon.newline,
175 + mac = icon.carriage_return,
176 177 provider = function(self)
177 178 local fileformat = vim.bo.fileformat
213 214 for i, server in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do
214 215 table.insert(names, server.name)
216 - return " [" .. table.concat(names, " ") .. "]"
217 + return icon.lsp .. " [" .. table.concat(names, " ") .. "]"
220 221 local diagnostic_enabled = {
221 222 init = function(self)
222 - self.icon = vim.diagnostic.is_disabled() and '﨡' or '蘒'
223 + self.icon = vim.diagnostic.is_disabled() and icon.toggle_off or icon.toggle_on
224 225 provider = function(self)
225 - return ' ' .. self.icon
226 + return icon.diagnostic .. ' ' .. self.icon
309 310 provider = function(self)
310 - return '🐢  ' .. self.relative_url
311 + return icon.subversion .. ' ' .. icon.branch.. ' ' .. self.relative_url
324 325 provider = function(self)
325 - return "  " .. self.status_dict.head .. ' '
326 + return icon.git .. " " .. icon.branch .. " " .. self.status_dict.head .. ' '
329 330 provider = function(self)
330 331 local count = self.status_dict.added or 0
331 - return count > 0 and (" " .. count .. ' ')
332 + return count > 0 and (icon.diff_add .. " " .. count .. ' ')
333 334 hl = 'DiffAdd',
336 337 provider = function(self)
337 338 local count = self.status_dict.removed or 0
338 - return count > 0 and (" " .. count .. ' ')
339 + return count > 0 and (icon.diff_remove .. " " .. count .. ' ')
340 341 hl = 'DiffDelete',
343 344 provider = function(self)
344 345 local count = self.status_dict.changed or 0
345 - return count > 0 and (" " .. count .. ' ')
346 + return count > 0 and (icon.diff_change .. " " .. count .. ' ')
347 348 hl = 'DiffChange',
351 352 local work_dir = {
352 353 init = function(self)
353 - self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. " "
354 + self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. icon.folder .. " "
354 355 local cwd = vim.fn.getcwd(0)
355 356 self.cwd = vim.fn.fnamemodify(cwd, ":~")
395 396 provider = function()
396 397 local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "")
397 398 tname = vim.fs.basename(tname)
398 - return " " .. tname
399 + return icon.terminal .. " " .. tname
400 401 hl = 'Bold',
411 412 condition = function()
412 413 return vim.fn.reg_recording() ~= "" and vim.o.cmdheight == 0
414 - provider = " ",
415 + provider = icon.macro .. " ",
415 416 hl = 'PreProc',
416 417 utils.surround({ "░▒▓ ", " ▓▒░" }, nil, {
417 418 provider = function()
431 432 return ok and lazy_status.has_updates()
433 434 update = { "User", pattern = "LazyUpdate" },
434 - provider = function() return '  ' .. require'lazy.status'.updates() .. ' ' end,
435 + provider = function() return ' ' .. icon.lazy .. ' ' .. require'lazy.status'.updates() .. ' ' end,
435 436 on_click = {
436 437 callback = function() require'lazy'.update() end,
437 438 name = "update_plugins",

neovim/lua/bugabinga/plugins/hlargs.lua

Modified
1 -return {{
1 +return {
2 2 'm-demare/hlargs.nvim',
3 - event = 'VeryLazy',
3 + event = { 'BufReadPost', 'BufNewFile'},
4 4 opts = {
5 5 paint_arg_declarations = true,
6 6 paint_arg_usages = true,
17 17 dependencies = {
18 - -- 'nvim-treesitter/nvim-treesitter'
18 + 'nvim-treesitter/nvim-treesitter'
20 -}}

neovim/lua/bugabinga/plugins/neoclip.lua

Added
new file mode 100644
1 +local map = require'std.keymap'
3 +return {
4 + 'AckslD/nvim-neoclip.lua',
5 + keys = {'y', '<C-v><C-v>' },
6 + dependencies = {
7 + 'nvim-telescope/telescope.nvim',
8 + },
9 + config = function()
10 + local neoclip = require'neoclip'
11 + local telescope = require'telescope'
12 + local themes = require 'telescope.themes'
13 + local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } }
15 + neoclip.setup{}
16 + telescope.load_extension'neoclip'
18 + map.normal {
19 + name = 'Open clipboard history...',
20 + category = 'history',
21 + keys = '<C-v><C-v>',
22 + command = function() telescope.extensions.neoclip.default(cursor) end,
23 + }
25 + end,

neovim/lua/bugabinga/plugins/noice.lua

Modified
1 +local map = require'std.keymap'
1 3 return {
3 5 'folke/noice.nvim',
4 6 event = 'VeryLazy',
5 - branch = 'main',
6 7 opts = {
7 8 cmdline = {
8 9 view = 'cmdline', -- cmdline on bottom
31 32 -- cmdline = { relative = "cursor", position = { row = 0, col = 0 }, border = { style = "shadow" } },
35 + config = function(_, opts)
36 + local noice = require'noice'
37 + local telescope = require'telescope'
38 + noice.setup(opts)
39 + telescope.load_extension'noice'
41 + map.normal {
42 + name = 'Open search for notifications...',
43 + category = 'search',
44 + keys = '<C-n><C-n>',
45 + command = function() telescope.extensions.noice.noice() end,
46 + }
48 + end,
34 49 dependencies = {
35 50 'MunifTanjim/nui.nvim',
36 51 'rcarriga/nvim-notify',
52 + 'nvim-telescope/telescope.nvim',
45 61 local shadow_fade = function(...)
46 62 local opts = fade[1](...)
47 - if opts then
48 - opts.border = 'shadow'
49 - opts.row = opts.row - 1
50 - end
51 - return opts
63 + if opts then
64 + opts.border = 'shadow'
65 + opts.row = opts.row - 1
66 + end
67 + return opts
54 70 notify.setup {
58 74 fps = 140,
59 75 top_down = false,
61 - end,
77 + end,

neovim/lua/bugabinga/plugins/oil.lua

Modified
2 2 local map = require'std.keymap'
4 4 return {
5 5 'stevearc/oil.nvim',
6 - lazy = false,
7 - lazy = false,
6 + event = 'VeryLazy',
8 7 dependencies = { "nvim-tree/nvim-web-devicons" },
9 8 config = function()
10 9 local oil = require'oil'
11 10 oil.setup{
11 + skip_confirm_for_simple_edits = true,
12 + -- delete_to_trash = true,
13 + -- trash_command = 'rm', --nu command
12 15 colums = {
13 16 "icon",
14 17 "permissions",
15 18 "size",
19 + "mtime",
17 21 keymaps = {
18 22 ["q"] = "actions.close",
23 + ["<esc>"] = "actions.close",
24 + ["<C-/>"] = "actions.show_help",
25 + ["<C-v>"] = "actions.select_vsplit",
26 + ["<C-x>"] = "actions.select_split",
27 + ["<C-h>"] = "actions.toggle_hidden",
20 29 float = {
21 30 border = 'shadow',
27 36 name = 'Open parent directory in buffer.',
28 37 category = 'files',
29 38 keys = '-',
30 - command = oil.open_float,
39 + command = oil.open,
40 + -- command = oil.open_float,
32 42 end,

neovim/lua/bugabinga/plugins/surround.lua

Modified
1 1 return {
3 3 'kylechui/nvim-surround',
4 - event = 'VeryLazy',
4 + keys = { '<C-g>s', '<C-g>S', 'ms', 'mss', 'mS', 'mSS', 'S', 'gS', 'md', 'mr', 'mR'},
5 5 opts = {
6 6 keymaps = {
7 7 insert = '<C-g>s',
17 17 change_line = 'mR',
20 - -- dependencies = {
21 - -- 'nvim-treesitter/nvim-treesitter',
22 - -- 'nvim-treesitter/nvim-treesitter-textobjects',
23 - -- },
20 + dependencies = {
21 + 'nvim-treesitter/nvim-treesitter',
22 + },

neovim/lua/bugabinga/plugins/telescope.lua

Modified
13 13 return {
14 - {
15 - 'nvim-telescope/telescope.nvim',
16 - branch = '0.1.x',
17 - cmd = 'Telescope',
18 - event = 'VeryLazy',
19 - dependencies = {
20 - 'nvim-telescope/telescope-file-browser.nvim',
21 - 'nvim-lua/plenary.nvim',
22 - 'nvim-telescope/telescope-symbols.nvim',
23 - 'AckslD/nvim-neoclip.lua',
24 - 'nvim-tree/nvim-web-devicons',
25 - {
26 - 'nvim-telescope/telescope-fzf-native.nvim',
27 - build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build',
28 - },
29 - },
30 - config = function()
31 - local telescope = require 'telescope'
32 - local builtin = require 'telescope.builtin'
33 - local actions = require 'telescope.actions'
34 - local themes = require 'telescope.themes'
35 - local ivy = themes.get_ivy { layout_config = { preview_width = 0.69 } }
36 - local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } }
37 - local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } }
14 + 'nvim-telescope/telescope.nvim',
15 + branch = '0.1.x',
16 + cmd = 'Telescope',
17 + keys = { '<C-p><C-n>', '<C-e>', '<C-p><C-b>', '<C-p><C-g>', '<C-p><C-s>', '<C-p><C-k>', '<C-p><C-p>', '<C-p>', '<F1>' },
18 + dependencies = {
19 + 'nvim-lua/plenary.nvim',
20 + 'nvim-tree/nvim-web-devicons',
21 + 'nvim-telescope/telescope-symbols.nvim',
22 + },
23 + config = function()
24 + local telescope = require 'telescope'
25 + local builtin = require 'telescope.builtin'
26 + local actions = require 'telescope.actions'
27 + local themes = require 'telescope.themes'
28 + local ivy = themes.get_ivy { layout_config = { preview_width = 0.69 } }
29 + local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } }
30 + local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } }
32 + telescope.setup {
33 + defaults = {
34 + path_display = { 'truncate' },
35 + sorting_strategy = 'ascending',
36 + layout_config = {
37 + horizontal = { prompt_position = 'bottom', preview_width = 0.69 },
38 + vertical = { mirror = false },
39 + width = 0.69,
40 + height = 0.42,
41 + preview_cutoff = 124,
42 + },
43 + mappings = {
44 + i = {
45 + ['<C-j>'] = actions.cycle_history_next,
46 + ['<C-k>'] = actions.cycle_history_prev,
47 + ['<C-n>'] = actions.move_selection_next,
48 + ['<C-p>'] = actions.move_selection_previous,
49 + },
50 + n = { q = actions.close },
51 + },
52 + },
53 + }
40 - telescope.setup {
41 - defaults = {
42 - path_display = { 'truncate' },
43 - sorting_strategy = 'ascending',
44 - layout_config = {
45 - horizontal = { prompt_position = 'top', preview_width = 0.69 },
46 - vertical = { mirror = false },
47 - width = 0.88,
48 - height = 0.69,
49 - preview_cutoff = 124,
50 - },
51 - mappings = {
52 - i = {
53 - ['<C-j>'] = actions.cycle_history_next,
54 - ['<C-k>'] = actions.cycle_history_prev,
55 - ['<C-n>'] = actions.move_selection_next,
56 - ['<C-p>'] = actions.move_selection_previous,
57 - },
58 - n = { q = actions.close },
59 - },
60 - extensions = {
61 - file_browser = {
62 - theme = 'ivy',
63 - -- cwd_to_path = true,
64 - -- select_buffer = true,
65 - -- collapse_dirs = true,
66 - git_status = false,
67 - -- auto_depth = true,
68 - -- grouped = true,
69 - },
70 - },
71 - },
72 - }
55 + map.normal.visual.terminal {
56 + name = 'Search help files',
57 + category = 'help',
58 + keys = '<F1>',
59 + command = function() builtin.help_tags(dropdown) end,
60 + }
74 - require'neoclip'.setup{}
62 + map.normal {
63 + name = 'Open global search...',
64 + category = 'plugins',
65 + keys = '<C-p>',
66 + command = function() builtin.builtin() end,
67 + }
76 - local extensions = {
77 - 'fzf',
78 - 'noice',
79 - 'file_browser',
80 - 'neoclip',
81 - }
69 + map.normal {
70 + name = 'Open search for all files...',
71 + category = 'search',
72 + keys = '<C-p><C-p>',
73 + command = function() builtin.find_files(ivy) end,
74 + }
83 - for _, extension in pairs(extensions) do
84 - if not pcall(telescope.load_extension, extension) then
85 - vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error')
86 - end
87 - end
76 + map.normal {
77 + name = 'Open search for keymaps...',
78 + category = 'search',
79 + keys = '<C-p><C-k>',
80 + command = function() builtin.keymaps(dropdown) end,
81 + }
89 - map.normal {
90 - name = 'Open file explorer...',
91 - category = 'telescope',
92 - keys = '<C-b>',
93 - command = function()
94 - telescope.extensions.file_browser.file_browser()
95 - end,
96 - }
83 + map.normal {
84 + name = 'Open search for symbols...',
85 + category = 'search',
86 + keys = '<C-p><C-s>',
87 + command = function() builtin.symbols(cursor) end,
88 + }
98 - map.normal.visual.terminal {
99 - name = 'Search help files',
100 - category = 'help',
101 - keys = '<F1>',
102 - command = function() builtin.help_tags(dropdown) end,
103 - }
90 + map.normal {
91 + name = 'Open search for all file contents...',
92 + category = 'search',
93 + keys = '<C-p><C-g>',
94 + command = function() builtin.live_grep(ivy) end,
95 + }
105 - map.normal {
106 - name = 'Open file explorer with current file...',
107 - category = 'telescope',
108 - keys = '<C-b><C-b>',
109 - command = function()
110 - local path = vim.api.nvim_buf_get_name(0)
111 - telescope.extensions.file_browser.file_browser{ path = vim.fs.dirname(path), select_buffer = true }
112 - end,
113 - }
97 + map.normal {
98 + name = 'Open search for current buffer content...',
99 + category = 'search',
100 + keys = '<C-p><C-b>',
101 + command = function() builtin.current_buffer_fuzzy_find(ivy) end,
115 - map.normal {
116 - name = 'Open clipboard history...',
117 - category = 'history',
118 - keys = '<C-p><C-v>',
119 - command = function() telescope.extensions.neoclip.default(cursor) end,
120 - }
104 + map.normal {
105 + name = 'Open search for buffers...',
106 + category = 'search',
107 + keys = '<C-e>',
108 + command = function() builtin.buffers(cursor) end,
122 - map.normal {
123 - name = 'Open macro history...',
124 - category = 'history',
125 - keys = '<C-p><C-m>',
126 - command = function() telescope.extensions.macroscope.default(dropdown) end,
127 - }
129 - map.normal {
130 - name = 'Open global search...',
131 - category = 'plugins',
132 - keys = '<C-p>',
133 - command = function() builtin.builtin() end,
134 - }
136 - map.normal {
137 - name = 'Open search for all files...',
138 - category = 'search',
139 - keys = '<C-p><C-p>',
140 - command = function() builtin.find_files(ivy) end,
141 - }
143 - map.normal {
144 - name = 'Open search for keymaps...',
145 - category = 'search',
146 - keys = '<C-p><C-k>',
147 - command = function() builtin.keymaps(dropdown) end,
148 - }
150 - map.normal {
151 - name = 'Open search for symbols...',
152 - category = 'search',
153 - keys = '<C-p><C-s>',
154 - command = function() builtin.symbols(cursor) end,
155 - }
157 - map.normal {
158 - name = 'Open search for all file contents...',
159 - category = 'search',
160 - keys = '<C-p><C-g>',
161 - command = function() builtin.live_grep(ivy) end,
162 - }
164 - map.normal {
165 - name = 'Open search for current buffer content...',
166 - category = 'search',
167 - keys = '<C-p><C-b>',
168 - command = function() builtin.current_buffer_fuzzy_find(ivy) end,
169 - }
171 - map.normal {
172 - name = 'Open search for buffers...',
173 - category = 'search',
174 - keys = '<C-e>',
175 - command = function() builtin.buffers(cursor) end,
176 - }
178 - map.normal {
179 - name = 'Open search for notifications...',
180 - category = 'search',
181 - keys = '<C-p><C-n>',
182 - command = function() telescope.extensions.noice.noice() end,
183 - }
185 - end,
186 - },
111 + end,

neovim/lua/bugabinga/plugins/tokyonight.lua

Deleted
deleted file mode 100644
1 -return {
2 - {
3 - 'folke/tokyonight.nvim',
4 - lazy = false,
5 - priority = 1000,
6 - opts = {},
7 - },
8 -}

neovim/lua/bugabinga/plugins/treesj.lua

Modified
2 2 local map = require'std.keymap'
4 4 return {
5 5 'Wansmer/treesj',
6 - keys = '<leader-j>',
7 - -- dependencies = { 'nvim-treesitter/nvim-treesitter' },
6 + keys = '<leader>j',
7 + dependencies = { 'nvim-treesitter/nvim-treesitter' },
8 8 config = function()
9 9 local treesj = require'treesj'
10 10 treesj.setup {
13 13 map.normal {
14 14 name = 'Toggle Tree Join/Split',
15 15 category = 'editing',
16 - keys = '<leader-j>',
16 + keys = '<leader>j',
17 17 command = treesj.toggle,
19 19 end,

neovim/lua/bugabinga/plugins/virt-column.lua

Modified
1 1 return {
3 3 'lukas-reineke/virt-column.nvim',
4 - lazy = false,
4 + event = 'VeryLazy',
5 5 opts = {
6 6 char = '│',

neovim/lua/std/icon.lua

Added
new file mode 100644
1 +return {
2 + toggle_on = '',
3 + toggle_off = '',
4 + diagnostic = '⊙',
5 + spelling = '󰓆',
6 + linenumber = '󰉻',
7 + linehighlight = '―',
8 + modified = '',
9 + lock = '',
10 + file = '',
11 + newline = '␤',
12 + carriage_return = '␍',
13 + lsp = '',
14 + subversion = '🐢',
15 + vim = '',
16 + branch = '',
17 + git = '',
18 + diff_add = '',
19 + diff_remove = '',
20 + diff_change = '',
21 + folder = '',
22 + terminal = '',
23 + macro = '',
24 + lazy = '󰄻',

wezterm/wezterm.lua

Modified
11 11 local enable_wayland = false
12 12 local window_decorations = 'RESIZE'
13 13 local font_size = 11.0
14 -local font = wez.font 'IBM Plex Mono'
14 +local font = wez.font'IBM Plex Mono'
15 +local font_rules = {
16 + {
17 + intensity = 'Bold',
18 + italic = true,
19 + font = wez.font {
20 + family = 'VictorMono',
21 + weight = 'Bold',
22 + style = 'Italic',
23 + },
24 + },
25 + {
26 + italic = true,
27 + intensity = 'Half',
28 + font = wez.font {
29 + family = 'VictorMono',
30 + weight = 'DemiBold',
31 + style = 'Italic',
32 + },
33 + },
34 + {
35 + italic = true,
36 + intensity = 'Normal',
37 + font = wez.font {
38 + family = 'VictorMono',
39 + style = 'Italic',
40 + },
41 + },
16 44 if hostname == 'x230' then
17 45 font_size = 11
19 47 elseif hostname == 'pop-os' then
20 48 font_size = 16
21 49 elseif hostname == 'PC-00625' then
50 + font = wez.font'BlexMono Nerd Font'
22 51 font_size = 12
27 56 --debug_key_events = true,
29 58 font = font,
59 + font_rules = font_rules,
30 60 font_size = font_size,
31 61 underline_position = "-2pt",
32 62 warn_about_missing_glyphs = false,