repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: adds variuos keybinds

f63097f689fb3f99b916d612ba88e97b5c360fa2

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (22)

TODO.md

Modified
4 4 # To-Do
6 6 - [ ] write svn completions for nushell
7 7 - [ ] how to handle Notes and TODOs?
8 8 - [ ] interactive zoxide jump function with skim
9 9 - [ ] encrypt box key
10 +- [ ] encrypt codeberg key
10 11 - [ ] get SIM card to work on x230
11 -- [ ] rewrite bootstripper and java commands with zig. how to run them? precompile? zig run?
12 12 - [ ] move config into dorkfiles
13 13 - [ ] vscode
14 14 - [ ] systemd user
13 13 - [ ] learn basic helix
14 14 - [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
15 15 - [x] define dark palette
16 - - [ ] define light palette
17 - - [ ] define colors relative to base colors
16 + - [x] define light palette
17 + - [x] define colors relative to base colors
18 18 - [ ] create app themes
19 19 - [ ] helix
20 20 - [ ] eclipse
39 39 - [ ] systemd-udevd sometimes high cpu. why?
40 40 - [ ] desktop i/o and cpu schedulers
41 +- [ ] configure systemd-oomd
41 42 - [ ] x230 lnx kernel
42 43 - [ ] system status command into waybar:
43 44 - [x] network

neovim/init.lua

Modified
29 29 -- load ui stuff
30 30 require 'bugabinga.notify'
31 31 require 'bugabinga.colortheme'
32 -require 'bugabinga.colorcolumn'
33 32 require 'bugabinga.icons'
33 +require 'bugabinga.colorcolumn'
34 34 require 'bugabinga.fuzzy-search-ui'
35 35 require 'bugabinga.colorizer'
36 36 require 'bugabinga.smooth-scroll'
67 67 -- TODO: preview multimedia with telescope
68 68 -- TODO: icon facade: icon.get("name")
69 69 -- TODO: use nvim-specific lsp only in neovim config
70 +-- TODO: is it possible to cache LSP init per project?
70 71 -- TODO: stop treesitter error highlight while typing
71 72 -- TODO: fix gitsigns highights
72 73 -- TODO: hydra cycle buffers
94 95 -- https://github.com/rktjmp/lush.nvim
95 96 -- https://github.com/jbyuki/venn.nvim
96 97 -- https://github.com/ziontee113/color-picker.nvim
98 +-- https://github.com/sQVe/sort.nvim
99 +-- https://github.com/ThePrimeagen/harpoon
98 101 -- DAP PLUGINS
99 102 -- https://github.com/mfussenegger/nvim-dap

neovim/lua/bugabinga/colortheme.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 -want { 'boo-colorscheme' }(function(boo)
3 - boo.use()
2 +want { 'boo-colorscheme' } (function(boo)
3 + boo.use()
4 4 end)

neovim/lua/bugabinga/fast-navigation.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 -want { 'leap' }(function(leap)
3 - --FIXME should these bindings go into command center? or hydra?
4 - leap.set_default_keymaps()
2 +want { 'leap' } (function(leap)
3 + leap.set_default_keymaps()
5 4 end)

neovim/lua/bugabinga/file-explorer.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 -want { 'window-picker', 'neo-tree' }(function(picker, tree)
3 - picker.setup {
4 - autoselect_one = true,
5 - include_current = false,
6 - filter_rules = {
7 - -- filter using buffer options
8 - bo = {
9 - -- if the file type is one of following, the window will be ignored
10 - filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' },
2 +local map = require'bugabinga.std.keymap'
3 +local fmt = require'bugabinga.std.fmt'
12 - -- if the buffer type is one of following, the window will be ignored
13 - buftype = { 'terminal' },
14 - },
15 - },
16 - other_win_hl_color = '#e35e4f',
17 - }
5 +want {
6 + 'window-picker',
7 + 'neo-tree',
8 + 'nvim-web-devicons',
9 +} (function(picker, tree, icons)
10 + local icon = icons.get_icon
19 - -- Unless you are still migrating, remove the deprecated commands from v1.x
20 - vim.g.neo_tree_remove_legacy_commands = 1
12 + picker.setup {
13 + autoselect_one = true,
14 + include_current = false,
15 + filter_rules = {
16 + -- filter using buffer options
17 + bo = {
18 + -- if the file type is one of following, the window will be ignored
19 + filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' },
22 - -- FIXME: use icons from devicons
23 - -- FIXME: make keybinding
21 + -- if the buffer type is one of following, the window will be ignored
22 + buftype = { 'terminal' },
23 + },
24 + },
25 + --TODO: get this color from colortheme
26 + other_win_hl_color = '#7e297e',
27 + }
25 - -- If you want icons for diagnostic errors, you'll need to define them somewhere:
26 - vim.fn.sign_define('DiagnosticSignError', { text = ' ', texthl = 'DiagnosticSignError' })
27 - vim.fn.sign_define('DiagnosticSignWarn', { text = ' ', texthl = 'DiagnosticSignWarn' })
28 - vim.fn.sign_define('DiagnosticSignInfo', { text = ' ', texthl = 'DiagnosticSignInfo' })
29 - vim.fn.sign_define('DiagnosticSignHint', { text = '', texthl = 'DiagnosticSignHint' })
29 + -- Unless you are still migrating, remove the deprecated commands from v1.x
30 + vim.g.neo_tree_remove_legacy_commands = 1
31 - tree.setup {
32 - close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
33 - -- popup_border_style is for input and confirmation dialogs.
34 - -- Configurtaion of floating window is done in the individual source sections.
35 - -- "NC" is a special style that works well with NormalNC set
36 - close_floats_on_escape_key = true,
37 - default_source = 'filesystem',
38 - enable_diagnostics = true,
39 - enable_git_status = true,
40 - enable_modified_markers = true, -- Show markers for files with unsaved changes.
41 - enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false.
42 - git_status_async = true,
43 - -- These options are for people with VERY large git repos
44 - git_status_async_options = {
45 - batch_size = 1000, -- how many lines of git status results to process at a time
46 - batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run.
47 - max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped.
48 - -- Anything before this will be used. The last items to be processed are the untracked files.
49 - },
50 - log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal"
51 - log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file
52 - open_files_in_last_window = true, -- false = open files in top left window
53 - popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid"
54 - resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content
55 - -- set to -1 to disable the resize timer entirely
56 - -- -- NOTE: this will speed up to 50 ms for 1 second following a resize
57 - sort_case_insensitive = false, -- used when sorting files and directories in the tree
58 - sort_function = nil, -- uses a custom function for sorting files and directories in the tree
59 - use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats.
60 - use_default_mappings = true,
61 - --
62 - --event_handlers = {
63 - -- {
64 - -- event = "before_render",
65 - -- handler = function (state)
66 - -- -- add something to the state that can be used by custom components
67 - -- end
68 - -- },
69 - -- {
70 - -- event = "file_opened",
71 - -- handler = function(file_path)
72 - -- --auto close
73 - -- require("neo-tree").close_all()
74 - -- end
75 - -- },
76 - -- {
77 - -- event = "file_opened",
78 - -- handler = function(file_path)
79 - -- --clear search after opening a file
80 - -- require("neo-tree.sources.filesystem").reset_search()
81 - -- end
82 - -- },
83 - -- {
84 - -- event = "file_renamed",
85 - -- handler = function(args)
86 - -- -- fix references to file
87 - -- print(args.source, " renamed to ", args.destination)
88 - -- end
89 - -- },
90 - -- {
91 - -- event = "file_moved",
92 - -- handler = function(args)
93 - -- -- fix references to file
94 - -- print(args.source, " moved to ", args.destination)
95 - -- end
96 - -- },
97 - -- {
98 - -- event = "neo_tree_buffer_enter",
99 - -- handler = function()
100 - -- vim.cmd 'highlight! Cursor blend=100'
101 - -- end
102 - -- },
103 - -- {
104 - -- event = "neo_tree_buffer_leave",
105 - -- handler = function()
106 - -- vim.cmd 'highlight! Cursor guibg=#5f87af blend=0'
107 - -- end
108 - -- }
109 - --},
110 - default_component_configs = {
111 - container = {
112 - enable_character_fade = true,
113 - },
114 - indent = {
115 - indent_size = 2,
116 - padding = 1,
117 - -- indent guides
118 - with_markers = true,
119 - indent_marker = '│',
120 - last_indent_marker = '└',
121 - highlight = 'NeoTreeIndentMarker',
122 - -- expander config, needed for nesting files
123 - with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
124 - expander_collapsed = '',
125 - expander_expanded = '',
126 - expander_highlight = 'NeoTreeExpander',
127 - },
128 - icon = {
129 - folder_closed = '',
130 - folder_open = '',
131 - folder_empty = 'ﰊ',
132 - },
133 - modified = {
134 - symbol = '[+]',
135 - highlight = 'NeoTreeModified',
136 - },
137 - name = {
138 - trailing_slash = false,
139 - use_git_status_colors = true,
140 - highlight = 'NeoTreeFileName',
141 - },
142 - git_status = {
143 - symbols = {
144 - -- Change type
145 - added = '✚', -- NOTE: you can set any of these to an empty string to not show them
146 - deleted = '✖',
147 - modified = '',
148 - renamed = '',
149 - -- Status type
150 - untracked = '',
151 - ignored = '',
152 - unstaged = '',
153 - staged = '',
154 - conflict = '',
155 - },
156 - align = 'right',
157 - },
158 - },
159 - renderers = {
160 - directory = {
161 - { 'indent' },
162 - { 'icon' },
163 - { 'current_filter' },
164 - {
165 - 'container',
166 - width = '100%',
167 - right_padding = 1,
168 - --max_width = 60,
169 - content = {
170 - { 'name', zindex = 10 },
171 - {
172 - 'symlink_target',
173 - zindex = 10,
174 - highlight = 'NeoTreeSymbolicLinkTarget',
175 - },
176 - { 'clipboard', zindex = 10 },
177 - { 'diagnostics', errors_only = true, zindex = 20, align = 'right' },
178 - },
179 - },
180 - },
181 - file = {
182 - { 'indent' },
183 - { 'icon' },
184 - {
185 - 'container',
186 - width = '100%',
187 - right_padding = 1,
188 - --max_width = 60,
189 - content = {
190 - {
191 - 'name',
192 - use_git_status_colors = true,
193 - zindex = 10,
194 - },
195 - {
196 - 'symlink_target',
197 - zindex = 10,
198 - highlight = 'NeoTreeSymbolicLinkTarget',
199 - },
200 - { 'clipboard', zindex = 10 },
201 - { 'bufnr', zindex = 10 },
202 - { 'modified', zindex = 20, align = 'right' },
203 - { 'diagnostics', zindex = 20, align = 'right' },
204 - { 'git_status', zindex = 20, align = 'right' },
205 - },
206 - },
207 - },
208 - message = {
209 - { 'indent', with_markers = false },
210 - { 'name', highlight = 'NeoTreeMessage' },
211 - },
212 - terminal = {
213 - { 'indent' },
214 - { 'icon' },
215 - { 'name' },
216 - { 'bufnr' },
217 - },
218 - },
219 - nesting_rules = {},
220 - window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for
221 - -- possible options. These can also be functions that return these options.
222 - position = 'left', -- left, right, float, current
223 - width = 40, -- applies to left and right positions
224 - popup = { -- settings that apply to float position only
225 - size = {
226 - height = '80%',
227 - width = '50%',
228 - },
229 - position = '50%', -- 50% means center it
230 - -- you can also specify border here, if you want a different setting from
231 - -- the global popup_border_style.
232 - },
233 - -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands.
234 - -- You can also create your own commands by providing a function instead of a string.
235 - mapping_options = {
236 - noremap = true,
237 - nowait = true,
238 - },
239 - mappings = {
240 - ['<space>'] = {
241 - 'toggle_node',
242 - nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
243 - },
244 - ['<2-LeftMouse>'] = 'open',
245 - ['<cr>'] = 'open',
246 - ['S'] = 'split_with_window_picker',
247 - ['s'] = 'vsplit_with_window_picker',
248 - ['t'] = 'open_tabnew',
249 - ['w'] = 'open_with_window_picker',
250 - ['C'] = 'close_node',
251 - ['z'] = 'close_all_nodes',
252 - ['R'] = 'refresh',
253 - ['a'] = {
254 - 'add',
255 - -- some commands may take optional config options, see `:h neo-tree-mappings` for details
256 - config = {
257 - show_path = 'none', -- "none", "relative", "absolute"
258 - },
259 - },
260 - ['A'] = 'add_directory', -- also accepts the config.show_path option.
261 - ['d'] = 'delete',
262 - ['r'] = 'rename',
263 - ['y'] = 'copy_to_clipboard',
264 - ['x'] = 'cut_to_clipboard',
265 - ['p'] = 'paste_from_clipboard',
266 - ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option
267 - ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option
268 - ['q'] = 'close_window',
269 - ['?'] = 'show_help',
270 - },
271 - },
272 - filesystem = {
273 - window = {
274 - mappings = {
275 - ['H'] = 'toggle_hidden',
276 - ['/'] = 'fuzzy_finder',
277 - ['f'] = 'filter_on_submit',
278 - ['<C-x>'] = 'clear_filter',
279 - ['<bs>'] = 'navigate_up',
280 - ['.'] = 'set_root',
281 - ['[g'] = 'prev_git_modified',
282 - [']g'] = 'next_git_modified',
283 - },
284 - },
285 - async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands.
286 - -- "always" means directory scans are always async.
287 - -- "never" means directory scans are never async.
288 - bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root
289 - -- The renderer section provides the renderers that will be used to render the tree.
290 - -- The first level is the node type.
291 - -- For each node type, you can specify a list of components to render.
292 - -- Components are rendered in the order they are specified.
293 - -- The first field in each component is the name of the function to call.
294 - -- The rest of the fields are passed to the function as the "config" argument.
295 - filtered_items = {
296 - visible = true, -- when true, they will just be displayed differently than normal items
297 - force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty
298 - show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry
299 - hide_dotfiles = true,
300 - hide_gitignored = true,
301 - hide_hidden = true, -- only works on Windows for hidden files/directories
302 - hide_by_name = {
303 - '.DS_Store',
304 - 'thumbs.db',
305 - 'node_modules',
306 - 'zig-cache',
307 - 'target',
308 - },
309 - hide_by_pattern = { -- uses glob style patterns
310 - --"*.meta"
311 - },
312 - never_show = { -- remains hidden even if visible is toggled to true
313 - --".DS_Store",
314 - --"thumbs.db"
315 - },
316 - },
317 - find_by_full_path_words = false, -- `false` means it only searches the tail of a path.
318 - -- `true` will change the filter into a full path
319 - -- search with space as an implicit ".*", so
320 - -- `fi init`
321 - -- will match: `./sources/filesystem/init.lua
322 - --find_command = "fd", -- this is determined automatically, you probably don't need to set it
323 - --find_args = { -- you can specify extra args to pass to the find command.
324 - -- fd = {
325 - -- "--exclude", ".git",
326 - -- "--exclude", "node_modules"
327 - -- }
328 - --},
329 - ---- or use a function instead of list of strings
330 - --find_args = function(cmd, path, search_term, args)
331 - -- if cmd ~= "fd" then
332 - -- return args
333 - -- end
334 - -- --maybe you want to force the filter to always include hidden files:
335 - -- table.insert(args, "--hidden")
336 - -- -- but no one ever wants to see .git files
337 - -- table.insert(args, "--exclude")
338 - -- table.insert(args, ".git")
339 - -- -- or node_modules
340 - -- table.insert(args, "--exclude")
341 - -- table.insert(args, "node_modules")
342 - -- --here is where it pays to use the function, you can exclude more for
343 - -- --short search terms, or vary based on the directory
344 - -- if string.len(search_term) < 4 and path == "/home/cseickel" then
345 - -- table.insert(args, "--exclude")
346 - -- table.insert(args, "Library")
347 - -- end
348 - -- return args
349 - --end,
350 - group_empty_dirs = false, -- when true, empty folders will be grouped together
351 - search_limit = 50, -- max number of search results when using filters
352 - follow_current_file = false, -- This will find and focus the file in the active buffer every time
353 - -- the current file is changed while the tree is open.
354 - hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree
355 - -- in whatever position is specified in window.position
356 - -- "open_current",-- netrw disabled, opening a directory opens within the
357 - -- window like netrw would, regardless of window.position
358 - -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs
359 - use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes
360 - -- instead of relying on nvim autocmd events.
361 - },
362 - buffers = {
363 - bind_to_cwd = true,
364 - follow_current_file = true, -- This will find and focus the file in the active buffer every time
365 - -- the current file is changed while the tree is open.
366 - group_empty_dirs = true, -- when true, empty directories will be grouped together
367 - window = {
368 - mappings = {
369 - ['<bs>'] = 'navigate_up',
370 - ['.'] = 'set_root',
371 - ['bd'] = 'buffer_delete',
372 - },
373 - },
374 - },
375 - git_status = {
376 - window = {
377 - mappings = {
378 - ['A'] = 'git_add_all',
379 - ['gu'] = 'git_unstage_file',
380 - ['ga'] = 'git_add_file',
381 - ['gr'] = 'git_revert_file',
382 - ['gc'] = 'git_commit',
383 - ['gp'] = 'git_push',
384 - ['gg'] = 'git_commit_and_push',
385 - },
386 - },
387 - },
388 - }
32 + map{
33 + description = "Open File Explorer",
34 + category = map.CATEGORY.NAVIGATION,
35 + mode = map.MODE.NORMAL,
36 + keys = map.KEY.LEADER .. map.KEY.E,
37 + command = fmt.cmd'Neotree filesystem reveal right toggle',
38 + }
39 + map{
40 + description = "Open Buffer Explorer",
41 + category = map.CATEGORY.NAVIGATION,
42 + mode = map.MODE.NORMAL,
43 + keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.B,
44 + command = fmt.cmd'Neotree buffers reveal float toggle',
45 + }
46 + map{
47 + description = "Open Git Explorer",
48 + category = map.CATEGORY.NAVIGATION,
49 + mode = map.MODE.NORMAL,
50 + keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.G,
51 + command = fmt.cmd'Neotree git_status reveal current toggle',
52 + }
54 + tree.setup {
55 + close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab
56 + -- popup_border_style is for input and confirmation dialogs.
57 + -- Configurtaion of floating window is done in the individual source sections.
58 + -- "NC" is a special style that works well with NormalNC set
59 + close_floats_on_escape_key = true,
60 + default_source = 'filesystem',
61 + enable_diagnostics = true,
62 + enable_git_status = true,
63 + enable_modified_markers = true, -- Show markers for files with unsaved changes.
64 + enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false.
65 + git_status_async = true,
66 + -- These options are for people with VERY large git repos
67 + git_status_async_options = {
68 + batch_size = 1000, -- how many lines of git status results to process at a time
69 + batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run.
70 + max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped.
71 + -- Anything before this will be used. The last items to be processed are the untracked files.
72 + },
73 + log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal"
74 + log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file
75 + open_files_in_last_window = true, -- false = open files in top left window
76 + popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid"
77 + resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content
78 + sort_case_insensitive = false, -- used when sorting files and directories in the tree
79 + sort_function = nil, -- uses a custom function for sorting files and directories in the tree
80 + use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats.
81 + use_default_mappings = true,
82 + default_component_configs = {
83 + container = {
84 + enable_character_fade = true,
85 + },
86 + indent = {
87 + indent_size = 2,
88 + padding = 1,
89 + -- indent guides
90 + with_markers = true,
91 + indent_marker = '│',
92 + last_indent_marker = '└',
93 + highlight = 'NeoTreeIndentMarker',
94 + -- expander config, needed for nesting files
95 + with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders
96 + expander_collapsed = icon'ArrowClosed',
97 + expander_expanded = icon'ArrowOpen',
98 + expander_highlight = 'NeoTreeExpander',
99 + },
100 + icon = {
101 + folder_closed = icon'Folder',
102 + folder_open = icon'OpenFolder',
103 + folder_empty = icon'EmptyFolder',
104 + },
105 + modified = {
106 + symbol = icon'VcsModified',
107 + highlight = 'NeoTreeModified',
108 + },
109 + name = {
110 + trailing_slash = false,
111 + use_git_status_colors = true,
112 + highlight = 'NeoTreeFileName',
113 + },
114 + git_status = {
115 + symbols = {
116 + -- Change type
117 + added = icon'VcsAdded',
118 + deleted =icon'VcsRemoved',
119 + modified = icon'VcsModified',
120 + renamed = icon'VcsRenamed',
121 + -- Status type
122 + untracked = icon'VcsUntracked',
123 + ignored = icon'VcsIgnored',
124 + unstaged = icon'VcsUnstaged',
125 + staged = icon'VcsStaged',
126 + conflict = icon'VcsConflicted',
127 + },
128 + align = 'right',
129 + },
130 + },
131 + renderers = {
132 + directory = {
133 + { 'indent' },
134 + { 'icon' },
135 + { 'current_filter' },
137 + 'container',
138 + width = '100%',
139 + right_padding = 1,
140 + --max_width = 60,
141 + content = {
142 + { 'name', zindex = 10 },
143 + { 'clipboard', zindex = 10 },
144 + { 'diagnostics', errors_only = true, zindex = 20, align = 'right' },
145 + },
146 + },
147 + },
148 + file = {
149 + { 'indent' },
150 + { 'icon' },
152 + 'container',
153 + width = '100%',
154 + right_padding = 1,
155 + --max_width = 60,
156 + content = {
158 + 'name',
159 + use_git_status_colors = true,
160 + zindex = 10,
161 + },
162 + { 'clipboard', zindex = 10 },
163 + { 'bufnr', zindex = 10 },
164 + { 'modified', zindex = 20, align = 'right' },
165 + { 'diagnostics', zindex = 20, align = 'right' },
166 + { 'git_status', zindex = 20, align = 'right' },
167 + },
168 + },
169 + },
170 + message = {
171 + { 'indent', with_markers = false },
172 + { 'name', highlight = 'NeoTreeMessage' },
173 + },
174 + terminal = {
175 + { 'indent' },
176 + { 'icon' },
177 + { 'name' },
178 + { 'bufnr' },
179 + },
180 + },
181 + nesting_rules = {},
182 + window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for
183 + -- possible options. These can also be functions that return these options.
184 + position = 'left', -- left, right, float, current
185 + width = 40, -- applies to left and right positions
186 + popup = { -- settings that apply to float position only
187 + size = {
188 + height = '80%',
189 + width = '50%',
190 + },
191 + position = '50%', -- 50% means center it
192 + -- you can also specify border here, if you want a different setting from
193 + -- the global popup_border_style.
194 + },
195 + -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands.
196 + -- You can also create your own commands by providing a function instead of a string.
197 + mapping_options = {
198 + noremap = true,
199 + nowait = true,
200 + },
201 + mappings = {
202 + ['<space>'] = {
203 + 'toggle_node',
204 + nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use
205 + },
206 + ['<2-LeftMouse>'] = 'open',
207 + ['<cr>'] = 'open',
208 + ['S'] = 'split_with_window_picker',
209 + ['s'] = 'vsplit_with_window_picker',
210 + ['t'] = 'open_tabnew',
211 + ['w'] = 'open_with_window_picker',
212 + ['C'] = 'close_node',
213 + ['z'] = 'close_all_nodes',
214 + ['R'] = 'refresh',
215 + ['a'] = {
216 + 'add',
217 + -- some commands may take optional config options, see `:h neo-tree-mappings` for details
218 + config = {
219 + show_path = 'none', -- "none", "relative", "absolute"
220 + },
221 + },
222 + ['A'] = 'add_directory', -- also accepts the config.show_path option.
223 + ['d'] = 'delete',
224 + ['r'] = 'rename',
225 + ['y'] = 'copy_to_clipboard',
226 + ['x'] = 'cut_to_clipboard',
227 + ['p'] = 'paste_from_clipboard',
228 + ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option
229 + ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option
230 + ['q'] = 'close_window',
231 + ['?'] = 'show_help',
232 + },
233 + },
234 + filesystem = {
235 + window = {
236 + mappings = {
237 + ['H'] = 'toggle_hidden',
238 + ['/'] = 'fuzzy_finder',
239 + ['f'] = 'filter_on_submit',
240 + ['<C-x>'] = 'clear_filter',
241 + ['<bs>'] = 'navigate_up',
242 + ['.'] = 'set_root',
243 + ['[g'] = 'prev_git_modified',
244 + [']g'] = 'next_git_modified',
245 + },
246 + },
247 + async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands.
248 + -- "always" means directory scans are always async.
249 + -- "never" means directory scans are never async.
250 + bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root
251 + -- The renderer section provides the renderers that will be used to render the tree.
252 + -- The first level is the node type.
253 + -- For each node type, you can specify a list of components to render.
254 + -- Components are rendered in the order they are specified.
255 + -- The first field in each component is the name of the function to call.
256 + -- The rest of the fields are passed to the function as the "config" argument.
257 + filtered_items = {
258 + visible = true, -- when true, they will just be displayed differently than normal items
259 + force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty
260 + show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry
261 + hide_dotfiles = true,
262 + hide_gitignored = true,
263 + hide_hidden = true, -- only works on Windows for hidden files/directories
264 + hide_by_name = {
265 + '.DS_Store',
266 + 'thumbs.db',
267 + 'node_modules',
268 + 'zig-cache',
269 + 'target',
270 + },
271 + hide_by_pattern = { -- uses glob style patterns
272 + --"*.meta"
273 + },
274 + never_show = { -- remains hidden even if visible is toggled to true
275 + --".DS_Store",
276 + --"thumbs.db"
277 + },
278 + },
279 + find_by_full_path_words = false, -- `false` means it only searches the tail of a path.
280 + -- `true` will change the filter into a full path
281 + -- search with space as an implicit ".*", so
282 + -- `fi init`
283 + -- will match: `./sources/filesystem/init.lua
284 + --find_command = "fd", -- this is determined automatically, you probably don't need to set it
285 + --find_args = { -- you can specify extra args to pass to the find command.
286 + -- fd = {
287 + -- "--exclude", ".git",
288 + -- "--exclude", "node_modules"
289 + -- }
290 + --},
291 + ---- or use a function instead of list of strings
292 + --find_args = function(cmd, path, search_term, args)
293 + -- if cmd ~= "fd" then
294 + -- return args
295 + -- end
296 + -- --maybe you want to force the filter to always include hidden files:
297 + -- table.insert(args, "--hidden")
298 + -- -- but no one ever wants to see .git files
299 + -- table.insert(args, "--exclude")
300 + -- table.insert(args, ".git")
301 + -- -- or node_modules
302 + -- table.insert(args, "--exclude")
303 + -- table.insert(args, "node_modules")
304 + -- --here is where it pays to use the function, you can exclude more for
305 + -- --short search terms, or vary based on the directory
306 + -- if string.len(search_term) < 4 and path == "/home/cseickel" then
307 + -- table.insert(args, "--exclude")
308 + -- table.insert(args, "Library")
309 + -- end
310 + -- return args
311 + --end,
312 + group_empty_dirs = false, -- when true, empty folders will be grouped together
313 + search_limit = 50, -- max number of search results when using filters
314 + follow_current_file = false, -- This will find and focus the file in the active buffer every time
315 + -- the current file is changed while the tree is open.
316 + hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree
317 + -- in whatever position is specified in window.position
318 + -- "open_current",-- netrw disabled, opening a directory opens within the
319 + -- window like netrw would, regardless of window.position
320 + -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs
321 + use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes
322 + -- instead of relying on nvim autocmd events.
323 + },
324 + buffers = {
325 + bind_to_cwd = true,
326 + follow_current_file = true, -- This will find and focus the file in the active buffer every time
327 + -- the current file is changed while the tree is open.
328 + group_empty_dirs = true, -- when true, empty directories will be grouped together
329 + window = {
330 + mappings = {
331 + ['<bs>'] = 'navigate_up',
332 + ['.'] = 'set_root',
333 + ['bd'] = 'buffer_delete',
334 + },
335 + },
336 + },
337 + git_status = {
338 + window = {
339 + mappings = {
340 + ['A'] = 'git_add_all',
341 + ['gu'] = 'git_unstage_file',
342 + ['ga'] = 'git_add_file',
343 + ['gr'] = 'git_revert_file',
344 + ['gc'] = 'git_commit',
345 + ['gp'] = 'git_push',
346 + ['gg'] = 'git_commit_and_push',
347 + },
348 + },
349 + },

neovim/lua/bugabinga/fuzzy-search-ui.lua

Modified
1 1 local map = require 'bugabinga.std.keymap'
2 2 local want = require 'bugabinga.std.want'
3 -want { 'telescope', 'command_center', 'dressing' }(function(telescope, command_center, dressing)
4 - -- Command Center gets loaded here to configure it in the context of Telescope.
5 - -- DO NOT use it to add keybindings.
6 - -- Instead, use the `bugabinga.std.keymap` facade.
3 +want { 'telescope', 'command_center', 'dressing' } (function(telescope, command_center, dressing)
4 + -- Command Center gets loaded here to configure it in the context of Telescope.
5 + -- DO NOT use it to add keybindings.
6 + -- Instead, use the `bugabinga.std.keymap` facade.
8 - map {
9 - name = 'Open Command Center',
10 - description = 'Opens the Command Center with Telescope to show all available keybound commands.',
11 - mode = map.MODE.NORMAL,
12 - keys = '<C-p>',
13 - command = function()
14 - telescope.extensions.command_center.command_center()
15 - end,
16 - }
8 + map {
9 + name = 'Open Command Center',
10 + description = 'Opens the Command Center with Telescope to show all available keybound commands.',
11 + mode = map.MODE.NORMAL,
12 + keys = '<C-p>',
13 + command = function()
14 + telescope.extensions.command_center.command_center()
15 + end,
16 + }
18 - telescope.setup {
19 - defaults = {
20 - history = {
21 - path = vim.fn.stdpath 'data' .. 'telescope_history.sqlite3',
22 - limit = 100,
23 - },
24 - },
25 - extensions = {
26 - command_center = {
27 - -- Change what to show on telescope prompt and in which order
28 - -- Currently support the following three components
29 - -- Components may repeat
30 - components = {
31 - command_center.component.DESCRIPTION,
32 - command_center.component.KEYBINDINGS,
33 - -- command_center.component.COMMAND,
34 - },
35 - -- Change the separator used to separate each component
36 - separator = ' ',
37 - -- When set to false,
38 - -- The description compoenent will be empty if it is not specified
39 - auto_replace_desc_with_cmd = false,
40 - },
41 - },
42 - }
18 + telescope.setup {
19 + extensions = {
20 + command_center = {
21 + -- Change what to show on telescope prompt and in which order
22 + -- Currently support the following three components
23 + -- Components may repeat
24 + components = {
25 + command_center.component.DESCRIPTION,
26 + command_center.component.KEYBINDINGS,
27 + -- command_center.component.COMMAND,
28 + },
29 + -- Change the separator used to separate each component
30 + separator = ' ',
31 + -- When set to false,
32 + -- The description compoenent will be empty if it is not specified
33 + auto_replace_desc_with_cmd = false,
34 + },
35 + },
36 + }
44 - local extensions = {
45 - -- Plug Command Center into Telescope
46 - 'command_center',
47 - -- show history of notifications
48 - 'notify',
49 - -- save yank history
50 - 'neoclip',
51 - -- telescope for vim.ui.select
52 - 'ui-select',
53 - -- sort by frecency
54 - 'frecency',
55 - -- cheat sheet
56 - 'cheat',
57 - -- file browser
58 - 'file_browser',
59 - -- manage projects
60 - 'project',
61 - -- project specific history
62 - 'smart_history',
63 - }
38 + local extensions = {
39 + -- Plug Command Center into Telescope
40 + 'command_center',
41 + -- show history of notifications
42 + 'notify',
43 + -- save yank history
44 + 'neoclip',
45 + -- telescope for vim.ui.select
46 + 'ui-select',
47 + -- cheat sheet
48 + 'cheat',
49 + -- file browser
50 + 'file_browser',
51 + -- manage projects
52 + 'project',
53 + }
65 - for _, extension in pairs(extensions) do
66 - if not pcall(telescope.load_extension, extension) then
67 - vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error')
68 - end
69 - end
55 + for _, extension in pairs(extensions) do
56 + if not pcall(telescope.load_extension, extension) then
57 + vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error')
58 + end
59 + end
71 - dressing.setup {
72 - input = { enable = true },
73 - -- vim.ui.select is already handled by telescope extension
74 - select = { enable = false },
75 - }
61 + dressing.setup {
62 + input = { enable = true },
63 + -- vim.ui.select is already handled by telescope extension
64 + select = { enable = false },
65 + }
76 66 end)

neovim/lua/bugabinga/health.lua

Modified
6 6 local _ = {}
8 8 local function program_installed(name_of_executable)
9 - return (vim.fn.executable(name_of_executable) ~= 0)
9 + return (vim.fn.executable(name_of_executable) ~= 0)
12 12 local function check_program(name, name_of_executable)
13 - vim.health.report_start(name .. ' report')
14 - if program_installed(name_of_executable) then
15 - vim.health.report_ok(name_of_executable .. ' found on system')
16 - else
17 - vim.health.report_error(name .. ' is not installed on the system')
18 - end
13 + vim.health.report_start(name .. ' report')
14 + if program_installed(name_of_executable) then
15 + vim.health.report_ok(name_of_executable .. ' found on system')
16 + else
17 + vim.health.report_error(name .. ' is not installed on the system')
18 + end
21 21 _.check = function()
22 - check_program('ripgrep', 'rg')
23 - check_program('find-fd', 'fd')
24 - check_program('SQLite3', 'sqlite3')
25 - check_program('Nushell', 'nu')
26 - check_program('vim-startuptime', 'vim-startuptime')
27 - check_program('Pandoc', 'pandoc')
22 + check_program('ripgrep', 'rg')
23 + check_program('find-fd', 'fd')
24 + check_program('Nushell', 'nu')
25 + check_program('vim-startuptime', 'vim-startuptime')
26 + check_program('Pandoc', 'pandoc')
30 29 return _

neovim/lua/bugabinga/icons.lua

Modified
1 +-- TODO: once the colortheme is lushified, use it as a source of colors here
1 2 local want = require 'bugabinga.std.want'
2 -want { 'nvim-web-devicons' }(function(devicons)
3 - devicons.setup {
4 - override = {
5 - sh = {
6 - icon = '',
7 - color = '#1DC123',
8 - cterm_color = '59',
9 - name = 'Sh',
10 - },
11 - toml = {
12 - icon = '',
13 - color = '#e24329',
14 - cterm_color = '59',
15 - name = 'Toml',
16 - },
17 - justfile = {
18 - icon = 'ﮧ',
19 - color = '#999eff',
20 - cterm_color = '59',
21 - name = 'Justfile',
22 - },
23 - Justfile = {
24 - icon = 'ﮧ',
25 - color = '#999eff',
26 - cterm_color = '59',
27 - name = 'Justfile',
28 - },
29 - ['.justfile'] = {
30 - icon = 'ﮧ',
31 - color = '#999eff',
32 - cterm_color = '59',
33 - name = 'Justfile',
34 - },
35 - ['.Justfile'] = {
36 - icon = 'ﮧ',
37 - color = '#999eff',
38 - cterm_color = '59',
39 - name = 'Justfile',
40 - },
41 - ['.gitattributes'] = {
42 - icon = '',
43 - color = '#e24329',
44 - cterm_color = '59',
45 - name = 'GitAttributes',
46 - },
47 - ['.gitconfig'] = {
48 - icon = '',
49 - color = '#e24329',
50 - cterm_color = '59',
51 - name = 'GitConfig',
52 - },
53 - ['.gitignore'] = {
54 - icon = '',
55 - color = '#e24329',
56 - cterm_color = '59',
57 - name = 'GitIgnore',
58 - },
59 - ['.gitlab-ci.yml'] = {
60 - icon = '',
61 - color = '#e24329',
62 - cterm_color = '166',
63 - name = 'GitlabCI',
64 - },
65 - ['.gitmodules'] = {
66 - icon = '',
67 - color = '#e24329',
68 - cterm_color = '59',
69 - name = 'GitModules',
70 - },
71 - ['diff'] = {
72 - icon = '',
73 - color = '#e24329',
74 - cterm_color = '59',
75 - name = 'Diff',
76 - },
77 - },
78 - default = true,
79 - }
3 +want { 'nvim-web-devicons' } (function(devicons)
4 + devicons.setup {
5 + -- return a default icon when icon query cannot be mapped to existing icon
6 + default = true,
7 + override = {
8 + --
9 + -- FILE
10 + sh = { icon = '', color = '#1DC123', cterm_color = '59', name = 'Sh' },
11 + toml = { icon = '', color = '#e24329', cterm_color = '59', name = 'Toml' },
12 + justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' },
13 + Justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' },
14 + ['.justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' },
15 + ['.Justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' },
16 + ['.gitattributes'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitAttributes' },
17 + ['.gitconfig'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitConfig' },
18 + ['.gitignore'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitIgnore' },
19 + ['.gitlab-ci.yml'] = { icon = '', color = '#e24329', cterm_color = '166', name = 'GitlabCI' },
20 + ['.gitmodules'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitModules' },
21 + ['diff'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'Diff' },
22 + --
23 + -- KIND
24 + Text = { icon = '', color = '#949494', cterm_color = '59', name = 'TextSymbol' },
25 + Method = { icon = 'm', color = '#949494', cterm_color = '59', name = 'MethodSymbol' },
26 + Function = { icon = '', color = '#949494', cterm_color = '59', name = 'FunctionSymbol' },
27 + Constructor = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstructorSymbol' },
28 + Field = { icon = '', color = '#949494', cterm_color = '59', name = 'FieldSymbol' },
29 + Variable = { icon = '', color = '#949494', cterm_color = '59', name = 'VariableSymbol' },
30 + Class = { icon = '', color = '#949494', cterm_color = '59', name = 'ClassSymbol' },
31 + Interface = { icon = '', color = '#949494', cterm_color = '59', name = 'InterfaceSymbol' },
32 + Module = { icon = '', color = '#949494', cterm_color = '59', name = 'ModuleSymbol' },
33 + Property = { icon = '', color = '#949494', cterm_color = '59', name = 'PropertySymbol' },
34 + Unit = { icon = '', color = '#949494', cterm_color = '59', name = 'UnitSymbol' },
35 + Value = { icon = '', color = '#949494', cterm_color = '59', name = 'ValueSymbol' },
36 + Enum = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumSymbol' },
37 + Keyword = { icon = '', color = '#949494', cterm_color = '59', name = 'KeywordSymbol' },
38 + Snippet = { icon = '', color = '#949494', cterm_color = '59', name = 'SnippetSymbol' },
39 + Color = { icon = '', color = '#949494', cterm_color = '59', name = 'ColorSymbol' },
40 + File = { icon = '', color = '#949494', cterm_color = '59', name = 'FileSymbol' },
41 + Reference = { icon = '', color = '#949494', cterm_color = '59', name = 'ReferenceSymbol' },
42 + Folder = { icon = '', color = '#949494', cterm_color = '59', name = 'FolderSymbol' },
43 + EnumMember = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumMemberSymbol' },
44 + Constant = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstantSymbol' },
45 + Struct = { icon = '', color = '#949494', cterm_color = '59', name = 'StructSymbol' },
46 + Event = { icon = '', color = '#949494', cterm_color = '59', name = 'EventSymbol' },
47 + Operator = { icon = '', color = '#949494', cterm_color = '59', name = 'OperatorSymbol' },
48 + TypeParameter = { icon = '', color = '#949494', cterm_color = '59', name = 'TypeParameterSymbol' },
49 + --
50 + -- TYPE
51 + Array = { icon = '', color = '#949494', cterm_color = '59', name = 'ArraySymbol' },
52 + Number = { icon = '', color = '#949494', cterm_color = '59', name = 'NumberSymbol' },
53 + String = { icon = '', color = '#949494', cterm_color = '59', name = 'StringSymbol' },
54 + Boolean = { icon = '蘒', color = '#949494', cterm_color = '59', name = 'BooleanSymbol' },
55 + Object = { icon = '', color = '#949494', cterm_color = '59', name = 'ObjectSymbol' },
56 + --
57 + -- DOCUMENTS
58 + Files = { icon = '', color = '#949494', cterm_color = '59', name = 'FilesSymbol' },
59 + OpenFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'OpenFolderSymbol' },
60 + EmptyFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'EmptyFolderSymbol' },
61 + --
62 + -- VCS
63 + VcsAdded = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsAddedSymbol' },
64 + VcsModified = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsModifiedSymbol' },
65 + VcsRemoved = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRemovedSymbol' },
66 + VcsIgnored = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsIgnoredSymbol' },
67 + VcsRenamed = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRenamedSymbol' },
68 + VcsDiff = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsDiffSymbol' },
69 + VcsRepo = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRepoSymbol' },
70 + VcsUntracked = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUntrackedSymbol' },
71 + VcsUnstaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUnstagedSymbol' },
72 + VcsStaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsStagedSymbol' },
73 + VcsConflicted = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsConflictedSymbol' },
74 + --
75 + --UI
76 + ArrowClosed = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowClosedSymbol' },
77 + ArrowOpen = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowOpenSymbol' },
78 + Lock = { icon = '', color = '#949494', cterm_color = '59', name = 'LockSymbol' },
79 + Circle = { icon = '', color = '#949494', cterm_color = '59', name = 'CircleSymbol' },
80 + BigCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigCircleSymbol' },
81 + BigUnfilledCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigUnfilledCircleSymbol' },
82 + Close = { icon = '', color = '#949494', cterm_color = '59', name = 'CloseSymbol' },
83 + NewFile = { icon = '', color = '#949494', cterm_color = '59', name = 'NewFileSymbol' },
84 + Search = { icon = '', color = '#949494', cterm_color = '59', name = 'SearchSymbol' },
85 + Lightbulb = { icon = '', color = '#949494', cterm_color = '59', name = 'LightbulbSymbol' },
86 + Project = { icon = '', color = '#949494', cterm_color = '59', name = 'ProjectSymbol' },
87 + Dashboard = { icon = '', color = '#949494', cterm_color = '59', name = 'DashboardSymbol' },
88 + History = { icon = '', color = '#949494', cterm_color = '59', name = 'HistorySymbol' },
89 + Comment = { icon = '', color = '#949494', cterm_color = '59', name = 'CommentSymbol' },
90 + Bug = { icon = '', color = '#949494', cterm_color = '59', name = 'BugSymbol' },
91 + Code = { icon = '', color = '#949494', cterm_color = '59', name = 'CodeSymbol' },
92 + Telescope = { icon = '', color = '#949494', cterm_color = '59', name = 'TelescopeSymbol' },
93 + Gear = { icon = '', color = '#949494', cterm_color = '59', name = 'GearSymbol' },
94 + Package = { icon = '', color = '#949494', cterm_color = '59', name = 'PackageSymbol' },
95 + List = { icon = '', color = '#949494', cterm_color = '59', name = 'ListSymbol' },
96 + SignIn = { icon = '', color = '#949494', cterm_color = '59', name = 'SignInSymbol' },
97 + SignOut = { icon = '', color = '#949494', cterm_color = '59', name = 'SignOutSymbol' },
98 + Check = { icon = '', color = '#949494', cterm_color = '59', name = 'CheckSymbol' },
99 + Fire = { icon = '', color = '#949494', cterm_color = '59', name = 'FireSymbol' },
100 + Note = { icon = '', color = '#949494', cterm_color = '59', name = 'NoteSymbol' },
101 + BookMark = { icon = '', color = '#949494', cterm_color = '59', name = 'BookMarkSymbol' },
102 + Pencil = { icon = '', color = '#949494', cterm_color = '59', name = 'PencilSymbol' },
103 + ChevronRight = { icon = '', color = '#949494', cterm_color = '59', name = 'ChevronRightSymbol' },
104 + Table = { icon = '', color = '#949494', cterm_color = '59', name = 'TableSymbol' },
105 + Calendar = { icon = '', color = '#949494', cterm_color = '59', name = 'CalendarSymbol' },
106 + CloudDownload = { icon = '', color = '#949494', cterm_color = '59', name = 'CloudDownloadSymbol' },
107 + --
108 + -- DIAGNOSTICS
109 + Error = { icon = '', color = '#949494', cterm_color = '59', name = 'ErrorSymbol' },
110 + Warning = { icon = '', color = '#949494', cterm_color = '59', name = 'WarningSymbol' },
111 + Information = { icon = '', color = '#949494', cterm_color = '59', name = 'InformationSymbol' },
112 + Question = { icon = '', color = '#949494', cterm_color = '59', name = 'QuestionSymbol' },
113 + Hint = { icon = '', color = '#949494', cterm_color = '59', name = 'HintSymbol' },
114 + --
115 + -- MISCELLANEOUS
116 + Robot = { icon = 'ﮧ', color = '#949494', cterm_color = '59', name = 'RobotSymbol' },
117 + Squirrel = { icon = '', color = '#949494', cterm_color = '59', name = 'SquirrelSymbol' },
118 + Tag = { icon = '', color = '#949494', cterm_color = '59', name = 'TagSymbol' },
119 + Watch = { icon = '', color = '#949494', cterm_color = '59', name = 'WatchSymbol' },
120 + },
122 + -- devicons will return some default icon, when an icon name could not be mapped.
123 + -- in order to quickly notice these cases and debug them, set a noticeable icon as default.
124 + devicons.set_default_icon('ﴫ', '#ff00ff')
82 ---[[ FIXME: integrate those into devicons
83 -return {
84 - kind = {
85 - Text = "",
86 - Method = "m",
87 - Function = "",
88 - Constructor = "",
89 - Field = "",
90 - Variable = "",
91 - Class = "",
92 - Interface = "",
93 - Module = "",
94 - Property = "",
95 - Unit = "",
96 - Value = "",
97 - Enum = "",
98 - Keyword = "",
99 - Snippet = "",
100 - Color = "",
101 - File = "",
102 - Reference = "",
103 - Folder = "",
104 - EnumMember = "",
105 - Constant = "",
106 - Struct = "",
107 - Event = "",
108 - Operator = "",
109 - TypeParameter = "",
110 - },
111 - type = {
112 - Array = "",
113 - Number = "",
114 - String = "",
115 - Boolean = "蘒",
116 - Object = "",
117 - },
118 - documents = {
119 - File = "",
120 - Files = "",
121 - Folder = "",
122 - OpenFolder = "",
123 - },
124 - git = {
125 - Add = "",
126 - Mod = "",
127 - Remove = "",
128 - Ignore = "",
129 - Rename = "",
130 - Diff = "",
131 - Repo = "",
132 - },
133 - ui = {
134 - ArrowClosed = "",
135 - ArrowOpen = "",
136 - Lock = "",
137 - Circle = "",
138 - BigCircle = "",
139 - BigUnfilledCircle = "",
140 - Close = "",
141 - NewFile = "",
142 - Search = "",
143 - Lightbulb = "",
144 - Project = "",
145 - Dashboard = "",
146 - History = "",
147 - Comment = "",
148 - Bug = "",
149 - Code = "",
150 - Telescope = "",
151 - Gear = "",
152 - Package = "",
153 - List = "",
154 - SignIn = "",
155 - SignOut = "",
156 - Check = "",
157 - Fire = "",
158 - Note = "",
159 - BookMark = "",
160 - Pencil = "",
161 - ChevronRight = "",
162 - Table = "",
163 - Calendar = "",
164 - CloudDownload = "",
165 - },
166 - diagnostics = {
167 - Error = "",
168 - Warning = "",
169 - Information = "",
170 - Question = "",
171 - Hint = "",
172 - },
173 - misc = {
174 - Robot = "ﮧ",
175 - Squirrel = "",
176 - Tag = "",
177 - Watch = "",
178 - },
180 -]]
181 ---

neovim/lua/bugabinga/module-cache.lua

Modified
3 3 -- usually i would use the `want` function here.
4 4 -- but impatient wants to override the require function as soon as possible
5 5 -- to get most out of the cache.
6 6 local ok, impatient = pcall(require, 'impatient')
7 7 if not ok then
8 - vim.notify('modules will not be cached, because `impatient` could not be found.', 'error')
9 - return
8 + vim.notify('modules will not be cached, because `impatient` could not be found.', 'error')
9 + return
11 --- FIXME: enable profile only when neovim was startet with --startuptime?
11 +-- FIXME: enable profile only when global vim.g.profile_mode is true
12 12 impatient.enable_profile()

neovim/lua/bugabinga/options/ui.lua

Modified
1 1 -- show trailing whitespace
2 2 vim.opt.list = true
3 3 vim.opt.listchars = {
4 - space = '⋅',
5 - eol = '↴',
6 - tab = '__',
7 - trail = '•',
8 - extends = '❯',
9 - precedes = '❮',
10 - nbsp = '_',
4 + space = '⋅',
5 + eol = '↴',
6 + tab = '__',
7 + trail = '•',
8 + extends = '❯',
9 + precedes = '❮',
10 + nbsp = '_',
13 13 -- do not spam the cmdline with every little input
29 29 -- hide weird symbol at end of buffer
30 30 vim.opt.fillchars = {
31 - eob = ' ',
32 - fold = ' ',
33 - diff = '╱',
31 + eob = ' ',
32 + fold = ' ',
33 + diff = '╱',
36 36 -- hide output of insert completion popup in status
55 55 vim.opt.pumheight = 10
57 57 -- transparent popups and floating windows
58 -vim.opt.pumblend = 30
59 -vim.opt.winblend = 15
58 +vim.opt.pumblend = 5
59 +vim.opt.winblend = 5
61 61 -- hide the mode indicator in status
62 62 vim.opt.showmode = false
74 74 -- neovide only options
75 75 if vim.g.neovide then
76 - vim.g.neovide_floating_blur_amount_x = 4.0
77 - vim.g.neovide_floating_blur_amount_y = 4.0
78 - vim.g.neovide_scroll_animation_length = 0.33
79 - vim.g.neovide_fullscreen = true
80 - vim.g.neovide_profiler = false
81 - vim.g.neovide_cursor_animation_length = 0.11
82 - vim.g.neovide_cursor_trail_length = 0.666
83 - vim.g.neovide_cursor_vfx_mode = 'pixiedust'
76 + vim.g.neovide_floating_blur_amount_x = 4.0
77 + vim.g.neovide_floating_blur_amount_y = 4.0
78 + vim.g.neovide_scroll_animation_length = 0.33
79 + vim.g.neovide_fullscreen = true
80 + vim.g.neovide_profiler = false
81 + vim.g.neovide_cursor_animation_length = 0.11
82 + vim.g.neovide_cursor_trail_length = 0.666
83 + vim.g.neovide_cursor_vfx_mode = 'pixiedust'

neovim/lua/bugabinga/plugins/init.lua

Modified
1 1 local paq = require 'bugabinga.plugins.install'
2 2 paq {
3 - -- allow paq to manage itself
4 - 'savq/paq-nvim',
5 - -- caches other plugins for faster startup
6 - 'lewis6991/impatient.nvim',
7 - -- Utilities used by some plugins, e.g. telescope
8 - 'nvim-lua/plenary.nvim',
9 - -- collection of icons used by other plugins. needs a nerd font
10 - 'kyazdani42/nvim-web-devicons',
11 - -- fuzzy search ui over many parts of neovim and other plugins
12 - 'nvim-telescope/telescope.nvim',
13 - -- use telescope as `vim.ui.select`
14 - 'nvim-telescope/telescope-ui-select.nvim',
15 - -- use telescope as `vim.ui.input`
16 - 'stevearc/dressing.nvim',
17 - -- use frecency algorithm when sorting files. Needs sqlite3 installed
18 - 'nvim-telescope/telescope-frecency.nvim',
19 - -- display cheat sheet with telesope
20 - 'nvim-telescope/telescope-cheat.nvim',
21 - -- keep project specific histories in telescope
22 - 'nvim-telescope/telescope-smart-history.nvim',
23 - -- show file browser in telescope
24 - 'nvim-telescope/telescope-file-browser.nvim',
25 - -- manage projects via telescope
26 - 'nvim-telescope/telescope-project.nvim',
27 - -- pick a symbol (emoji, icon, kaomoji,...) via telescope
28 - 'nvim-telescope/telescope-symbols.nvim',
29 - -- sqplite lua bindings some plugins use
30 - 'tami5/sqlite.lua',
31 - -- status and tablines
32 - 'beauwilliams/statusline.lua',
33 - -- visual indicator if code actions are available
34 - 'kosayoda/nvim-lightbulb',
35 - -- some bug fix for LSP
36 - 'antoinemadec/FixCursorHold.nvim',
37 - -- allows statusbar plugins to query LSP
38 - 'nvim-lua/lsp-status.nvim',
39 - -- keybindings api that integrates into telescope to make keymaps searchable
40 - 'gfeiyou/command-center.nvim',
41 - -- search and replace
42 - 'nvim-pack/nvim-spectre',
43 - -- automatically manage window sizes based on focus
44 - 'beauwilliams/focus.nvim',
45 - -- avoid jitter in buffers when windows change
46 - 'luukvbaal/stabilize.nvim',
47 - -- keybindings that require a persistent chain
48 - 'anuvyklack/hydra.nvim',
49 - -- extends hydra with pink heads
50 - 'anuvyklack/keymap-layer.nvim',
51 - -- configure some editor settings according to editorconfig file, if present
52 - 'gpanders/editorconfig.nvim',
53 - -- highlight words under cursor
54 - -- "RRethy/vim-illuminate",
55 - -- highlight matched wors more clearly
56 - 'kevinhwang91/nvim-hlslens',
57 - -- draw lines to indicate indentation levels
58 - 'lukas-reineke/indent-blankline.nvim',
59 - -- move blocks of code around
60 - 'booperlv/nvim-gomove',
61 - -- toolkit for creating themes
62 - 'rktjmp/lush.nvim',
63 - -- theme with colors i like
64 - 'rockerBOO/boo-colorscheme-nvim',
65 - -- display the colorcolumn as a virtual character
66 - 'lukas-reineke/virt-column.nvim',
67 - -- jump cursor to last known position on neovim start
68 - 'ethanholz/nvim-lastplace',
69 - -- smooth scrolling for movement
70 - 'declancm/cinnamon.nvim',
71 - -- fast navigation in buffer via shortcut labels
72 - 'ggandor/leap.nvim',
73 - -- breadcrumbs in window bar
74 - 'SmiteshP/nvim-navic',
75 - -- show color values inline
76 - -- this plugins seems a little unmaintained right now.
77 - -- using some forks for now
78 - --'norcalli/nvim-colorizer.lua',
79 - --'NvChad/nvim-colorizer.lua',
80 - 'lasse16/nvim-colorizer.lua',
81 - -- intelligent commenting
82 - 'numToStr/Comment.nvim',
83 - -- show git status in ui
84 - 'lewis6991/gitsigns.nvim',
85 - -- sexy start page
86 - 'goolord/alpha-nvim',
87 - -- extend vim.notify with fancy ui
88 - 'rcarriga/nvim-notify',
89 - -- show registers ui
90 - 'tversteeg/registers.nvim',
91 - -- markdown editor
92 - -- 'jakewvincent/mkdnflow.nvim',
93 - -- highlight TODOs and collect them
94 - 'folke/todo-comments.nvim',
95 - -- centralized view for code issues
96 - 'folke/trouble.nvim',
97 - -- faster access to terminal
98 - 'akinsho/toggleterm.nvim',
99 - -- File Browser
100 - {
101 - 'nvim-neo-tree/neo-tree.nvim',
102 - branch = 'v2.x',
103 - },
104 - -- ui elements for other plugins
105 - 'MunifTanjim/nui.nvim',
106 - -- window picker component for other plugins
107 - {
108 - 's1n7ax/nvim-window-picker',
109 - branch = 'v1.3',
110 - },
111 - -- clipboard/yank history
112 - 'AckslD/nvim-neoclip.lua',
113 - -- the treesitter parser is not compatible with current nushell for now
114 - -- {
115 - -- 'LhKipp/nvim-nu',
116 - -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end,
117 - -- },
118 - -- smart parser for syntax
119 - {
120 - 'nvim-treesitter/nvim-treesitter',
121 - run = function()
122 - require('nvim-treesitter.install').update()
123 - end,
124 - },
125 - -- extend treesittier with light refactorings
126 - 'nvim-treesitter/nvim-treesitter-refactor',
127 - -- add movement around structural syntax elements
128 - 'nvim-treesitter/nvim-treesitter-textobjects',
129 - -- expand selection based on structure
130 - 'RRethy/nvim-treesitter-textsubjects',
131 - -- highlight function arguments
132 - 'm-demare/hlargs.nvim',
133 - -- inspect treesitter queries and get helpful functions
134 - 'nvim-treesitter/playground',
135 - -- set commentstring when in polyglot files
136 - 'JoosepAlviste/nvim-ts-context-commentstring',
137 - -- generate doc comment boilerplate
138 - 'danymat/neogen',
139 - -- automatically change corresponding tag, when editing markup (xml/html)
140 - 'windwp/nvim-ts-autotag',
141 - -- autoclose pairs on enter and completion
142 - 'windwp/nvim-autopairs',
143 - -- glue, that binds all the neovim lsp crap
144 - 'VonHeikemen/lsp-zero.nvim',
145 - -- LSP Support
146 - 'neovim/nvim-lspconfig',
147 - 'williamboman/nvim-lsp-installer',
148 - 'simrat39/symbols-outline.nvim',
149 - -- Autocompletion
150 - 'hrsh7th/nvim-cmp',
151 - 'hrsh7th/cmp-buffer',
152 - 'hrsh7th/cmp-path',
153 - 'hrsh7th/cmp-nvim-lsp-document-symbol',
154 - 'saadparwaiz1/cmp_luasnip',
155 - 'hrsh7th/cmp-nvim-lsp',
156 - 'hrsh7th/cmp-nvim-lua',
157 - -- Snippets
158 - 'L3MON4D3/LuaSnip',
159 - 'rafamadriz/friendly-snippets',
160 - -- rust development
161 - 'simrat39/rust-tools.nvim',
162 - -- java development
163 - 'mfussenegger/nvim-jdtls',
164 - -- lua neovim config development
165 - 'folke/lua-dev.nvim',
166 - -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api
167 - 'jose-elias-alvarez/null-ls.nvim',
168 - -- Special Java LSP integration sauce
169 - 'mfussenegger/nvim-jdtls',
170 - -- debug adapter protocol
171 - 'mfussenegger/nvim-dap',
172 - -- color picker
173 - 'ziontee113/color-picker.nvim',
174 - -- motions around object
175 - 'kylechui/nvim-surround',
3 + -- allow paq to manage itself
4 + 'savq/paq-nvim',
5 + -- caches other plugins for faster startup
6 + 'lewis6991/impatient.nvim',
7 + -- Utilities used by some plugins, e.g. telescope
8 + 'nvim-lua/plenary.nvim',
9 + -- collection of icons used by other plugins. needs a nerd font
10 + 'kyazdani42/nvim-web-devicons',
11 + -- fuzzy search ui over many parts of neovim and other plugins
12 + 'nvim-telescope/telescope.nvim',
13 + -- use telescope as `vim.ui.select`
14 + 'nvim-telescope/telescope-ui-select.nvim',
15 + -- use telescope as `vim.ui.input`
16 + 'stevearc/dressing.nvim',
17 + -- display cheat sheet with telesope
18 + 'nvim-telescope/telescope-cheat.nvim',
19 + -- show file browser in telescope
20 + 'nvim-telescope/telescope-file-browser.nvim',
21 + -- manage projects via telescope
22 + 'nvim-telescope/telescope-project.nvim',
23 + -- pick a symbol (emoji, icon, kaomoji,...) via telescope
24 + 'nvim-telescope/telescope-symbols.nvim',
25 + -- visual indicator if code actions are available
26 + 'kosayoda/nvim-lightbulb',
27 + -- some bug fix for LSP
28 + 'antoinemadec/FixCursorHold.nvim',
29 + -- allows statusbar plugins to query LSP
30 + 'nvim-lua/lsp-status.nvim',
31 + -- keybindings api that integrates into telescope to make keymaps searchable
32 + 'gfeiyou/command-center.nvim',
33 + -- search and replace
34 + 'nvim-pack/nvim-spectre',
35 + -- automatically manage window sizes based on focus
36 + 'beauwilliams/focus.nvim',
37 + -- avoid jitter in buffers when windows change
38 + 'luukvbaal/stabilize.nvim',
39 + -- keybindings that require a persistent chain
40 + 'anuvyklack/hydra.nvim',
41 + -- extends hydra with pink heads
42 + 'anuvyklack/keymap-layer.nvim',
43 + -- configure some editor settings according to editorconfig file, if present
44 + 'gpanders/editorconfig.nvim',
45 + -- highlight matched wors more clearly
46 + 'kevinhwang91/nvim-hlslens',
47 + -- draw lines to indicate indentation levels
48 + 'lukas-reineke/indent-blankline.nvim',
49 + -- move blocks of code around
50 + 'booperlv/nvim-gomove',
51 + -- toolkit for creating themes
52 + 'rktjmp/lush.nvim',
53 + -- theme with colors i like
54 + 'rockerBOO/boo-colorscheme-nvim',
55 + -- display the colorcolumn as a virtual character
56 + 'lukas-reineke/virt-column.nvim',
57 + -- jump cursor to last known position on neovim start
58 + 'ethanholz/nvim-lastplace',
59 + -- smooth scrolling for movement
60 + 'declancm/cinnamon.nvim',
61 + -- fast navigation in buffer via shortcut labels
62 + 'ggandor/leap.nvim',
63 + -- breadcrumbs in window bar
64 + 'SmiteshP/nvim-navic',
65 + -- show color values inline
66 + -- this plugins seems a little unmaintained right now.
67 + -- using some forks for now
68 + --'norcalli/nvim-colorizer.lua',
69 + --'NvChad/nvim-colorizer.lua',
70 + 'lasse16/nvim-colorizer.lua',
71 + -- intelligent commenting
72 + 'numToStr/Comment.nvim',
73 + -- show git status in ui
74 + 'lewis6991/gitsigns.nvim',
75 + -- sexy start page
76 + 'goolord/alpha-nvim',
77 + -- extend vim.notify with fancy ui
78 + 'rcarriga/nvim-notify',
79 + -- show registers ui
80 + 'tversteeg/registers.nvim',
81 + -- markdown editor
82 + -- 'jakewvincent/mkdnflow.nvim',
83 + -- highlight TODOs and collect them
84 + 'folke/todo-comments.nvim',
85 + -- centralized view for code issues
86 + 'folke/trouble.nvim',
87 + -- faster access to terminal
88 + 'akinsho/toggleterm.nvim',
89 + -- File Browser
90 + {
91 + 'nvim-neo-tree/neo-tree.nvim',
92 + branch = 'v2.x',
93 + },
94 + -- ui elements for other plugins
95 + 'MunifTanjim/nui.nvim',
96 + -- window picker component for other plugins
97 + {
98 + 's1n7ax/nvim-window-picker',
99 + branch = 'v1.3',
100 + },
101 + -- clipboard/yank history
102 + 'AckslD/nvim-neoclip.lua',
103 + -- the treesitter parser is not compatible with current nushell for now
104 + -- {
105 + -- 'LhKipp/nvim-nu',
106 + -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end,
107 + -- },
108 + -- smart parser for syntax
110 + 'nvim-treesitter/nvim-treesitter',
111 + run = function()
112 + require('nvim-treesitter.install').update()
113 + end,
114 + },
115 + -- extend treesittier with light refactorings
116 + 'nvim-treesitter/nvim-treesitter-refactor',
117 + -- add movement around structural syntax elements
118 + 'nvim-treesitter/nvim-treesitter-textobjects',
119 + -- expand selection based on structure
120 + 'RRethy/nvim-treesitter-textsubjects',
121 + -- highlight function arguments
122 + 'm-demare/hlargs.nvim',
123 + -- inspect treesitter queries and get helpful functions
124 + 'nvim-treesitter/playground',
125 + -- set commentstring when in polyglot files
126 + 'JoosepAlviste/nvim-ts-context-commentstring',
127 + -- generate doc comment boilerplate
128 + 'danymat/neogen',
129 + -- automatically change corresponding tag, when editing markup (xml/html)
130 + 'windwp/nvim-ts-autotag',
131 + -- autoclose pairs on enter and completion
132 + 'windwp/nvim-autopairs',
133 + -- glue, that binds all the neovim lsp crap
134 + 'VonHeikemen/lsp-zero.nvim',
135 + -- LSP Support
136 + 'neovim/nvim-lspconfig',
137 + 'williamboman/nvim-lsp-installer',
138 + 'simrat39/symbols-outline.nvim',
139 + -- Autocompletion
140 + 'hrsh7th/nvim-cmp',
141 + 'hrsh7th/cmp-buffer',
142 + 'hrsh7th/cmp-path',
143 + 'hrsh7th/cmp-nvim-lsp-document-symbol',
144 + 'saadparwaiz1/cmp_luasnip',
145 + 'hrsh7th/cmp-nvim-lsp',
146 + 'hrsh7th/cmp-nvim-lua',
147 + -- Snippets
148 + 'L3MON4D3/LuaSnip',
149 + 'rafamadriz/friendly-snippets',
150 + -- rust development
151 + 'simrat39/rust-tools.nvim',
152 + -- java development
153 + 'mfussenegger/nvim-jdtls',
154 + -- lua neovim config development
155 + 'folke/lua-dev.nvim',
156 + -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api
157 + 'jose-elias-alvarez/null-ls.nvim',
158 + -- Special Java LSP integration sauce
159 + 'mfussenegger/nvim-jdtls',
160 + -- debug adapter protocol
161 + 'mfussenegger/nvim-dap',
162 + -- color picker
163 + 'ziontee113/color-picker.nvim',
164 + -- motions around object
165 + 'kylechui/nvim-surround',
177 167 -- local plugins. they may override plugins from above
178 168 vim.opt.runtimepath:append '~/Workspace/lsp-zero.nvim'

neovim/lua/bugabinga/search.lua

Modified
1 +local map = require 'bugabinga.std.keymap'
1 2 local want = require 'bugabinga.std.want'
2 -want { 'hlslens' }(function(_)
3 - local noremap_silent = { noremap = true, silent = true }
5 - -- FIXME: hlslens uses some highlights, that my theme does not cover yet
6 - -- FIXME: use keymap facade
7 - -- FIXME: change commands to lua callbacks
8 - vim.api.nvim_set_keymap(
9 - 'n',
10 - 'n',
11 - [[<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>]],
12 - noremap_silent
13 - )
14 - vim.api.nvim_set_keymap(
15 - 'n',
16 - 'N',
17 - [[<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>]],
18 - noremap_silent
19 - )
20 - vim.api.nvim_set_keymap('n', '*', [[*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
21 - vim.api.nvim_set_keymap('n', '#', [[#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
22 - vim.api.nvim_set_keymap('n', 'g*', [[g*<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
23 - vim.api.nvim_set_keymap('n', 'g#', [[g#<Cmd>lua require('hlslens').start()<CR>]], noremap_silent)
4 +want { 'hlslens' } (function(lens)
25 - vim.api.nvim_set_keymap('n', '<LEADER><LEADER>', '<CMD>noh<CR>', noremap_silent)
6 + -- this highlight links by default to WildMenu, which is to offensive
7 + vim.api.nvim_set_hl(0, 'HlSearchLens', { link = 'Search' })
9 + map {
10 + description = 'Go to next highlighted search match',
11 + category = map.CATEGORY.SEARCH,
12 + mode = map.MODE.NORMAL,
13 + keys = map.KEY.N,
14 + command = function()
15 + vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.N)
16 + lens.start()
17 + end,
18 + }
19 + map {
20 + description = 'Go to previous highlighted search match',
21 + category = map.CATEGORY.SEARCH,
22 + mode = map.MODE.NORMAL,
23 + keys = map.KEY.SHIFT_N,
24 + command = function()
25 + vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.SHIFT_N)
26 + lens.start()
27 + end,
28 + }
30 + map {
31 + description = 'Search next word under cursor',
32 + category = map.CATEGORY.SEARCH,
33 + mode = map.MODE.NORMAL,
34 + keys = map.KEY.MULTIPLY,
35 + command = function()
36 + vim.api.nvim_feedkeys(map.KEY.MULTIPLY, map.MODE.NORMAL, true)
37 + lens.start()
38 + end,
39 + }
40 + map {
41 + description = 'Search previous word under cursor',
42 + category = map.CATEGORY.SEARCH,
43 + mode = map.MODE.NORMAL,
44 + keys = map.KEY.HASHTAG,
45 + command = function()
46 + vim.api.nvim_feedkeys(map.KEY.HASHTAG, map.MODE.NORMAL, true)
47 + lens.start()
48 + end,
49 + }
51 + map {
52 + description = 'Clear search highlights',
53 + category = map.CATEGORY.SEARCH,
54 + mode = map.MODE.NORMAL,
55 + keys = map.KEY.LEADER .. map.KEY.LEADER,
56 + command = function()
57 + vim.cmd 'nohlsearch'
58 + end,
59 + }
26 60 end)

neovim/lua/bugabinga/smooth-scroll.lua

Modified
1 +local map = require'bugabinga.std.keymap'
2 +local fmt = require'bugabinga.std.fmt'
1 3 local want = require 'bugabinga.std.want'
2 -want { 'cinnamon' }(function(cinnamon)
3 - --FIXME: use keymap facade instead of default bindings
4 - cinnamon.setup()
5 +want { 'cinnamon' } (function(cinnamon)
6 + cinnamon.setup {
7 + default_keymaps = false,
8 + hide_cursor = true,
9 + }
10 + -- FIXME: weird. when using the Scroll function via lua directly, it does seemingly nothing...
11 + --
12 + -- Half-window movements:
13 + map {
14 + description = 'Scroll half window up',
15 + category = map.CATEGORY.SCROLL,
16 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
17 + keys = map.KEY.CONTROL_U,
18 + command = fmt.cmd'lua Scroll("<C-u>", 1, 1)',
19 + }
20 + map {
21 + description = 'Scroll half window down',
22 + category = map.CATEGORY.SCROLL,
23 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
24 + keys = map.KEY.CONTROL_D,
25 + command = fmt.cmd'lua Scroll("<C-d>", 1, 1)',
26 + }
28 + --
29 + -- Page movements:
30 + map {
31 + description = 'Scroll half page up',
32 + category = map.CATEGORY.SCROLL,
33 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
34 + keys = map.KEY.CONTROL_B,
35 + command = fmt.cmd'lua Scroll("<C-b>", 1, 1)',
36 + }
37 + map {
38 + description = 'Scroll half page down',
39 + category = map.CATEGORY.SCROLL,
40 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
41 + keys = map.KEY.CONTROL_F,
42 + command = fmt.cmd'lua Scroll("<C-f>", 1, 1)',
43 + }
44 + map {
45 + description = 'Scroll half page up',
46 + category = map.CATEGORY.SCROLL,
47 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
48 + keys = map.KEY.PAGE_UP,
49 + command = fmt.cmd'lua Scroll("<PageUp>", 1, 1)',
50 + }
51 + map {
52 + description = 'Scroll half page down',
53 + category = map.CATEGORY.SCROLL,
54 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
55 + keys = map.KEY.PAGE_DOWN,
56 + command = fmt.cmd'lua Scroll("<PageDown>", 1, 1)',
57 + }
59 +-- Start/end of file and line number movements:
60 + map {
61 + description = 'Scroll to start of buffer',
62 + category = map.CATEGORY.SCROLL,
63 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
64 + keys = map.KEY.G .. map.KEY.G,
65 + command = fmt.cmd'lua Scroll("gg")',
66 + }
67 + map {
68 + description = 'Scroll to end of buffer',
69 + category = map.CATEGORY.SCROLL,
70 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
71 + keys = map.KEY.SHIFT_G,
72 + command = fmt.cmd'lua Scroll("G", 0, 1)',
73 + }
75 +-- Start/end of line:
76 + map {
77 + description = 'Scroll to start of line',
78 + category = map.CATEGORY.SCROLL,
79 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
80 + keys = map.KEY.ZERO,
81 + command = fmt.cmd'lua Scroll("0")',
82 + }
83 + map {
84 + description = 'Scroll to first word of line',
85 + category = map.CATEGORY.SCROLL,
86 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
87 + keys = map.KEY.CARET,
88 + command = fmt.cmd'lua Scroll("^")',
89 + }
90 + map {
91 + description = 'Scroll to end of line',
92 + category = map.CATEGORY.SCROLL,
93 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
94 + keys = map.KEY.DOLLAR,
95 + command = fmt.cmd'lua Scroll("$", 0 ,1)',
96 + }
98 +-- Paragraph movements:
99 +vim.keymap.set({ 'n', 'x' }, '{', "<Cmd>lua Scroll('{')<CR>")
100 + map {
101 + description = 'Scroll to previous paragraph',
102 + category = map.CATEGORY.SCROLL,
103 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
104 + keys = map.KEY.OPEN_CURLY_BRACKET,
105 + command = fmt.cmd'lua Scroll("{")',
107 +vim.keymap.set({ 'n', 'x' }, '}', "<Cmd>lua Scroll('}')<CR>")
108 + map {
109 + description = 'Scroll to next paragraph',
110 + category = map.CATEGORY.SCROLL,
111 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
112 + keys = map.KEY.CLOSE_CURLY_BRACKET,
113 + command = fmt.cmd'lua Scroll("}")',
115 + --
116 +-- Up/down movements:
117 +vim.keymap.set({ 'n', 'x' }, 'k', "<Cmd>lua Scroll('k', 0, 1)<CR>")
118 + map {
119 + description = 'Scroll line up',
120 + category = map.CATEGORY.SCROLL,
121 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
122 + keys = map.KEY.K,
123 + command = fmt.cmd'lua Scroll("k", 0, 1)',
125 +vim.keymap.set({ 'n', 'x' }, 'j', "<Cmd>lua Scroll('j', 0, 1)<CR>")
126 + map {
127 + description = 'Scroll line down',
128 + category = map.CATEGORY.SCROLL,
129 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
130 + keys = map.KEY.J,
131 + command = fmt.cmd'lua Scroll("j", 0, 1)',
134 +-- SCROLL_WHEEL_KEYMAPS:
136 + map {
137 + description = 'Scroll wheel up',
138 + category = map.CATEGORY.SCROLL,
139 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
140 + keys = map.KEY.SCROLL_WHEEL_UP,
141 + command = fmt.cmd'lua Scroll("<ScrollWheelUp>")',
143 + map {
144 + description = 'Scroll wheel down',
145 + category = map.CATEGORY.SCROLL,
146 + mode = { map.MODE.NORMAL, map.MODE.VISUAL },
147 + keys = map.KEY.SCROLL_WHEEL_DOWN,
148 + command = fmt.cmd'lua Scroll("<ScrollWheelDown>")',
5 151 end)

neovim/lua/bugabinga/start-screen.lua

Modified
1 +local map = require 'bugabinga.std.keymap'
2 +local fmt = require 'bugabinga.std.fmt'
1 3 local want = require 'bugabinga.std.want'
2 -want { 'alpha', 'alpha.themes.startify' }(function(alpha, theme)
3 - --FIXME add "open alpha" keymap
4 - theme.section.header.val = {
5 - [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]],
6 - [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]],
7 - [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]],
8 - [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]],
9 - [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]],
10 - [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]],
11 - [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]],
12 - [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]],
13 - [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]],
14 - [[ ░ ░ ]],
15 - }
16 - theme.section.top_buttons.val = {
17 - theme.button('e', ' New file', '<CMD>new | startinsert <CR>'),
18 - }
19 - theme.section.bottom_buttons.val = {
20 - theme.button('q', ' Quit NVIM', ':qa<CR>'),
21 - }
22 - theme.section.mru.val = { { type = 'padding', val = 0 } }
23 - theme.section.footer = {
24 - { type = 'text', val = 'bugabinga.net' },
25 - }
26 - theme.mru_opts.ignore = function(path, _)
27 - return string.find(path, 'COMMIT_EDITMSG')
28 - end
29 - alpha.setup(theme.config)
5 +want {
6 + 'alpha',
7 + 'alpha.themes.startify',
8 + 'nvim-web-devicons',
9 +} (function(alpha, theme, devicons)
10 + theme.section.header.val = {
11 + [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]],
12 + [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]],
13 + [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]],
14 + [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]],
15 + [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]],
16 + [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]],
17 + [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]],
18 + [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]],
19 + [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]],
20 + [[ ░ ░ ]],
21 + }
22 + theme.section.top_buttons.val = {
23 + theme.button('e', devicons.get_icon 'NewFile' .. ' New file', fmt.cmd 'new | startinsert'),
24 + }
25 + theme.section.bottom_buttons.val = {
26 + theme.button('q', devicons.get_icon 'SignOut' .. ' Quit Neovim', fmt.cmd 'qa'),
27 + }
28 + -- hides the mru section
29 + theme.section.mru.val = { { type = 'padding', val = 0 } }
30 + theme.section.footer = {
31 + { type = 'text', val = devicons.get_icon 'Bug' .. ' bugabinga.net' },
32 + }
33 + theme.mru_opts.ignore = function(path, _)
34 + return string.find(path, 'COMMIT_EDITMSG')
35 + end
36 + alpha.setup(theme.config)
38 + map {
39 + description = 'Toggle Start Screen',
40 + category = map.CATEGORY.VIEW,
41 + mode = map.MODE.NORMAL,
42 + keys = map.KEY.F12,
43 + command = fmt.cmd 'Alpha',
44 + }
30 45 end)

neovim/lua/bugabinga/std/keymap.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 -local bind = want { 'command_center' }(function(command_center)
3 - return function(map)
4 - map.visible = map.visible == nil or map.visible
5 - map.options = map.options or {}
6 - local options = vim.tbl_extend('keep', map.options, {
7 - silent = true,
8 - desc = map.description,
9 - })
10 - if map.visible then
11 - local keybindings = {}
12 - if type(map.mode) == 'table' then
13 - for _, mode in ipairs(map.mode) do
14 - table.insert(keybindings, { mode, map.keys })
15 - end
16 - else
17 - keybindings = { map.mode, map.keys }
18 - end
19 - command_center.add({
20 - {
21 - description = map.description,
22 - category = map.category,
23 - cmd = map.command,
24 - keybindings = keybindings,
25 - },
26 - }, command_center.mode.ADD_ONLY)
27 - end
28 - -- use neovim api to add keybind instead of command_center, because it has
29 - -- nicer defaults.
30 - vim.keymap.set(map.mode, map.keys, map.command, options)
31 - end
2 +local bind = want { 'command_center' } (function(command_center)
3 + return function(map)
4 + map.visible = map.visible == nil or map.visible
5 + map.options = map.options or {}
6 + local options = vim.tbl_extend('keep', map.options, {
7 + silent = true,
8 + desc = map.description,
9 + })
10 + if map.visible then
11 + local keybindings = {}
12 + if type(map.mode) == 'table' then
13 + for _, mode in ipairs(map.mode) do
14 + table.insert(keybindings, { mode, map.keys })
15 + end
16 + else
17 + keybindings = { map.mode, map.keys }
18 + end
19 + command_center.add({
20 + {
21 + description = map.description,
22 + category = map.category,
23 + cmd = map.command,
24 + keybindings = keybindings,
25 + },
26 + }, command_center.mode.ADD_ONLY)
27 + end
28 + -- use neovim api to add keybind instead of command_center, because it has
29 + -- nicer defaults.
30 + vim.keymap.set(map.mode, map.keys, map.command, options)
31 + end
32 32 end)
34 34 return setmetatable({
35 - MODE = {
36 - NORMAL = 'n',
37 - VISUAL = 'x',
38 - ALL = '',
39 - },
40 - KEY = {
41 - SPACE = '<SPACE>',
42 - ENTER = '<CR>',
43 - ESCAPE = '<ESC>',
44 - UP = '<Up>',
45 - DOWN = '<Down>',
46 - LEFT = '<Left>',
47 - RIGHT = '<Right>',
48 - ALT_H = '<A-h>',
49 - ALT_J = '<A-j>',
50 - ALT_K = '<A-k>',
51 - ALT_L = '<A-l>',
52 - ALT_SHIFT_H = '<A-H>',
53 - ALT_SHIFT_J = '<A-J>',
54 - ALT_SHIFT_K = '<A-K>',
55 - ALT_SHIFT_L = '<A-L>',
56 - },
57 - COMMAND = {
58 - NOP = function() end,
59 - },
60 - CATEGORY = {
61 - NAVIGATION = 'navigation',
62 - EDITING = 'editing',
63 - NOTIFY = 'notify',
64 - },
35 + MODE = {
36 + NORMAL = 'n',
37 + VISUAL = 'x',
38 + ALL = '',
39 + },
40 + KEY = {
41 + LEADER = '<LEADER>',
42 + SPACE = '<SPACE>',
43 + ENTER = '<CR>',
44 + ESCAPE = '<ESC>',
45 + UP = '<Up>',
46 + DOWN = '<Down>',
47 + LEFT = '<Left>',
48 + RIGHT = '<Right>',
49 + PAGE_UP = '<PageUp>',
50 + PAGE_DOWN = '<PageDown>',
51 + SCROLL_WHEEL_UP = '<ScrollWheelUp>',
52 + SCROLL_WHEEL_DOWN = '<ScrollWheelDown>',
53 + CONTROL_B = '<C-b>',
54 + CONTROL_D = '<C-d>',
55 + CONTROL_F = '<C-f>',
56 + CONTROL_U = '<C-u>',
57 + ALT_H = '<A-h>',
58 + ALT_J = '<A-j>',
59 + ALT_K = '<A-k>',
60 + ALT_L = '<A-l>',
61 + ALT_SHIFT_H = '<A-H>',
62 + ALT_SHIFT_J = '<A-J>',
63 + ALT_SHIFT_K = '<A-K>',
64 + ALT_SHIFT_L = '<A-L>',
65 + F12 = '<F12>',
66 + CARET = '^',
67 + DOLLAR = '$',
68 + MULTIPLY = '*',
69 + HASHTAG = '#',
70 + OPEN_CURLY_BRACKET = '{',
71 + CLOSE_CURLY_BRACKET = '}',
72 + ZERO = '0',
73 + B = 'b',
74 + E = 'e',
75 + J = 'j',
76 + G = 'g',
77 + N = 'n',
78 + K = 'k',
79 + P = 'p',
80 + T = 't',
81 + SHIFT_G = 'G',
82 + SHIFT_N = 'N',
83 + },
84 + COMMAND = {
85 + NOP = function() end,
86 + },
87 + CATEGORY = {
88 + NAVIGATION = 'navigation',
89 + EDITING = 'editing',
90 + NOTIFY = 'notify',
91 + VIEW = 'view',
92 + SEARCH = 'search',
93 + SCROLL = 'scroll',
94 + },
65 95 }, {
66 - __call = function(_, ...)
67 - return bind(...)
68 - end,
96 + __call = function(_, ...)
97 + return bind(...)
98 + end,

neovim/lua/bugabinga/std/project.lua

Modified
86 86 --- Determines the project root directory of the current buffer file. A "project" is not clearly defined for all programming languages, so this function uses a heuristic approach.
87 ----@param custom_markers table list of markers. a marker is a table with `name` and `weight` key. `name` can be a file or directory name, that indicates, that if a file/folder with that name exists in a directory, that directory is likely to be a project root. `weight` is a means to express confidence in that likelihood. Values should be between 1 and 3. Internally, there are some project-agnostic markers defined (e.g. README, LICENSE, .git, ...) that will be merged with `custom_markers`.
87 +---@param custom_markers table<string, number> list of markers. a marker is a table with `name` and `weight` key. `name` can be a file or directory name, that indicates, that if a file/folder with that name exists in a directory, that directory is likely to be a project root. `weight` is a means to express confidence in that likelihood. Values should be between 1 and 3. Internally, there are some project-agnostic markers defined (e.g. README, LICENSE, .git, ...) that will be merged with `custom_markers`.
88 88 ---@param custom_root string Given a `custom_root` the path traversal can be aborted before the filesystem root is reached. A useful value might be `~` for example, if your source code is always in your home directory. the root directory itself does __not__ get searched for markers!
89 ----@return string project_root The project root of the current buffer, or `nil`, if none could be determined.
89 +---@return string|nil project_root The project root of the current buffer, or `nil`, if none could be determined.
90 90 local function determine_project_root(custom_markers, custom_root)
91 91 -- glob expands user defined root and checks, that it exists
92 - local root = vim.fn.glob(custom_root, false, false)
92 + ---@diagnostic disable-next-line: missing-parameter
93 + local root = vim.fn.glob(custom_root)
93 94 if root == '' then
94 95 vim.notify('the custom root ' .. custom_root .. ' does not exist!', error)
95 96 return nil

neovim/lua/bugabinga/surround.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 2 want { 'nvim-surround' }(function(surround)
3 - --FIXME: add bindings, that do not conflict with fast navigation plugin
4 - surround.setup {}
3 + surround.setup {
4 + insert = "ys",
5 + insert_line = "yss",
6 + -- this thing does seemingly nothing?
7 + -- visual = "<CR>",
8 + delete = "ds",
9 + change = 'cs',
10 + }
5 11 end)

neovim/lua/bugabinga/todo.lua

Modified
1 +local map = require 'bugabinga.std.keymap'
2 +local project = require 'bugabinga.std.project'
1 3 local want = require 'bugabinga.std.want'
2 5 want { 'todo-comments' }(function(todo)
3 6 -- HACK: #104 Invalid in command-line window
4 7 local hl = require 'todo-comments.highlight'
7 10 pcall(highlight_win, win, force)
9 12 todo.setup {}
14 + map{
15 + description = 'Show all To-Dos in the current project',
16 + category = map.CATEGORY.VIEW,
17 + mode = map.MODE.NORMAL,
18 + keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.T,
19 + command = function()
20 + local root = project.determine_project_root({},'~')
21 + local cwd = ''
22 + if root then
23 + cwd = ' cwd=' .. root
24 + end
25 + vim.cmd ('TodoTrouble' .. cwd)
26 + end,
27 + }
28 + map{
29 + description = 'Search all To-Dos in the current project',
30 + category = map.CATEGORY.VIEW,
31 + mode = map.MODE.NORMAL,
32 + keys = map.KEY.LEADER .. map.KEY.T .. map.KEY.T,
33 + command = function()
34 + local root = project.determine_project_root({},'~')
35 + local cwd = ''
36 + if root then
37 + cwd = ' cwd=' .. root
38 + end
39 + vim.cmd ('TodoTelescope' .. cwd)
40 + end,
41 + }
10 42 end)

neovim/lua/bugabinga/treesitter.lua

Modified
12 12 configs.setup {
13 13 -- A list of parser names, or "all"
14 - ensure_installed = {
15 - 'c',
16 - 'bash',
17 - 'cmake',
18 - 'comment',
19 - 'cpp',
20 - 'css',
21 - 'devicetree',
22 - 'dockerfile',
23 - 'dot',
24 - 'help',
25 - 'html',
26 - 'http',
27 - 'java',
28 - 'javascript',
29 - 'json',
30 - 'json5',
31 - 'jsonc',
32 - 'llvm',
33 - 'lua',
34 - 'make',
35 - 'markdown',
36 - 'markdown_inline',
37 - 'ninja',
38 - 'proto',
39 - 'python',
40 - 'query',
41 - 'regex',
42 - 'rust',
43 - 'toml',
44 - 'vim',
45 - 'yaml',
46 - 'zig',
47 - },
14 + ensure_installed = 'all',
48 15 -- Install parsers synchronously (only applied to `ensure_installed`)
49 - sync_install = false,
16 + sync_install = true,
50 17 -- List of parsers to ignore installing (for "all")
51 18 ignore_install = {},
53 20 highlight = {
54 21 -- `false` will disable the whole extension
55 22 enable = true,
57 - -- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
58 - -- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
59 - -- the name of the parser)
60 - -- list of language that will be disabled
61 23 disable = {},
63 25 -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
82 44 -- These features are mostly useful when there is treesitter parser, but no
83 45 -- LSP.
84 - -- FIXME harmonize the keybinds with LSP equivalents
85 - refactor = {
86 - highlight_definitions = {
87 - enable = true,
88 - -- Set to false if you have an `updatetime` of ~100.
89 - clear_on_cursor_move = false,
90 - },
91 - smart_rename = {
92 - enable = true,
93 - keymaps = {
94 - smart_rename = 'grr',
95 - },
96 - },
97 - navigation = {
98 - enable = true,
99 - keymaps = {
100 - goto_definition = 'gnd',
101 - list_definitions = 'gnD',
102 - list_definitions_toc = 'gO',
103 - goto_next_usage = '<a-*>',
104 - goto_previous_usage = '<a-#>',
105 - },
106 - },
107 - },
46 + -- FIXME: harmonize the keybinds with LSP equivalents
47 + refactor = 'all',
108 48 textsubjects = {
109 49 enable = true,
110 50 prev_selection = '<Down>', -- (Optional) keymap to select the previous selection
204 144 -- highlight function arguments
145 + -- TODO: define color
205 146 hlargs.setup()
207 148 -- generate doc comment annotations
149 + -- TODO: setup keybind
208 150 neogen.setup()

neovim/startuptime/x230_2022_07_15_13_34_39.txt

Added
new file mode 100644
1 +Extra options: [init.lua]
2 +Measured: 100 times
4 +Total Average: 236.690490 msec
5 +Total Max: 400.304000 msec
6 +Total Min: 195.247000 msec
8 + AVERAGE MAX MIN
9 +---------------------------------
10 +169.968420 290.092000 139.875000: /home/oli/.config/nvim/init.lua
11 + 13.974000 28.363000 11.460000: loading packages
12 + 6.835580 12.380000 5.336000: loading after plugins
13 + 5.466760 8.905000 4.366000: loading rtp plugins
14 + 4.679380 7.926000 3.542000: sourcing vimrc file(s)
15 + 4.340620 8.601000 3.439000: /usr/share/nvim/runtime/filetype.lua
16 + 2.982450 8.741000 2.265000: reading ShaDa
17 + 2.655790 5.275000 1.801000: opening buffers
18 + 2.251370 5.856000 1.530000: BufEnter autocommands
19 + 1.618660 3.966000 1.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
20 + 1.420820 4.173000 1.004000: /home/oli/.config/nvim/filetype.lua
21 + 1.237190 3.538000 0.824000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
22 + 1.045070 2.595000 0.822000: /usr/share/nvim/runtime/syntax/syntax.vim
23 + 0.891420 2.410000 0.610000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
24 + 0.832830 2.767000 0.435000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
25 + 0.821020 1.894000 0.597000: /usr/share/vim/vimfiles/plugin/skim.vim
26 + 0.798470 2.223000 0.518000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim
27 + 0.740630 2.029000 0.543000: init lua interpreter
28 + 0.683750 1.961000 0.490000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 + 0.614360 2.907000 0.361000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
30 + 0.598100 2.327000 0.300000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
31 + 0.587120 2.415000 0.276000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim
32 + 0.530920 1.721000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
33 + 0.524870 1.722000 0.220000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
34 + 0.513220 1.815000 0.303000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
35 + 0.453430 1.854000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
36 + 0.427410 1.438000 0.301000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
37 + 0.422150 0.948000 0.326000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim
38 + 0.417700 2.051000 0.194000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
39 + 0.411170 0.789000 0.297000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim
40 + 0.408660 1.568000 0.306000: inits 1
41 + 0.402360 1.614000 0.274000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
42 + 0.382820 1.461000 0.161000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
43 + 0.335740 1.025000 0.261000: init highlight
44 + 0.318870 1.911000 0.122000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
45 + 0.281680 1.020000 0.190000: /usr/share/nvim/runtime/plugin/rplugin.vim
46 + 0.241690 0.796000 0.170000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
47 + 0.233550 1.115000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
48 + 0.223740 0.835000 0.088000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim
49 + 0.211190 0.833000 0.133000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
50 + 0.199070 0.710000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
51 + 0.197310 0.894000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
52 + 0.189950 0.854000 0.125000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
53 + 0.189230 0.571000 0.138000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
54 + 0.168640 0.697000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
55 + 0.156820 0.670000 0.112000: /usr/share/nvim/runtime/syntax/synload.vim
56 + 0.144780 0.461000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
57 + 0.142880 0.632000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
58 + 0.142150 0.399000 0.112000: event init
59 + 0.140790 0.590000 0.072000: /usr/share/nvim/runtime/ftplugin.vim
60 + 0.140150 0.659000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
61 + 0.125350 0.626000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
62 + 0.121020 0.507000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
63 + 0.118740 0.457000 0.076000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim
64 + 0.118720 0.369000 0.078000: /usr/share/nvim/runtime/plugin/shada.vim
65 + 0.115230 0.321000 0.087000: early init
66 + 0.113220 0.887000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
67 + 0.112250 0.355000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
68 + 0.106310 0.414000 0.067000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
69 + 0.102860 0.379000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
70 + 0.101030 1.148000 0.059000: /usr/share/nvim/runtime/plugin/man.vim
71 + 0.085390 0.325000 0.052000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
72 + 0.082080 0.363000 0.039000: /usr/share/nvim/runtime/indent.vim
73 + 0.080080 0.470000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim
74 + 0.078310 0.371000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
75 + 0.078270 0.282000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
76 + 0.075640 0.300000 0.050000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim
77 + 0.075340 0.483000 0.045000: /etc/xdg/nvim/sysinit.vim
78 + 0.075220 0.317000 0.052000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim
79 + 0.074660 0.326000 0.043000: expanding arguments
80 + 0.071840 0.439000 0.045000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
81 + 0.070970 0.239000 0.051000: locale set
82 + 0.065390 0.219000 0.043000: parsing arguments
83 + 0.064380 0.273000 0.042000: /usr/share/vim/vimfiles/plugin/black.vim
84 + 0.063050 0.446000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
85 + 0.061610 0.323000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
86 + 0.059760 0.457000 0.036000: init first window
87 + 0.058260 0.164000 0.041000: inits 2
88 + 0.057180 0.191000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
89 + 0.056520 0.276000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
90 + 0.051460 0.183000 0.021000: /usr/share/nvim/runtime/plugin/gzip.vim
91 + 0.049720 0.424000 0.028000: clearing screen
92 + 0.045950 0.245000 0.031000: /usr/share/vim/vimfiles/ftdetect/meson.vim
93 + 0.044510 0.263000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
94 + 0.041720 0.226000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim
95 + 0.039560 0.266000 0.025000: /usr/share/nvim/runtime/plugin/tutor.vim
96 + 0.039150 0.120000 0.026000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim
97 + 0.039030 0.127000 0.028000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/query.vim
98 + 0.036830 0.294000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
99 + 0.035770 0.256000 0.023000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hcl.vim
100 + 0.034040 0.172000 0.021000: /usr/share/nvim/runtime/filetype.vim
101 + 0.033930 0.605000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/graphql.vim
102 + 0.033530 0.200000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
103 + 0.032710 0.164000 0.022000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
104 + 0.032640 0.131000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim
105 + 0.032400 0.124000 0.021000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
106 + 0.031890 0.205000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/cooklang.vim
107 + 0.030590 0.234000 0.020000: inits 3
108 + 0.029750 0.211000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim
109 + 0.027400 0.153000 0.019000: init default mappings
110 + 0.027320 0.156000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim
111 + 0.026630 0.113000 0.018000: /usr/share/nvim/runtime/plugin/matchit.vim
112 + 0.026430 0.131000 0.018000: /usr/share/nvim/runtime/plugin/matchparen.vim
113 + 0.026210 0.091000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ledger.vim
114 + 0.026160 0.086000 0.018000: init default autocommands
115 + 0.025710 0.053000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdresource.vim
116 + 0.025570 0.083000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim
117 + 0.025370 0.198000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hack.vim
118 + 0.025200 0.078000 0.015000: /usr/share/nvim/runtime/plugin/health.vim
119 + 0.024940 0.079000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim
120 + 0.023540 0.404000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/teal.vim
121 + 0.023540 0.120000 0.016000: /usr/share/nvim/runtime/plugin/spellfile.vim
122 + 0.023360 0.149000 0.014000: /usr/share/nvim/archlinux.vim
123 + 0.022730 0.229000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/surface.vim
124 + 0.022600 0.080000 0.015000: window checked
125 + 0.022550 0.193000 0.015000: /usr/share/nvim/runtime/plugin/tohtml.vim
126 + 0.021970 0.088000 0.016000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ql.vim
127 + 0.020280 0.057000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/fusion.vim
128 + 0.020210 0.073000 0.013000: /home/oli/.local/share/nvim/rplugin.vim
129 + 0.019480 0.064000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdscript.vim
130 + 0.019360 0.061000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gowork.vim
131 + 0.019260 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hjson.vim
132 + 0.019140 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/yang.vim
133 + 0.018990 0.136000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glsl.vim
134 + 0.018840 0.069000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/json5.vim
135 + 0.018830 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/pug.vim
136 + 0.018770 0.049000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/tlaplus.vim
137 + 0.018720 0.053000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/prisma.vim
138 + 0.018070 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/nix.vim
139 + 0.017990 0.066000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glimmer.vim
140 + 0.017850 0.044000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/heex.vim
141 + 0.013040 0.236000 0.005000: editing files in windows
142 + 0.012080 0.028000 0.009000: --- NVIM STARTING ---

neovim/startuptime/x230_2022_07_17_17_59_39.txt

Added
new file mode 100644
1 +Extra options: [init.lua]
2 +Measured: 100 times
4 +Total Average: 1850.736090 msec
5 +Total Max: 1969.983000 msec
6 +Total Min: 1821.947000 msec
8 + AVERAGE MAX MIN
9 +------------------------------------
10 +1006.310160 1006.838000 1006.138000: clearing screen
11 + 802.751960 911.582000 775.461000: /home/oli/.config/nvim/init.lua
12 + 7.836060 11.880000 7.161000: loading packages
13 + 4.288070 6.452000 3.935000: loading after plugins
14 + 3.741050 5.754000 3.373000: loading rtp plugins
15 + 3.100560 4.513000 2.869000: reading ShaDa
16 + 2.885810 4.400000 2.659000: sourcing vimrc file(s)
17 + 2.410220 4.000000 1.840000: opening buffers
18 + 1.840350 3.263000 1.641000: /usr/share/nvim/runtime/filetype.lua
19 + 1.337860 2.431000 1.042000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
20 + 1.102050 1.896000 0.954000: /home/oli/.config/nvim/filetype.lua
21 + 0.973060 1.637000 0.748000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
22 + 0.759020 1.349000 0.553000: BufEnter autocommands
23 + 0.751850 1.337000 0.675000: /usr/share/nvim/runtime/syntax/syntax.vim
24 + 0.667290 1.229000 0.579000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
25 + 0.650380 1.114000 0.576000: /usr/share/vim/vimfiles/plugin/skim.vim
26 + 0.611960 0.926000 0.559000: init lua interpreter
27 + 0.602680 1.008000 0.434000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
28 + 0.565550 0.906000 0.470000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 + 0.441350 0.998000 0.319000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
30 + 0.391140 0.647000 0.258000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
31 + 0.371630 0.687000 0.275000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
32 + 0.353460 1.047000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
33 + 0.335070 0.519000 0.302000: inits 1
34 + 0.331190 0.686000 0.187000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
35 + 0.308770 0.680000 0.205000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
36 + 0.304500 0.576000 0.263000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
37 + 0.289440 0.392000 0.267000: init highlight
38 + 0.288850 0.471000 0.257000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
39 + 0.267110 0.720000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
40 + 0.206530 0.400000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
41 + 0.202800 0.353000 0.181000: /usr/share/nvim/runtime/plugin/rplugin.vim
42 + 0.187210 0.360000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
43 + 0.167000 0.342000 0.129000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
44 + 0.150500 0.349000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
45 + 0.145620 0.307000 0.118000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
46 + 0.143760 0.260000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
47 + 0.141360 0.339000 0.111000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
48 + 0.138520 0.320000 0.082000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
49 + 0.134770 0.333000 0.102000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
50 + 0.133200 0.274000 0.116000: /usr/share/nvim/runtime/syntax/synload.vim
51 + 0.120360 0.165000 0.107000: event init
52 + 0.097450 0.206000 0.085000: early init
53 + 0.095100 0.239000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
54 + 0.086370 0.262000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
55 + 0.085730 0.174000 0.070000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 + 0.082690 0.155000 0.075000: /usr/share/nvim/runtime/plugin/shada.vim
57 + 0.079840 0.149000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
58 + 0.079290 0.198000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
59 + 0.076630 0.177000 0.064000: /usr/share/nvim/runtime/ftplugin.vim
60 + 0.075240 0.156000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
61 + 0.073600 0.148000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
62 + 0.071170 0.204000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
63 + 0.064820 0.121000 0.055000: /usr/share/nvim/runtime/plugin/man.vim
64 + 0.060320 0.132000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
65 + 0.059760 0.188000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
66 + 0.059360 0.106000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim
67 + 0.055910 0.125000 0.049000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
68 + 0.053740 0.084000 0.047000: locale set
69 + 0.052100 0.256000 0.044000: parsing arguments
70 + 0.051790 0.083000 0.045000: /etc/xdg/nvim/sysinit.vim
71 + 0.050950 0.246000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
72 + 0.050490 0.086000 0.044000: expanding arguments
73 + 0.047710 0.076000 0.040000: inits 2
74 + 0.047330 0.092000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
75 + 0.045090 0.081000 0.040000: /usr/share/vim/vimfiles/plugin/black.vim
76 + 0.044210 0.070000 0.033000: init first window
77 + 0.043190 0.105000 0.038000: /usr/share/nvim/runtime/indent.vim
78 + 0.042190 0.085000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
79 + 0.038530 0.097000 0.034000: /usr/share/vim/vimfiles/ftdetect/meson.vim
80 + 0.037170 0.076000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
81 + 0.028740 0.060000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
82 + 0.026970 0.090000 0.024000: /usr/share/nvim/runtime/plugin/tutor.vim
83 + 0.025430 0.237000 0.021000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
84 + 0.024940 0.052000 0.019000: /usr/share/nvim/runtime/plugin/gzip.vim
85 + 0.024930 0.047000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
86 + 0.024220 0.040000 0.021000: /usr/share/nvim/runtime/filetype.vim
87 + 0.023370 0.041000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim
88 + 0.022450 0.067000 0.020000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
89 + 0.021630 0.036000 0.019000: init default mappings
90 + 0.021550 0.043000 0.019000: inits 3
91 + 0.020880 0.038000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim
92 + 0.020190 0.036000 0.018000: init default autocommands
93 + 0.018600 0.033000 0.016000: /usr/share/nvim/runtime/plugin/matchit.vim
94 + 0.018000 0.033000 0.015000: window checked
95 + 0.017820 0.073000 0.015000: /usr/share/nvim/runtime/plugin/matchparen.vim
96 + 0.016460 0.030000 0.014000: /usr/share/nvim/runtime/plugin/health.vim
97 + 0.015920 0.032000 0.014000: /usr/share/nvim/runtime/plugin/spellfile.vim
98 + 0.015430 0.029000 0.014000: /usr/share/nvim/runtime/plugin/tohtml.vim
99 + 0.015110 0.026000 0.013000: /usr/share/nvim/archlinux.vim
100 + 0.013520 0.026000 0.012000: /home/oli/.local/share/nvim/rplugin.vim
101 + 0.010160 0.014000 0.009000: --- NVIM STARTING ---
102 + 0.006420 0.019000 0.005000: editing files in windows

ssh/config

Modified
21 21 Host *
22 22 User root
23 23 Compression yes
24 + AddKeysToAgent yes