repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

ff468e212859de6a94dd39a946ff804df89d2b11

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

unsigned

Browse filesCompare with HEAD

Changed files (136)

EJ-PC-00363.symlinks

Modified
32 32 ~/AppData/Roaming/helix/config.toml
34 34 helix/themes
35 -~/AppData/Roaming/helix/themes
35 +~/AppData/Roaming/helix/themes

cargo/config.toml

Modified
1 1 [build]
2 2 # enable a cache for crates between builds
3 -rustc-wrapper = "sccache"
3 + rustc-wrapper = "sccache"
4 4 # since we only care for builds for our own machine, let's benefit from thise juicy modern cpu features
5 5 rustflags = ["-C", "target-cpu=native"]

helix/config.toml

Modified
1 -theme = "nugu-light"
1 +theme = "nugu-dark"
3 3 [editor]
4 4 shell = ["nu", "--commands"]

helix/languages.toml

Modified
1 +[[language]]
2 +name = "nasm"
3 +language-server = { command = "asm-lsp" }
1 5 [[language]]
2 6 name = "xml"
3 7 auto-format = false

helix/themes/dark-mode/update.sh

Modified
6 6 if [[ "$1" == "default" ]]; then
7 7 # Update Helix Editor config to use light theme.
8 - sed -i 's/theme = ".*"/theme = "nugu-light"/' ${HOME}/.config/helix/config.toml
8 + sed --in-place --follow-symlinks 's/theme = ".*"/theme = "nugu-light"/' ${HOME}/.config/helix/config.toml
9 9 else
10 10 # Update Helix Editor config to use dark theme.
11 - sed -i 's/theme = ".*"/theme = "nugu-dark"/' ${HOME}/.config/helix/config.toml
11 + sed --in-place --follow-symlinks 's/theme = ".*"/theme = "nugu-dark"/' ${HOME}/.config/helix/config.toml
14 14 # reload configuration of running helix instances

helix/themes/nugu-dark.toml

Modified
105 105 "ui.highlight.frameline" = { bg = "ui_important_global" }
107 107 "ui.virtual.wrap" = { fg = "ui_unfocus" }
108 -"ui.virtual.ruler" = { fg = "ui_unfocus" }
108 +"ui.virtual.ruler" = { bg = "ui_unfocus" }
109 109 "ui.virtual.whitespace" = { fg = "ui_unfocus" }
110 110 "ui.virtual.inlay-hint" = { fg = "minor", modifiers = ["italic"] }

helix/themes/nugu-light.toml

Modified
105 105 "ui.highlight.frameline" = { bg = "ui_important_global" }
107 107 "ui.virtual.wrap" = { fg = "ui_unfocus" }
108 -"ui.virtual.ruler" = { fg = "ui_unfocus" }
108 +"ui.virtual.ruler" = { bg = "ui_unfocus" }
109 109 "ui.virtual.whitespace" = { fg = "ui_unfocus" }
110 110 "ui.virtual.inlay-hint" = { fg = "minor", modifiers = ["italic"] }

neovim/.luarc.json

Added
new file mode 100644
1 +{
2 + "workspace.library": [
3 + "/home/oli/.local/share/nvim/site/pack/paqs/start/lua-dev.nvim/types/nightly",
4 + "/home/oli/.local/share/nvim/runtime/lua",
5 + "/home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/lua",
6 + "/home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/lua",
7 + "/home/oli/.local/share/nvim/site/pack/paqs/start/alpha-nvim/lua",
8 + "/home/oli/.local/share/nvim/site/pack/paqs/start/boo-colorscheme-nvim/lua",
9 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cinnamon.nvim/lua",
10 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/lua",
11 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/lua",
12 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/lua",
13 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/lua",
14 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/lua",
15 + "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/lua",
16 + "/home/oli/.local/share/nvim/site/pack/paqs/start/color-picker.nvim/lua",
17 + "/home/oli/.local/share/nvim/site/pack/paqs/start/command-center.nvim/lua",
18 + "/home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/lua",
19 + "/home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/lua",
20 + "/home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/lua",
21 + "/home/oli/.local/share/nvim/site/pack/paqs/start/focus.nvim/lua",
22 + "/home/oli/.local/share/nvim/site/pack/paqs/start/gitsigns.nvim/lua",
23 + "/home/oli/.local/share/nvim/site/pack/paqs/start/hlargs.nvim/lua",
24 + "/home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/lua",
25 + "/home/oli/.local/share/nvim/site/pack/paqs/start/impatient.nvim/lua",
26 + "/home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/lua",
27 + "/home/oli/.local/share/nvim/site/pack/paqs/start/iron.nvim/lua",
28 + "/home/oli/.local/share/nvim/site/pack/paqs/start/keymap-layer.nvim/lua",
29 + "/home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/lua",
30 + "/home/oli/.local/share/nvim/site/pack/paqs/start/lsp-status.nvim/lua",
31 + "/home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/lua",
32 + "/home/oli/.local/share/nvim/site/pack/paqs/start/lua-dev.nvim/lua",
33 + "/home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/lua",
34 + "/home/oli/.local/share/nvim/site/pack/paqs/start/neogen/lua",
35 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nui.nvim/lua",
36 + "/home/oli/.local/share/nvim/site/pack/paqs/start/null-ls.nvim/lua",
37 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-autopairs/lua",
38 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/lua",
39 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/lua",
40 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/lua",
41 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/lua",
42 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/lua",
43 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/lua",
44 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lastplace/lua",
45 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lightbulb/lua",
46 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/lua",
47 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/lua",
48 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-navic/lua",
49 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-neoclip.lua/lua",
50 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-notify/lua",
51 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-spectre/lua",
52 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-surround/lua",
53 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/lua",
54 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/lua",
55 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/lua",
56 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/lua",
57 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/lua",
58 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/lua",
59 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/lua",
60 + "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-window-picker/lua",
61 + "/home/oli/.local/share/nvim/site/pack/paqs/start/paq-nvim/lua",
62 + "/home/oli/.local/share/nvim/site/pack/paqs/start/playground/lua",
63 + "/home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/lua",
64 + "/home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/lua",
65 + "/home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/lua",
66 + "/home/oli/.local/share/nvim/site/pack/paqs/start/stabilize.nvim/lua",
67 + "/home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/lua",
68 + "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-cheat.nvim/lua",
69 + "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-file-browser.nvim/lua",
70 + "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-project.nvim/lua",
71 + "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-ui-select.nvim/lua",
72 + "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/lua",
73 + "/home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/lua",
74 + "/home/oli/.local/share/nvim/site/pack/paqs/start/toggleterm.nvim/lua",
75 + "/home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/lua",
76 + "/home/oli/.local/share/nvim/site/pack/paqs/start/virt-column.nvim/lua",
77 + "/home/oli/Workspace/dotfiles/neovim/lua",
78 + "${3rd}/luv/library"
79 + ]

neovim/README.md

Modified
13 13 <div> some value </div>
16 -## it must be a sickness
16 +## it must be a sicknses
18 18 _why_ do I do *this* to ~myself~ ...?

neovim/after/queries/lua/highlights.scm

Deleted
deleted file mode 100644
1 -(("local" @keyword) (#set! conceal "⋅"))
2 -(("function" @keyword.function) (#set! conceal "ϝ"))
3 -(("end" @keyword.function) (#set! conceal "∎"))
4 -(("return" @keyword.return) (#set! conceal "↳"))
5 -(("then" @conditional) (#set! conceal "⟶"))
7 -((dot_index_expression table: (identifier) @variable (#eq? @variable "vim")) (#set! conceal ""))
9 -((function_call name: (identifier) @function (#eq? @function "require")) (#set! conceal ""))
11 -; ((function_call name: (identifier) @function (#eq? @function "want")) (#set! conceal "ω"))
12 -; ((local_declaration name: (identifier) @variable (#eq? @variable "want") (#set! conceal "ω"))

neovim/colors/nugu.lua

Added
new file mode 100644
1 +if vim.g.colors_name == nil then
2 + -- Get the current hour
3 + local current_hour = tonumber(os.date('%H'))
5 + -- Set the background based on the time of day
6 + if current_hour >= 9 and current_hour < 21 then
7 + vim.opt.background = 'light'
8 + else
9 + vim.opt.background = 'dark'
10 + end
11 +end
13 +vim.g.colors_name = 'nugu'
15 +-- this is necessary to toggle light/dark during runtime
16 +package.loaded['bugabinga.nugu'] = nil
17 +package.loaded['bugabinga.nugu.palette'] = nil
19 +local lush = require 'lush'
20 +local nugu = require 'bugabinga.nugu'
21 +lush(nugu)

neovim/filetype.lua

Deleted
deleted file mode 100644
1 --- use builtin lua filetype detection
2 -vim.g.do_filetype_lua = 1
3 --- disable builtin filetype.vim
4 -vim.g.did_load_filetypes = 0
6 -vim.filetype.add {
7 - extension = {
8 - service = 'systemd',
9 - mount = 'systemd',
10 - timer = 'systemd',
11 - socket = 'systemd',
12 - network = 'systemd',
13 - just = 'just',
14 - },
15 - filename = {
16 - ['justfile'] = 'just',
17 - ['Justfile'] = 'just',
18 - ['.justfile'] = 'just',
19 - ['.Justfile'] = 'just',
20 - },
21 -}

neovim/ftplugin/css.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/html.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/java.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want {
3 - 'jdtls',
4 - 'lsp-zero',
5 - 'nvim-lsp-installer',
6 -}(function(jdtls, zero, installer)
7 - local debug_log = true
8 - local syntax_server = false
9 - local project = require 'bugabinga.std.project'
11 - local jdtls_root_dir = project.determine_java_project_root('~')
12 - if jdtls_root_dir then
13 - vim.notify('eclipse.jdt.ls java project root is ' .. jdtls_root_dir)
14 - -- even when a project root as found, it does not necessarily mean it is a
15 - -- `classic` java project, in the sense that eclipse.jdt.ls thinks of a "project"
16 - if not project.is_java_project_root(jdtls_root_dir, home) then
17 - -- support for single file mode
18 - syntax_server = true
19 - end
20 - else
21 - vim.notify('no root directory for eclipse.jdt.ls could be found.', 'warning')
22 - -- support for single file mode
23 - syntax_server = true
24 - end
26 - if syntax_server then
27 - vim.notify 'starting eclipse.jdt.ls in syntaxserver mode'
28 - end
30 - local installed, jdtls_installer = installer.get_server 'jdtls'
31 - if not installed then
32 - vim.notify('jdtls is not installed!', error)
33 - return
34 - end
35 - local jdtls_install_dir = jdtls_installer.root_dir
36 - local jdtls_config_dir = nil
37 - local jdtls_syntax_server_config_dir = nil
38 - if vim.fn.has 'mac' == 1 then
39 - jdtls_config_dir = jdtls_install_dir .. '/config_mac'
40 - jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_mac'
41 - elseif vim.fn.has 'unix' == 1 then
42 - jdtls_config_dir = jdtls_install_dir .. '/config_linux'
43 - jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_linux'
44 - elseif vim.fn.has 'win32' == 1 then
45 - jdtls_config_dir = jdtls_install_dir .. '/config_win'
46 - jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_win'
47 - else
48 - vim.notify('eclipse.jdt.ls cannot be configured for current system.', 'error')
49 - return
50 - end
52 - local project_directory
53 - if jdtls_root_dir ~= nil then
54 - project_directory = jdtls_root_dir
55 - else
56 - project_directory = vim.fn.getcwd()
57 - end
58 - local project_name = vim.fn.fnamemodify(project_directory, ':p:h:t')
59 - local nvim_data = vim.fn.stdpath 'data'
60 - local jdtls_workspace_dir = nvim_data .. '/eclipse.jdt.ls.workspace/' .. project_name
61 - vim.fn.mkdir(jdtls_workspace_dir, 'p')
63 - local shared_configuration
64 - if syntax_server then
65 - shared_configuration = jdtls_syntax_server_config_dir
66 - else
67 - shared_configuration = jdtls_config_dir
68 - end
69 - -- sometimes the jdtls cannot start (code 13).
70 - -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls"
71 - local jdtls_command = {
72 - 'java',
73 - '-Dsyntaxserver=' .. tostring(syntax_server),
74 - '-Declipse.application=org.eclipse.jdt.ls.core.id1',
75 - '-Dosgi.bundles.defaultStartLevel=4',
76 - '-Declipse.product=org.eclipse.jdt.ls.core.product',
77 - '-Dlog.protocol=' .. tostring(debug_log),
78 - '-Dlog.level=ALL',
79 - '-XX:+UnlockExperimentalVMOptions',
80 - '-XX:+UseZGC',
81 - -- '-XX:+UseParallelGC',
82 - -- '-XX:GCTimeRatio=4',
83 - -- '-XX:AdaptiveSizePolicyWeight=90',
84 - '-Dsun.zip.disableMemoryMapping=true',
85 - '-Djava.import.generatesMetadataFilesAtProjectRoot=false',
86 - '-Xmx4G',
87 - '-Xms100m',
88 - '--add-modules=ALL-SYSTEM',
89 - '--add-opens',
90 - 'java.base/java.util=ALL-UNNAMED',
91 - '--add-opens',
92 - 'java.base/java.lang=ALL-UNNAMED',
93 - '-jar',
94 - vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false),
95 - '-configuration',
96 - shared_configuration,
97 - '-data',
98 - jdtls_workspace_dir,
99 - }
101 - -- FIXME: what's this? necessary?
102 - local extendedClientCapabilities = jdtls.extendedClientCapabilities
103 - extendedClientCapabilities.resolveAdditionalTextEditsSupport = true
105 - local server_trace = 'off'
106 - if debug_log then
107 - server_trace = 'verbose'
108 - end
110 - -- See `:help vim.lsp.start_client` for an overview of the supported `config` options.
111 - local config = {
112 - -- The command that starts the language server
113 - -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line
114 - cmd = jdtls_command,
116 - -- This is the default if not provided, you can remove it. Or adjust as needed.
117 - -- One dedicated LSP server & client will be started per unique root_dir
118 - root_dir = jdtls_root_dir,
120 - -- Here you can configure eclipse.jdt.ls specific settings
121 - -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request
122 - -- for a list of options
123 - settings = {
124 - java = {
125 - autobuild = true,
126 - sources = {
127 - organizeImports = {
128 - starThreshold = 9999,
129 - staticStarThreshold = 9999,
130 - },
131 - },
132 - codeGeneration = {
133 - generateComments = true,
134 - hashCodeEquals = { useJava7Objects = true, useInstanceOf = true },
135 - -- insertionLocation = '',
136 - toString = {
137 - listArrayContents = true,
138 - skipNullValues = false,
139 - },
140 - useBlocks = true,
141 - },
142 - completion = {
143 - enabled = true,
144 - favoriteStaticMembers = {
145 - 'org.hamcrest.MatcherAssert.assertThat',
146 - 'org.hamcrest.Matchers.*',
147 - 'org.hamcrest.CoreMatchers.*',
148 - 'org.junit.jupiter.api.Assertions.*',
149 - 'java.util.Objects.requireNonNull',
150 - 'java.util.Objects.requireNonNullElse',
151 - 'org.mockito.Mockito.*',
152 - },
153 - filteredTypes = {
154 - 'com.sun.*',
155 - 'java.awt.*',
156 - 'sun.*',
157 - },
158 - guessMethodArguments = false,
159 - importOrder = {
160 - 'java',
161 - 'javax',
162 - 'javafx',
163 - 'com',
164 - 'org',
165 - 'de',
166 - 'net',
167 - },
168 - overwrite = false,
169 - },
170 - configuration = {
172 - --FIXME: configure platforms per host
173 - runtimes = {
174 - {
175 - name = 'JavaSE-1.8',
176 - path = '/usr/lib/jvm/java-8-openjdk-amd64',
177 - },
178 - {
179 - name = 'JavaSE-11',
180 - path = '/usr/lib/jvm/java-11-openjdk-amd64',
181 - },
182 - {
183 - name = 'JavaSE-17',
184 - path = '/usr/lib/jvm/java-17-openjdk-amd64',
185 - default = true,
186 - },
187 - },
188 - updateBuildConfiguration = 'automatic',
189 - },
190 - eclipse = { downloadSources = true },
191 - errors = { incompleteClasspath = { severity = 'warning' } },
192 - foldingRange = false,
193 - format = {
194 - enabled = true,
195 - onType = false,
196 - },
197 - implementationsCodeLens = true,
198 - inlayhints = { parameterNames = true },
199 - maven = { downloadSources = true, updateSnapshots = false },
200 - maxConcurrentBuilds = 8,
201 - referenceCodeLens = true,
202 - rename = true,
203 - saveActions = { organizeImports = true },
204 - selectionRange = true,
205 - signatureHelp = true,
206 - trace = { server = server_trace },
207 - },
208 - },
210 - -- Language server `initializationOptions`
211 - -- You need to extend the `bundles` with paths to jar files
212 - -- if you want to use additional eclipse.jdt.ls plugins.
213 - --
214 - -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation
215 - --
216 - -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
217 - init_options = {
218 - -- TODO: integrate debug and test extensions. can those be installed via paq, even though they are not vim plugins?
219 - bundles = {},
220 - extendedClientCapabilities = extendedClientCapabilities,
221 - },
222 - flags = {
223 - debounce_text_changes = 80,
224 - allow_incremental_sync = true,
225 - },
226 - }
227 - -- This starts a new client & server,
228 - -- or attaches to an existing client & server depending on the `root_dir`.
229 - local merged_config = zero.build_options('jdtls', config)
230 - jdtls.start_or_attach(merged_config)
231 -end)

neovim/ftplugin/java.lua.bak

Added
new file mode 100644
1 +local want = require 'std.want'
2 +want {
3 + 'jdtls',
4 + 'lsp-zero',
5 + 'nvim-lsp-installer',
6 +}(function(jdtls, zero, installer)
7 + local debug_log = true
8 + local syntax_server = false
9 + local project = require 'std.project'
10 + local home = os.getenv 'HOME'
12 + local jdtls_root_dir = project.determine_java_project_root '~'
13 + if jdtls_root_dir then
14 + vim.notify('eclipse.jdt.ls java project root is ' .. jdtls_root_dir)
15 + -- even when a project root as found, it does not necessarily mean it is a
16 + -- `classic` java project, in the sense that eclipse.jdt.ls thinks of a "project"
17 + if not project.is_java_project_root(jdtls_root_dir, home) then
18 + -- support for single file mode
19 + syntax_server = true
20 + end
21 + else
22 + vim.notify('no root directory for eclipse.jdt.ls could be found.', 'warning')
23 + -- support for single file mode
24 + syntax_server = true
25 + end
27 + if syntax_server then
28 + vim.notify 'starting eclipse.jdt.ls in syntaxserver mode'
29 + end
31 + local installed, jdtls_installer = installer.get_server 'jdtls'
32 + if not installed then
33 + vim.notify('jdtls is not installed!', error)
34 + return
35 + end
36 + local jdtls_install_dir = jdtls_installer.root_dir
37 + local jdtls_config_dir = nil
38 + local jdtls_syntax_server_config_dir = nil
39 + if vim.fn.has 'mac' == 1 then
40 + jdtls_config_dir = jdtls_install_dir .. '/config_mac'
41 + jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_mac'
42 + elseif vim.fn.has 'unix' == 1 then
43 + jdtls_config_dir = jdtls_install_dir .. '/config_linux'
44 + jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_linux'
45 + elseif vim.fn.has 'win32' == 1 then
46 + jdtls_config_dir = jdtls_install_dir .. '/config_win'
47 + jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_win'
48 + else
49 + vim.notify('eclipse.jdt.ls cannot be configured for current system.', 'error')
50 + return
51 + end
53 + local project_directory
54 + if jdtls_root_dir ~= nil then
55 + project_directory = jdtls_root_dir
56 + else
57 + project_directory = vim.fn.getcwd()
58 + end
59 + local project_name = vim.fn.fnamemodify(project_directory, ':p:h:t')
60 + local nvim_data = vim.fn.stdpath 'data'
61 + local jdtls_workspace_dir = nvim_data .. '/eclipse.jdt.ls.workspace/' .. project_name
62 + vim.fn.mkdir(jdtls_workspace_dir, 'p')
64 + local shared_configuration
65 + if syntax_server then
66 + shared_configuration = jdtls_syntax_server_config_dir
67 + else
68 + shared_configuration = jdtls_config_dir
69 + end
70 + -- sometimes the jdtls cannot start (code 13).
71 + -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls"
72 + local jdtls_command = {
73 + 'java',
74 + '-Dsyntaxserver=' .. tostring(syntax_server),
75 + '-Declipse.application=org.eclipse.jdt.ls.core.id1',
76 + '-Dosgi.bundles.defaultStartLevel=4',
77 + '-Declipse.product=org.eclipse.jdt.ls.core.product',
78 + '-Dlog.protocol=' .. tostring(debug_log),
79 + '-Dlog.level=INFO',
80 + '-XX:+UnlockExperimentalVMOptions',
81 + '-XX:+UseZGC',
82 + -- '-XX:+UseParallelGC',
83 + -- '-XX:GCTimeRatio=4',
84 + -- '-XX:AdaptiveSizePolicyWeight=90',
85 + '-Dsun.zip.disableMemoryMapping=true',
86 + '-Djava.import.generatesMetadataFilesAtProjectRoot=false',
87 + '-Xmx4G',
88 + '-Xms100m',
89 + '--add-modules=ALL-SYSTEM',
90 + '--add-opens',
91 + 'java.base/java.util=ALL-UNNAMED',
92 + '--add-opens',
93 + 'java.base/java.lang=ALL-UNNAMED',
94 + '-jar',
95 + vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false),
96 + '-configuration',
97 + shared_configuration,
98 + '-data',
99 + jdtls_workspace_dir,
102 + -- FIXME: what's this? necessary?
103 + local extendedClientCapabilities = jdtls.extendedClientCapabilities
104 + extendedClientCapabilities.resolveAdditionalTextEditsSupport = true
106 + local server_trace = 'off'
107 + if debug_log then
108 + server_trace = 'verbose'
109 + end
111 + -- See `:help vim.lsp.start_client` for an overview of the supported `config` options.
112 + local config = {
113 + -- The command that starts the language server
114 + -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line
115 + cmd = jdtls_command,
117 + -- This is the default if not provided, you can remove it. Or adjust as needed.
118 + -- One dedicated LSP server & client will be started per unique root_dir
119 + root_dir = jdtls_root_dir,
121 + -- Here you can configure eclipse.jdt.ls specific settings
122 + -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request
123 + -- for a list of options
124 + settings = {
125 + java = {
126 + autobuild = true,
127 + sources = {
128 + organizeImports = {
129 + starThreshold = 9999,
130 + staticStarThreshold = 9999,
131 + },
132 + },
133 + codeGeneration = {
134 + generateComments = true,
135 + hashCodeEquals = { useJava7Objects = true, useInstanceOf = true },
136 + -- insertionLocation = '',
137 + toString = {
138 + listArrayContents = true,
139 + skipNullValues = false,
140 + },
141 + useBlocks = true,
142 + },
143 + completion = {
144 + enabled = true,
145 + favoriteStaticMembers = {
146 + 'org.hamcrest.MatcherAssert.assertThat',
147 + 'org.hamcrest.Matchers.*',
148 + 'org.hamcrest.CoreMatchers.*',
149 + 'org.junit.jupiter.api.Assertions.*',
150 + 'java.util.Objects.requireNonNull',
151 + 'java.util.Objects.requireNonNullElse',
152 + 'org.mockito.Mockito.*',
153 + },
154 + filteredTypes = {
155 + 'com.sun.*',
156 + 'java.awt.*',
157 + 'sun.*',
158 + },
159 + guessMethodArguments = false,
160 + importOrder = {
161 + 'java',
162 + 'javax',
163 + 'javafx',
164 + 'com',
165 + 'org',
166 + 'de',
167 + 'net',
168 + },
169 + overwrite = false,
170 + },
171 + configuration = {
173 + --FIXME: configure platforms per host
174 + runtimes = {
176 + name = 'JavaSE-1.8',
177 + path = '/usr/lib/jvm/java-8-openjdk-amd64',
178 + },
180 + name = 'JavaSE-11',
181 + path = '/usr/lib/jvm/java-11-openjdk-amd64',
182 + },
184 + name = 'JavaSE-17',
185 + path = '/usr/lib/jvm/java-17-openjdk-amd64',
186 + default = true,
187 + },
188 + },
189 + updateBuildConfiguration = 'automatic',
190 + },
191 + eclipse = { downloadSources = true },
192 + errors = { incompleteClasspath = { severity = 'warning' } },
193 + foldingRange = false,
194 + format = {
195 + enabled = true,
196 + onType = false,
197 + },
198 + implementationsCodeLens = true,
199 + inlayhints = { parameterNames = true },
200 + maven = { downloadSources = true, updateSnapshots = false },
201 + maxConcurrentBuilds = 8,
202 + referenceCodeLens = true,
203 + rename = true,
204 + saveActions = { organizeImports = true },
205 + selectionRange = true,
206 + signatureHelp = true,
207 + trace = { server = server_trace },
208 + },
209 + },
211 + -- Language server `initializationOptions`
212 + -- You need to extend the `bundles` with paths to jar files
213 + -- if you want to use additional eclipse.jdt.ls plugins.
214 + --
215 + -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation
216 + --
217 + -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this
218 + init_options = {
219 + -- TODO: integrate debug and test extensions. can those be installed via paq, even though they are not vim plugins?
220 + bundles = {},
221 + extendedClientCapabilities = extendedClientCapabilities,
222 + },
223 + flags = {
224 + debounce_text_changes = 80,
225 + allow_incremental_sync = true,
226 + },
228 + -- This starts a new client & server,
229 + -- or attaches to an existing client & server depending on the `root_dir`.
230 + local merged_config = zero.build_options('jdtls', config)
231 + jdtls.start_or_attach(merged_config)
232 +end)

neovim/ftplugin/json.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/lua.lua

Modified
1 --- conceal some syntax with pretty symbols and show them only in
2 --- insert mode. see after/queries/lua/highlights.scm for more.
3 -vim.opt_local.conceallevel = 2
4 -vim.opt_local.concealcursor = 'nc'
1 +-- Options to add `gf` functionality inside `.lua` files.
2 +vim.opt_local.include = [[\v<((do|load)file|require)[^''"]*[''"]\zs[^''"]+]]
3 +vim.opt_local.includeexpr = "substitute(v:fname,'\\.','/','g')"
4 +for _, path in pairs(vim.api.nvim_list_runtime_paths()) do
5 + vim.opt_local.path:append(path .. '/lua')
6 +end
7 +vim.opt_local.suffixesadd:prepend '.lua'

neovim/ftplugin/markdown.lua

Modified
1 1 -- auto save markdown files
2 2 vim.opt_local.autowriteall = true
3 --- hide code block fences
4 -vim.opt_local.conceallevel = 2
6 -local want = require 'bugabinga.std.want'
7 --- local auto = require 'bugabinga.std.auto'
8 -local map = require 'bugabinga.std.keymap'
10 -want { 'toggleterm.terminal' }(function(toggleterm)
11 - local Terminal = toggleterm.Terminal
12 - local file = vim.api.nvim_buf_get_name(0)
13 - local markdown_preview_command = 'mdcat ' .. file
14 - -- this command only shows the correct preview, if the buffer has been saved
15 - -- before. i could not figure out how to use the buffer content instead.
16 - local mdcat = Terminal:new {
17 - cmd = markdown_preview_command,
18 - direction = 'float',
19 - start_in_insert = false,
20 - close_on_exit = false,
21 - hidden = true,
22 - }
23 - map {
24 - description = 'Opens a preview of the current markdown buffer.',
25 - category = map.CATEGORY.MARKDOWN,
26 - mode = map.MODE.NORMAL,
27 - keys = '<LEADER>mp',
28 - command = function()
29 - mdcat:toggle()
30 - end,
31 - }
32 -end)

neovim/ftplugin/properties.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/python.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/rust.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/toml.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/xml.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/yaml.lua

Deleted
deleted file mode 100644

No text changes.

neovim/ftplugin/zig.lua

Deleted
deleted file mode 100644

No text changes.

neovim/init.lua

Modified
7 7 -- ███ █▄ ▄█ ███ █ ███ ▐ █ █ █ ███ █
8 8 -- ▀▀▀ █ █ ██ █
9 9 -- ▀ ▀
11 -vim.g.profile_config = false
12 -local profiler = require 'bugabinga.profiler'
13 -if vim.g.profile_config then profiler.start() end
15 --- the order of the first module to load is non-obvious.
16 --- we want to load the plugins first, because the config depends on those.
17 --- but we also want to load the module-cache plugin first, in order to benefit from caching most modules.
18 --- for this and other reasons, all modules defined here should use a graceful version `require`, that allows handling the absence of modules.
19 --- use either `bugabinga.std.want` or `pcall`.
20 ---
21 ---that way, we can order the modules here logically, assuming all plugins are installed.
22 ---if (some) plugins are not installed, the config gracefully degrades in features, but does not throw errors.
23 ---
24 --- load this before all other plugins so that they may be cached
25 -require 'bugabinga.module-cache'
27 --- install plugin manager and declare plugins to use
28 -require 'bugabinga.plugins'
30 10 -- set general neovim editor settings
31 -require 'bugabinga.options'
33 --- load ui stuff
34 -require 'bugabinga.notify'
35 -require 'bugabinga.colortheme'
36 -require 'bugabinga.devicons'
37 -require 'bugabinga.colorcolumn'
38 -require 'bugabinga.fuzzy-search-ui'
39 -require 'bugabinga.colorizer'
40 -require 'bugabinga.smooth-scroll'
41 -require 'bugabinga.git-status'
42 -require 'bugabinga.start-screen'
43 -require 'bugabinga.registers'
44 -require 'bugabinga.terminal'
45 -require 'bugabinga.file-explorer'
46 -require 'bugabinga.indent-lines'
47 -require 'bugabinga.search'
48 -require 'bugabinga.replace'
49 -require 'bugabinga.windows'
50 -require 'bugabinga.problems'
52 --- load editor features
53 -require 'bugabinga.move-code'
54 -require 'bugabinga.last-known-position'
55 -require 'bugabinga.fast-navigation'
56 -require 'bugabinga.comments'
57 -require 'bugabinga.clipboard'
58 -require 'bugabinga.autopairs'
59 -require 'bugabinga.todo'
60 -require 'bugabinga.markdown'
61 -require 'bugabinga.surround'
63 --- treesitter
64 -require 'bugabinga.treesitter'
11 +require'bugabinga.options'
12 +-- install plugin manager and declare plugins to use
13 +require'bugabinga.lazy'
14 +-- configures the vim diagnostic subsystem
15 +require'bugabinga.diagnostic'
16 +-- FIXME(buga): should this be moved somewhere else?
17 +require'bugabinga.trim'
66 18 -- lsp
67 -require 'bugabinga.lsp'
69 --- diagnostic
70 -require 'bugabinga.diagnostic'
72 -if vim.g.profile_config then profiler.stop() end
74 --- TODO: fix gitsigns highights
75 --- TODO: preview multimedia with telescope
76 --- TODO: nugu theme
77 --- TODO: hydra cycle buffers
78 --- TODO: cross platform status bar
79 --- TODO: show winbar
80 --- TODO: show read only files in winbar
81 --- TODO: load plugins/init.lua and sync on write. reload init.lua?
82 --- TODO: use nvim-specific lsp only in neovim config
83 --- TODO: steal filetype settings from shark, astrovim, lunarvim etc
84 --- TODO: is it possible to cache LSP init per project?
85 --- TODO: DAP
86 --- TODO: fix cursor flicker when openinig neotree and other windows stuff in lsp buffers
19 +-- require 'bugabinga.lsp'
88 21 -- TODO:
89 --- [ ] icon facade: icon.get("name")
90 --- [ ] DAP
91 --- [ ] put all keybinds into facade
92 --- [ ] hydra cycle buffers
93 --- [ ] make keymap facade immediate and support buffer local binds
94 --- [ ] change style for read only files
95 --- [ ] add fstabfmt to null-ls
96 22 -- [ ] add nu-check to null-ls
97 --- [ ] add languiageserver to null-ls
98 --- [ ] undofile not work?
99 --- [ ] why does redo not work?
100 --- [ ] start a toggleterm with: watch <buffer> { clear; mdcat <buffer> }
101 --- [ ] load plugins/init.lua and sync on write. reload init.lua?
102 --- [ ] disable gomove in special buffers
103 --- [ ] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
104 --- [ ] use languagetool
105 --- [ ] evaluate using nvim-lint, formatter.nvim, hober.nvim and instead of nullls
106 --- [x] JDTLS
107 --- [~] bindings for luadev
108 --- [~] close toogleterms on quit
109 --- [-] LSP diagnostics on save
110 --- [x] make focus handle hybrid linenumbers and less jitter
111 --- [x] disable shade for some buffers
112 --- [~] turn off colorcolumns in certain buffers, only show in active buffer, use focus?
113 --- [~] check for system dependecneis, extend checkhealth?
114 --- [~] illuminate+LSP + treesitter.refactor.highlight.definitions
115 --- [x] LSP
116 --- [~] gf to lua modules
117 --- [x] AUTOCMD
118 --- [x] COMPLETION
119 --- [x] JAVA, RUST, ZIG
120 --- [~] MARKDOWN
121 --- [~] nushell
122 --- [x] XML, TOML, JSON, YAML
123 --- [x] TREESITTER
124 --- [~] ~~SVN~~
125 --- [~] ~~VIM-ENEUCH for nvim~~
126 --- [x] KEYBINDINGS
127 --- [x] PAQ
128 --- [x] impatient
129 --- [x] icons + colorscheme
130 --- [x] TELESCOPE
131 --- [x] TERMINAL
132 --- [x] GIT
133 --- [x] TREE
134 --- [x] restore last cursor position
135 --- [x] bind nohl
136 --- [x] configure Comment
23 +-- [ ] use neodev
24 +-- [ ] is it possible to cache LSP init per project?
25 +-- [ ] nugu theme
26 +-- [ ] use ltex-ls for markdown, code comments and commit messages
27 +-- [ ] DAP
138 ---
139 29 -- PLUGINS TO TRY
140 --- https://github.com/lukas-reineke/lsp-format.nvim
141 30 -- https://github.com/ThePrimeagen/refactoring.nvim
142 --- https://github.com/windwp/windline.nvim
143 --- https://github.com/hrsh7th/nvim-pasta
144 --- https://github.com/Saecki/crates.nvim
145 --- https://github.com/VonHeikemen/little-wonder
146 --- https://github.com/mfussenegger/nvim-lint
147 --- https://github.com/mhartington/formatter.nvim
148 --- https://github.com/lewis6991/hover.nvim
149 --- https://github.com/VonHeikemen/project-settings.nvim
150 --- https://github.com/jinh0/eyeliner.nvim
151 --- https://github.com/iamcco/markdown-preview.nvim
152 --- https://github.com/jakewvincent/mkdnflow.nvim
153 --- https://github.com/rktjmp/lush.nvim
154 --- https://github.com/jbyuki/venn.nvim
155 --- https://github.com/ziontee113/color-picker.nvim
156 --- https://github.com/sQVe/sort.nvim
157 --- https://github.com/ThePrimeagen/harpoon
158 ---
159 --- DAP PLUGINS
160 --- https://github.com/mfussenegger/nvim-dap
161 --- https://github.com/nvim-telescope/telescope-dap.nvim
162 --- https://github.com/theHamsta/nvim-dap-virtual-text
163 --- https://github.com/rcarriga/nvim-dap-ui

neovim/justfile

Modified
14 14 selene --num-threads 100 .
15 15 taplo lint
17 -# Update neovim plugins via paq sync. Closes itself right after update.
18 -update:
19 - nvim --headless -u NONE -i NONE --cmd "lua require('bugabinga.plugins.headless')"
21 -profile_file := `$"startuptime/(sys | get host | get hostname)_(date now | date format '%Y_%m_%d_%H_%M_%S').txt"`
23 -# Profile startuptime of neovim. Depends on vim-startuptime.
24 -profile:
25 - vim-startuptime -vimpath nvim -count 100 -warmup 10 init.lua | save {{profile_file}}
26 - open {{profile_file}}
28 -profile_baseline:
29 - vim-startuptime -vimpath nvim -count 100 -warmup 10 -- init.lua --noplugin -i NONE -u NONE -n
17 +# delete all current neovim state, cache and other ephemeral data.
18 +# does NOT delete the configs
19 +nuke:
20 + rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[data]]' +:q | lines | last)
21 + rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[cache]]' +:q | lines | last)
22 + rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[state]]' +:q | lines | last)

neovim/lazy-lock.json

Added
new file mode 100644
1 +{
2 + "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 + "better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" },
4 + "cmp-omni": { "branch": "main", "commit": "9436e6cdd7c5dfa24a99a60d9280b24dbdea3649" },
5 + "dressing.nvim": { "branch": "master", "commit": "e6eff7a5a950a853c3903d906dbcea03f778db5f" },
6 + "gitsigns.nvim": { "branch": "main", "commit": "5a04466685008f29c71fa5ec25d421deb1c83fea" },
7 + "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" },
8 + "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" },
9 + "hlargs.nvim": { "branch": "main", "commit": "cfc9beab4e176a13311efe03e38e6b6fed5df4f6" },
10 + "indent-blankline.nvim": { "branch": "master", "commit": "b7aa0aed55887edfaece23f7b46ab22232fc8741" },
11 + "indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" },
12 + "lazy.nvim": { "branch": "main", "commit": "14d76aac4bd3ff07c1fca074c210f28f766a931e" },
13 + "lush.nvim": { "branch": "main", "commit": "b10ef2bfff0647e701b691019ade3edd5e44eb50" },
14 + "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
15 + "noice.nvim": { "branch": "main", "commit": "6c87c1d11c38180fb72bf8f45518a0a3e081afc1" },
16 + "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
17 + "nui.nvim": { "branch": "main", "commit": "7a524120a7a70761b5a65b602fd235a65cb005aa" },
18 + "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" },
19 + "nvim-cmp": { "branch": "main", "commit": "983453e32cb35533a119725883c04436d16c0120" },
20 + "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
21 + "nvim-genghis": { "branch": "main", "commit": "6278a9e05f2daac5578ac043d9372f71a4ddf07c" },
22 + "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
23 + "nvim-lastplace": { "branch": "main", "commit": "aeb0e0bd399288092729da89a9e51dda4ccbc9ec" },
24 + "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
25 + "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
26 + "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" },
27 + "nvim-treesitter": { "branch": "master", "commit": "39f10b0b14184f746a0c9e7475c5ea81a9a812f6" },
28 + "nvim-treesitter-textobjects": { "branch": "master", "commit": "52f1f3280d9092bfaee5c45be5962fabee3d9654" },
29 + "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
30 + "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" },
31 + "nvim-web-devicons": { "branch": "master", "commit": "9ab9b0b894b2388a9dbcdee5f00ce72e25d85bf9" },
32 + "oil.nvim": { "branch": "master", "commit": "0138a2e0f9baacd98d5531ebb5078fafc5114fae" },
33 + "playground": { "branch": "master", "commit": "2b81a018a49f8e476341dfcb228b7b808baba68b" },
34 + "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
35 + "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
36 + "substitute.nvim": { "branch": "main", "commit": "42d09f1e6324d98aa2e5b765b64528e0aefe72b0" },
37 + "telescope-file-browser.nvim": { "branch": "master", "commit": "e03ff55962417b69c85ef41424079bb0580546ba" },
38 + "telescope-fzf-native.nvim": { "branch": "main", "commit": "9bc8237565ded606e6c366a71c64c0af25cd7a50" },
39 + "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" },
40 + "telescope.nvim": { "branch": "0.1.x", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" },
41 + "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
42 + "tokyonight.nvim": { "branch": "main", "commit": "a0a7bfbc4c54348b56880a162afac9d103c618c1" },
43 + "treesj": { "branch": "main", "commit": "3203aa553217921fd4dcb79245f9df07278910b2" },
44 + "twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
45 + "virt-column.nvim": { "branch": "master", "commit": "93b40ea038f676f5a72d7d1f2336fe7b051fc0ce" },
46 + "zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" }

neovim/lua/bugabinga/autopairs.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'nvim-autopairs' }(function(autopairs)
3 - --FIXME integrate with cmp later
4 - autopairs.setup {
5 - check_ts = true,
6 - disable_filetype = { 'TelescopePrompt', 'spectre_panel' },
7 - }
8 -end)

neovim/lua/bugabinga/clipboard.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'neoclip' }(function(neoclip)
3 - neoclip.setup()
4 -end)

neovim/lua/bugabinga/colorcolumn.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'virt-column' }(function(virt_column)
3 - virt_column.setup {
4 - char = '│',
5 - }
6 -end)

neovim/lua/bugabinga/colorizer.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'colorizer' }(function(colorizer)
3 - colorizer.setup {
4 - filetypes = { "*" },
5 - user_default_options = {
6 - RGB = true, -- #RGB hex codes
7 - RRGGBB = true, -- #RRGGBB hex codes
8 - names = true, -- "Name" codes like Blue or blue
9 - RRGGBBAA = false, -- #RRGGBBAA hex codes
10 - AARRGGBB = false, -- 0xAARRGGBB hex codes
11 - rgb_fn = false, -- CSS rgb() and rgba() functions
12 - hsl_fn = false, -- CSS hsl() and hsla() functions
13 - css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
14 - css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
15 - -- Available modes for `mode`: foreground, background, virtualtext
16 - mode = "background", -- Set the display mode.
17 - -- Available methods are false / true / "normal" / "lsp" / "both"
18 - -- True is same as normal
19 - tailwind = false, -- Enable tailwind colors
20 - -- parsers can contain values used in |user_default_options|
21 - sass = { enable = false, parsers = { css }, }, -- Enable sass colors
22 - virtualtext = "■",
23 - },
24 - -- all the sub-options of filetypes apply to buftypes
25 - buftypes = {},
26 - }
28 -end)

neovim/lua/bugabinga/colortheme.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'boo-colorscheme' } (function(boo)
3 - local themes = { 'sunset_cloud', 'radioactive_waste', 'forest_stream', 'crimson_moonlight'}
4 - local random_theme = themes[(math.floor(math.random() * #themes))]
5 - boo.use{
6 - italic = true,
7 - theme = random_theme,
8 - }
9 - vim.api.nvim_set_hl(0, 'LspReferenceText', {})
10 - vim.api.nvim_set_hl(0, 'LspReferenceRead', {
11 - standout = true,
12 - })
13 - vim.api.nvim_set_hl(0, 'LspReferenceWrite', {
14 - standout = true,
15 - bold = true,
16 - })
17 -end)

neovim/lua/bugabinga/comments.lua

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
2 -local want = require 'bugabinga.std.want'
3 -want { 'Comment' } (function(comment)
4 - comment.setup {
5 - mappings = {
6 - basic = false,
7 - extra = false,
8 - extended = false,
9 - },
10 - }
12 - -- taken from documentation, not sure why exactly these options are necessary
13 - local options = { expr = true, remap = true }
14 - map {
15 - description = 'Toggle linewise comment',
16 - category = map.CATEGORY.EDITING,
17 - mode = map.MODE.NORMAL,
18 - keys = 'gcc',
19 - command = "v:count == 0 ? '<Plug>(comment_toggle_current_linewise)' : '<Plug>(comment_toggle_linewise_count)'",
20 - options = options,
21 - }
22 - map {
23 - description = 'Toggle blockwise comment',
24 - category = map.CATEGORY.EDITING,
25 - mode = map.MODE.NORMAL,
26 - keys = 'gbc',
27 - command = "v:count == 0 ? '<Plug>(comment_toggle_current_blockwise)' : '<Plug>(comment_toggle_blockwise_count)'",
28 - options = options,
29 - }
31 - map {
32 - description = 'Toggle motion linewise comment',
33 - category = map.CATEGORY.EDITING,
34 - mode = map.MODE.NORMAL,
35 - keys = 'gc',
36 - command = '<Plug>(comment_toggle_linewise)',
37 - }
38 - map {
39 - description = 'Toggle motion blockwise comment',
40 - category = map.CATEGORY.EDITING,
41 - mode = map.MODE.NORMAL,
42 - keys = 'gb',
43 - command = '<Plug>(comment_toggle_blockwise)',
44 - }
46 - map {
47 - description = 'Toggle visual linewise comment',
48 - category = map.CATEGORY.EDITING,
49 - mode = map.MODE.VISUAL,
50 - keys = 'gc',
51 - command = '<Plug>(comment_toggle_linewise_visual)',
52 - }
53 - map {
54 - description = 'Toggle visual blockwise comment',
55 - category = map.CATEGORY.EDITING,
56 - mode = map.MODE.VISUAL,
57 - keys = 'gb',
58 - command = '<Plug>(comment_toggle_blockwise_visual)',
59 - }
60 -end)

neovim/lua/bugabinga/devicons.lua

Deleted
deleted file mode 100644
1 --- TODO: once the colortheme is lushified, use it as a source of colors here
2 -local want = require 'bugabinga.std.want'
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 - },
121 - }
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')
125 -end)

neovim/lua/bugabinga/diagnostic.lua

Modified
1 --- the topic 'diagnotics' was refactored out of LSP into its own thing some time
2 --- ago. that is why it gets its own section in this config now, but right now,
3 --- those settings overlap with lsp-zero.
1 +local want = require 'std.want'
2 +local auto = require 'std.auto'
3 +local map = require 'std.keymap'
5 -local auto = require 'bugabinga.std.auto'
6 -local map = require 'bugabinga.std.keymap'
7 -local icon = require 'bugabinga.std.icon'
5 +local icon = { ' ', ' ', '', '💡' }
6 +icon.error = icon[1]
7 +icon.warn = icon[2]
8 +icon.info = icon[3]
9 +icon.hint = icon[4]
11 +local display_name = {
12 + 'Error',
13 + 'Warning',
14 + 'Information',
15 + 'Hint',
9 18 local diagnostic = vim.diagnostic
19 +diagnostic.disable(0)
11 21 local diagnostic_format = function(context)
12 - local message = context.message
13 - local severity = context.severity
14 - local symbol = ''
15 - if severity == diagnostic.severity.ERROR then
16 - symbol = icon 'Error'
17 - elseif severity == diagnostic.severity.WARN then
18 - symbol = icon 'Warning'
19 - elseif severity == diagnostic.severity.INFO then
20 - symbol = icon 'Information'
21 - elseif severity == diagnostic.severity.HINT then
22 - symbol = icon 'Hint'
23 - end
24 - return string.format('%s | %s', symbol, message)
22 + return string.format('%s: %s', display_name[context.severity], context.message)
27 25 local prefix_format = function(context, index, total)
28 - local source = context.source
29 - local severity = context.severity
30 - local symbol = ''
31 - if severity == diagnostic.severity.ERROR then
32 - symbol = icon 'Error'
33 - elseif severity == diagnostic.severity.WARN then
34 - symbol = icon 'Warning'
35 - elseif severity == diagnostic.severity.INFO then
36 - symbol = icon 'Information'
37 - elseif severity == diagnostic.severity.HINT then
38 - symbol = icon 'Hint'
39 - end
40 - return string.format('%s/%s %s %s ', index, total, source, symbol)
26 + return string.format('%s/%s %s %s ', index, total, context.source, icon[context.severity]), 'DiagnosticVirtualText'.. display_name[context.severity]
43 29 diagnostic.config {
44 - underline = {
45 - severity = diagnostic.severity.ERROR,
46 - },
47 - virtual_text = {
48 - severity = diagnostic.severity.HINT,
49 - source = false,
50 - spacing = 0,
51 - prefix = '',
52 - format = diagnostic_format,
53 - },
54 - float = {
55 - focusable = false,
56 - style = 'minimal',
57 - border = 'rounded',
58 - source = false,
59 - header = '',
60 - prefix = prefix_format,
61 - },
62 - update_in_insert = false,
63 - signs = true,
64 - severity_sort = true,
30 + underline = true,
31 + virtual_text = {
32 + severity = { min = diagnostic.severity.WARN },
33 + source = false,
34 + spacing = 2,
35 + prefix = '⦿ ',
36 + format = diagnostic_format,
37 + },
38 + float = {
39 + focusable = false,
40 + style = 'minimal',
41 + border = 'rounded',
42 + source = 'if_many',
43 + header = 'Diagnostic',
44 + suffix = header_format,
45 + prefix = prefix_format,
46 + },
47 + update_in_insert = false,
48 + signs = true,
49 + severity_sort = true,
67 52 local sign = function(options)
68 - vim.fn.sign_define(options.name, {
69 - texthl = options.name,
53 + vim.fn.sign_define(options.name, {
70 54 text = options.text,
71 - numhl = '',
72 - })
55 + texthl = options.name,
56 + numhl = options.name,
57 + culhl = options.name,
58 + linehl = options.name,
59 + })
75 -sign { name = 'DiagnosticSignError', text = icon 'Error' }
76 -sign { name = 'DiagnosticSignWarn', text = icon 'Warning' }
77 -sign { name = 'DiagnosticSignHint', text = icon 'Hint' }
78 -sign { name = 'DiagnosticSignInfo', text = icon 'Information' }
62 +sign { name = 'DiagnosticSignError', text = icon.error }
63 +sign { name = 'DiagnosticSignWarn', text = icon.warn }
64 +sign { name = 'DiagnosticSignHint', text = icon.hint }
65 +sign { name = 'DiagnosticSignInfo', text = icon.info }
80 -auto 'hide_diagnostics' {
81 - description = 'Hide diagnostics by default',
82 - events = { 'BufReadPre' },
83 - pattern = '*',
84 - command = function()
85 - diagnostic.disable(0)
86 - end,
88 -local saved_cursor_highlight = vim.api.nvim_get_hl_by_name('Cursor', true)
89 --- TODO: get colors from theme
90 -local noticeable = { foreground = '#ffffff', background = '#ff0000'}
92 -auto 'cursor_attention_if_diagnostics' {
93 - description = 'Make cursor very noticeable, if diagnostics are present',
94 - events = 'DiagnosticChanged',
95 - pattern = '*',
96 - command = function()
97 - local diagnostic_number = #vim.diagnostic.get(0,{severity = vim.diagnostic.severity.ERROR})
98 - if diagnostic_number > 0 then
99 - vim.api.nvim_set_hl(0, 'Cursor', noticeable)
67 +map.normal {
68 + name = 'Toggle diagnostics',
69 + category = 'diagnostic',
70 + keys = '<F6><F6>',
71 + command = function()
72 + if diagnostic.is_disabled(0) then
73 + diagnostic.enable(0)
74 + vim.notify 'Enabling Diagnostics'
101 - vim.api.nvim_set_hl(0, 'Cursor', saved_cursor_highlight)
76 + diagnostic.disable(0)
77 + vim.notify 'Disabling Diagnostics'
78 + end
79 + end,
82 +local show_diagnostics = function()
83 + want'telescope.builtin'(
84 + function(builtin)
85 + builtin.diagnostics()
86 + end,
87 + function()
88 + -- seems to have bug: https://github.com/neovim/neovim/issues/21949
89 + diagnostic.open_float()
90 + end)
91 +end
93 +map.normal {
94 + name = 'Show diagnostics in float window',
95 + category = 'diagnostic',
96 + keys = '<F6>',
97 + command = function()
98 + if #diagnostic.get(0) > 0 then
99 + if diagnostic.is_disabled(0) then
100 + diagnostic.enable(0)
101 + vim.notify 'Enabling Diagnostics'
102 + end
103 + show_diagnostics()
104 + else
105 + vim.notify 'No diagnostics to show!'
106 -map {
107 - description = 'Enable diagnostics',
108 - category = map.CATEGORY.PROBLEMS,
109 - mode = map.MODE.NORMAL,
110 - keys = map.KEY.LEADER .. map.KEY.P,
111 - command = function()
112 - diagnostic.enable(0)
113 - end,
115 -map {
116 - description = 'Disable diagnostics',
117 - category = map.CATEGORY.PROBLEMS,
118 - mode = map.MODE.NORMAL,
119 - keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.P,
120 - command = function()
121 - diagnostic.disable(0)
122 - end,
124 -map {
125 - description = 'Show diagnostics in float window',
126 - category = map.CATEGORY.PROBLEMS,
127 - mode = map.MODE.NORMAL,
128 - keys = map.KEY.F6,
129 - command = function()
130 - diagnostic.enable(0)
131 - diagnostic.open_float()
132 - end,
134 -map {
135 - description = 'Go to previous diagnostic',
136 - category = map.CATEGORY.PROBLEMS,
137 - mode = map.MODE.NORMAL,
138 - keys = map.KEY.F7,
110 +map.normal {
111 + name = 'Go to previous diagnostic',
112 + category = 'diagnostic',
113 + keys = '<C-F6>',
139 114 command = function()
140 115 diagnostic.enable(0)
141 116 diagnostic.goto_prev()
144 -map {
145 - description = 'Go to next diagnostic',
146 - category = map.CATEGORY.PROBLEMS,
147 - mode = map.MODE.NORMAL,
148 - keys = map.KEY.F8,
120 +map.normal {
121 + name = 'Go to next diagnostic',
122 + category = 'diagnostic',
123 + keys = '<S-F6>',
149 124 command = function()
150 125 diagnostic.enable(0)
151 126 diagnostic.goto_next()
130 +-- a little debug helper to show all kinds of diagnostics
132 +local dia = function( severity, line )
133 + local ns = vim.api.nvim_create_namespace('test'.. tostring(severity))
134 + local bufnr = vim.api.nvim_get_current_buf()
135 + local diagnostic = {
136 + bufnr = bufnr,
137 + lnum = line,
138 + end_lnum = line,
139 + col = 0,
140 + severity = severity,
141 + message = 'This is a test ' .. tostring(severity) .. ' diagnostic',
144 + vim.diagnostic.set(ns, bufnr, {diagnostic})
145 + vim.diagnostic.show(ns, bufnr, {diagnostic})
146 +end
148 +local send_dia = function()
149 + dia(vim.diagnostic.severity.ERROR, 1)
150 + dia(vim.diagnostic.severity.WARN, 2)
151 + dia(vim.diagnostic.severity.INFO, 3)
152 + dia(vim.diagnostic.severity.HINT, 4)
153 +end
155 +vim.g.send_dia = send_dia

neovim/lua/bugabinga/fast-navigation.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'leap' } (function(leap)
3 - leap.set_default_keymaps()
4 -end)

neovim/lua/bugabinga/file-explorer.lua

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

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

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
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.
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 - 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 - }
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 - }
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
61 - dressing.setup {
62 - input = { enable = true },
63 - -- vim.ui.select is already handled by telescope extension
64 - select = { enable = false },
65 - }
66 -end)

neovim/lua/bugabinga/git-status.lua

Deleted
deleted file mode 100644
1 -local fmt = require 'bugabinga.std.fmt'
2 -local map = require 'bugabinga.std.keymap'
3 -local want = require 'bugabinga.std.want'
5 -want { 'gitsigns' } (function(gitsigns)
6 - map {
7 - description = 'toogle git status line highlight',
8 - category = map.CATEGORY.VERSION_CONTROL,
9 - mode = map.MODE.NORMAL,
10 - keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.L,
11 - command = fmt.cmd'gitsigns toggle_linehl',
12 - }
13 - map {
14 - description = 'toogle git status signs',
15 - category = map.CATEGORY.VERSION_CONTROL,
16 - mode = map.MODE.NORMAL,
17 - keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.S,
18 - command = fmt.cmd'gitsigns toggle_signs',
19 - }
20 - map {
21 - description = 'Toogle Git Blame Line',
22 - category = map.CATEGORY.VERSION_CONTROL,
23 - mode = map.MODE.NORMAL,
24 - keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.B,
25 - command = fmt.cmd'Gitsigns toggle_current_line_blame',
26 - }
27 - gitsigns.setup {
28 - signs = {
29 - add = { hl = 'GitSignsAdd', text = '│', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' },
30 - change = { hl = 'GitSignsChange', text = '│', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' },
31 - delete = { hl = 'GitSignsDelete', text = '_', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' },
32 - topdelete = { hl = 'GitSignsDelete', text = '‾', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' },
33 - changedelete = { hl = 'GitSignsChange', text = '~', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' },
34 - },
35 - signcolumn = true, -- Toggle with `:Gitsigns toggle_signs`
36 - numhl = false, -- Toggle with `:Gitsigns toggle_numhl`
37 - linehl = false, -- Toggle with `:Gitsigns toggle_linehl`
38 - word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff`
39 - diff_opts = {
40 - internal = true,
41 - },
42 - watch_gitdir = {
43 - interval = 1000,
44 - follow_files = true,
45 - },
46 - attach_to_untracked = true,
47 - current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
48 - current_line_blame_opts = {
49 - virt_text = true,
50 - virt_text_pos = 'right_align', -- 'eol' | 'overlay' | 'right_align'
51 - delay = 866,
52 - ignore_whitespace = true,
53 - },
54 - current_line_blame_formatter = '<author>, <author_time:%d/%m/%Y> - <summary>',
55 - sign_priority = 6,
56 - update_debounce = 100,
57 - status_formatter = nil, -- Use default
58 - max_file_length = 40000,
59 - preview_config = {
60 - -- Options passed to nvim_open_win
61 - border = 'rounded',
62 - style = 'minimal',
63 - relative = 'cursor',
64 - row = 0,
65 - col = 1,
66 - },
67 - yadm = {
68 - enable = false,
69 - },
70 - }
71 -end)

neovim/lua/bugabinga/health.lua

Modified
3 3 -- use the neovim healthcheck module to integrate into :checkhealth.
4 4 -- check the system for dependencies, that:
5 5 -- * i like to use with neovim.
6 6 -- * plugins need.
8 +local check_parameter = require'std.check_parameter'
8 10 local _ = {}
10 12 local function program_installed(name_of_executable)
11 - return (vim.fn.executable(name_of_executable) ~= 0)
13 + return (vim.fn.executable(name_of_executable) ~= 0)
14 16 local function check_program(name, name_of_executable)
15 - vim.health.report_start(name .. ' report')
16 - if program_installed(name_of_executable) then
17 - vim.health.report_ok(name_of_executable .. ' found on system')
18 - else
19 - vim.health.report_error(name .. ' is not installed on the system')
20 - end
17 + local display_name = name and (name .. '(' .. name_of_executable .. ')') or name_of_executable
18 + vim.health.start(display_name .. ' report')
19 + if program_installed(name_of_executable) then
20 + vim.health.ok(display_name .. ' found on system')
21 + else
22 + vim.health.error(display_name .. ' is not installed on the system')
23 + end
24 +end
26 +local programs_to_check = {}
28 +_.add_dependency = function(program)
29 + check_parameter(program, 'add_program', 'program', 'table')
30 + check_parameter(program.name_of_executable, 'add_program', 'program.name_of_executable', 'string')
32 + programs_to_check[program.name_of_executable] = program
34 + -- returns itself so that multiple programs can be chain-added
35 + return _.add_dependency
23 38 _.check = function()
24 - check_program('ripgrep', 'rg')
25 - check_program('find-fd', 'fd')
26 - check_program('Nushell', 'nu')
27 - check_program('vim-startuptime', 'vim-startuptime')
28 - check_program('Pandoc', 'pandoc')
39 + vim.iter(programs_to_check)
40 + :each(function(_, program)
41 + check_program(program.name, program.name_of_executable)
42 + end)
31 45 return _

neovim/lua/bugabinga/indent-lines.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'indent_blankline' }(function(indent_blankline)
3 - indent_blankline.setup {
4 - show_current_context = true,
5 - show_current_context_start = true,
6 - }
7 -end)

neovim/lua/bugabinga/last-known-position.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'nvim-lastplace' }(function(lastplace)
3 - lastplace.setup {
4 - lastplace_ignore_buftype = { 'quickfix', 'nofile', 'help' },
5 - lastplace_ignore_filetype = { 'gitcommit', 'gitrebase', 'svn', 'hgcommit' },
6 - lastplace_open_folds = true,
7 - }
8 -end)

neovim/lua/bugabinga/lazy.lua

Added
new file mode 100644
1 +local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
2 +if not vim.loop.fs_stat(lazypath) then
3 + vim.fn.system {
4 + 'git',
5 + 'clone',
6 + '--filter=blob:none',
7 + 'https://github.com/folke/lazy.nvim.git',
8 + '--branch=stable', -- latest stable release
9 + lazypath,
10 + }
11 +end
12 +vim.opt.rtp:prepend(lazypath)
14 +-- prevents lazy from setting up its highlights.
15 +-- those will be setup manually later.
16 +require('lazy.view.colors').did_setup = true
18 +local lazy = require 'lazy'
20 +lazy.setup('bugabinga.plugins', {
21 + defaults = {
22 + lazy = true,
23 + version = '*',
24 + },
25 + install = {
26 + missing = true,
27 + colorthemes = { 'lunaperche' },
28 + },
29 + checker = {
30 + enabled = true,
31 + },
32 + ui = {
33 + size = { width = 0.69 , heigth = 0.69 },
34 + border = 'shadow',
35 + },
36 + performance = {
37 + rtp = {
38 + disabled_plugins = {
39 + 'netrw',
40 + 'netrwPlugin',
41 + 'netrwSettings',
42 + 'netrwFileHandlers',
43 + 'gzip',
44 + 'zip',
45 + 'zipPlugin',
46 + 'tar',
47 + 'tarPlugin',
48 + 'getscript',
49 + 'getscriptPlugin',
50 + 'vimball',
51 + 'vimballPlugin',
52 + '2html_plugin',
53 + 'logipat',
54 + 'rrhelper',
55 + 'spellfile_plugin',
56 + 'matchit',
57 + 'matchparen',
58 + 'tohtml',
59 + 'tutor',
60 + },
61 + },
62 + },
63 +})
65 +local map = require 'std.keymap'
67 +local lazy_cmds = vim.iter {
68 + { 'Show', '' , lazy.show } ,
69 + { 'Install', 'i', lazy.install },
70 + { 'Update', 'u', lazy.update },
71 + { 'Sync', 's', lazy.sync },
72 + { 'Clean', 'x', lazy.clean },
73 + { 'Check', 'c', lazy.check },
74 + { 'Log', 'l', lazy.log },
75 + { 'Restore', 'r', lazy.restore },
76 + { 'Profile', 'p', lazy.profile },
77 + { 'Debug', 'd', lazy.debug },
80 +local base_key = '<leader>z'
82 +lazy_cmds:each(function(cmd)
83 + map.normal {
84 + name = cmd[1] .. ' plugins via Lazy.nvim',
85 + category = 'plugins',
86 + keys = base_key .. cmd[2],
87 + command = cmd[3],
88 + }
89 +end)

neovim/lua/bugabinga/lsp.lua

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

neovim/lua/bugabinga/markdown.lua

Deleted
deleted file mode 100644
1 --- local want = require 'bugabinga.std.want'

neovim/lua/bugabinga/module-cache.lua

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

neovim/lua/bugabinga/move-code.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -local map = require 'bugabinga.std.keymap'
4 -want { 'gomove' }(function(move)
5 - move.setup {
6 - -- whether or not to map default key bindings, (true/false)
7 - map_defaults = false,
8 - -- whether or not to reindent lines moved vertically (true/false)
9 - reindent = true,
10 - -- whether or not to undojoin same direction moves (true/false)
11 - undojoin = true,
12 - -- whether to not to move past end column when moving blocks horizontally, (true/false)
13 - move_past_end_col = false,
14 - }
16 - -- default mappings in gomove set no options, but use old keymap api.
17 - -- recreating old defaults here:
18 - local options = { remap = true }
20 - -- i have tried using the lua functions directly for the commands below.
21 - -- the behaviour was slightly buggy in respects to block selections though.
22 - -- unsure why that is.
24 - -- NORMAL MOVE
25 - map {
26 - description = 'Move character left',
27 - category = map.CATEGORY.EDITING,
28 - command = '<Plug>GoNSMLeft',
29 - mode = map.MODE.NORMAL,
30 - keys = map.KEY.ALT_H,
31 - options = options,
32 - }
33 - map {
34 - description = 'Move line down',
35 - category = map.CATEGORY.EDITING,
36 - command = '<Plug>GoNSMDown',
37 - mode = map.MODE.NORMAL,
38 - keys = map.KEY.ALT_J,
39 - options = options,
40 - }
41 - map {
42 - description = 'Move line up',
43 - category = map.CATEGORY.EDITING,
44 - command = '<Plug>GoNSMUp',
45 - mode = map.MODE.NORMAL,
46 - keys = map.KEY.ALT_K,
47 - options = options,
48 - }
49 - map {
50 - description = 'Move character right',
51 - category = map.CATEGORY.EDITING,
52 - command = '<Plug>GoNSMRight',
53 - mode = map.MODE.NORMAL,
54 - keys = map.KEY.ALT_L,
55 - options = options,
56 - }
58 - -- VISUAL MOVE
59 - map {
60 - description = 'Move block left',
61 - category = map.CATEGORY.EDITING,
62 - command = '<Plug>GoVSMLeft',
63 - mode = map.MODE.VISUAL,
64 - keys = map.KEY.ALT_H,
65 - options = options,
66 - }
67 - map {
68 - description = 'Move block down',
69 - category = map.CATEGORY.EDITING,
70 - command = '<Plug>GoVSMDown',
71 - mode = map.MODE.VISUAL,
72 - keys = map.KEY.ALT_J,
73 - options = options,
74 - }
75 - map {
76 - description = 'Move block up',
77 - command = '<Plug>GoVSMUp',
78 - category = map.CATEGORY.EDITING,
79 - mode = map.MODE.VISUAL,
80 - keys = map.KEY.ALT_K,
81 - options = options,
82 - }
83 - map {
84 - description = 'Move block right',
85 - category = map.CATEGORY.EDITING,
86 - command = '<Plug>GoVSMRight',
87 - mode = map.MODE.VISUAL,
88 - keys = map.KEY.ALT_L,
89 - options = options,
90 - }
92 - -- NORMAL DUPLICATE
93 - map {
94 - description = 'Duplicate character left',
95 - category = map.CATEGORY.EDITING,
96 - command = '<Plug>GoNSDLeft',
97 - mode = map.MODE.NORMAL,
98 - keys = map.KEY.ALT_SHIFT_H,
99 - options = options,
100 - }
101 - map {
102 - description = 'Duplicate line down',
103 - category = map.CATEGORY.EDITING,
104 - command = '<Plug>GoNSDDown',
105 - mode = map.MODE.NORMAL,
106 - keys = map.KEY.ALT_SHIFT_J,
107 - options = options,
108 - }
109 - map {
110 - description = 'Duplicate line up',
111 - category = map.CATEGORY.EDITING,
112 - command = '<Plug>GoNSDUp',
113 - mode = map.MODE.NORMAL,
114 - keys = map.KEY.ALT_SHIFT_K,
115 - options = options,
116 - }
117 - map {
118 - description = 'Duplicate character right',
119 - category = map.CATEGORY.EDITING,
120 - command = '<Plug>GoNSDRight',
121 - mode = map.MODE.NORMAL,
122 - keys = map.KEY.ALT_SHIFT_L,
123 - options = options,
124 - }
126 - -- VISUAL DUPLICATE
127 - map {
128 - description = 'Duplicate block left',
129 - category = map.CATEGORY.EDITING,
130 - command = '<Plug>GoVSDLeft',
131 - mode = map.MODE.VISUAL,
132 - keys = map.KEY.ALT_SHIFT_H,
133 - options = options,
134 - }
135 - map {
136 - description = 'Duplicate block down',
137 - category = map.CATEGORY.EDITING,
138 - command = '<Plug>GoVSDDown',
139 - mode = map.MODE.VISUAL,
140 - keys = map.KEY.ALT_SHIFT_J,
141 - options = options,
142 - }
143 - map {
144 - description = 'Duplicate block up',
145 - category = map.CATEGORY.EDITING,
146 - command = '<Plug>GoVSDUp',
147 - mode = map.MODE.VISUAL,
148 - keys = map.KEY.ALT_SHIFT_K,
149 - options = options,
150 - }
151 - map {
152 - description = 'Duplicate block right',
153 - category = map.CATEGORY.EDITING,
154 - command = '<Plug>GoVSDRight',
155 - mode = map.MODE.VISUAL,
156 - keys = map.KEY.ALT_SHIFT_L,
157 - options = options,
158 - }
159 -end)

neovim/lua/bugabinga/notify.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'notify' }(function(notify)
3 - vim.notify = notify
4 -end)

neovim/lua/bugabinga/nugu/init.lua

Added
new file mode 100644
1 +local palette = require'bugabinga.nugu.palette'
2 +local lush = require 'lush'
3 +local hsl = lush.hsluv
5 +local flux = function(color, number)
6 + if vim.opt.background:get() == 'dark' then
7 + return color.li(-number)
8 + else
9 + return color.li(number)
10 + end
11 +end
13 +local debug = hsl ( palette.debug )
14 +local error = hsl ( palette.error )
15 +local info = hsl ( palette.info )
16 +local warning = hsl ( palette.warning )
18 +local content_normal = hsl ( palette.content_normal )
19 +local content_backdrop = hsl ( palette.content_backdrop )
20 +local content_accent = hsl ( palette.content_accent )
21 +local content_minor = hsl ( palette.content_minor )
22 +local content_focus = hsl ( palette.content_focus )
23 +local content_unfocus = hsl ( palette.content_unfocus )
24 +local content_important_global = hsl ( palette.content_important_global )
25 +local content_important_local = hsl ( palette.content_important_local )
27 +local ui_normal = hsl ( palette.ui_normal )
28 +local ui_backdrop = hsl ( palette.ui_backdrop )
29 +local ui_accent = hsl ( palette.ui_accent )
30 +local ui_minor = hsl ( palette.ui_minor )
31 +local ui_focus = hsl ( palette.ui_focus )
32 +local ui_unfocus = hsl ( palette.ui_unfocus )
33 +local ui_important_global = hsl ( palette.ui_important_global )
34 +local ui_important_local = hsl ( palette.ui_important_local )
36 +local nugu = lush(function(injects)
37 + local sym = injects.sym
38 + return {
39 + Debug { fg = debug.readable(), bg = debug, gui = 'bold' }, -- debugging statements
41 + Normal { fg = content_normal, bg = content_backdrop },
42 + NotifyBackground { bg = ui_backdrop },
43 + Comment { fg = content_important_global, gui = 'bold italic' },
44 + LineNr { fg = ui_minor, bg = ui_backdrop },
45 + CursorLineNr { fg = ui_focus, bg = ui_backdrop },
46 + Search { fg = content_important_global.readable(), bg = content_important_global },
47 + IncSearch { fg = content_important_local.readable(), bg = content_important_local },
49 + NormalFloat { fg = ui_normal, bg = ui_backdrop }, -- Normal text in floating windows.
50 + FloatBorder { fg = ui_accent, bg = NormalFloat.bg },
51 + ColorColumn { fg = ui_important_global, bg = content_backdrop }, -- used for the columns set with 'colorcolumn'
52 + Conceal { fg = content_normal, bg = ui_unfocus, gui = 'italic' }, -- placeholder characters substituted for concealed text (see 'conceallevel')
53 + Cursor { bg = ui_accent }, -- character under the cursor
54 + lCursor { bg = ui_accent }, -- the character under the cursor when |language-mapping| is used (see 'guicursor')
55 + CursorIM { bg = ui_accent }, -- like Cursor, but used when in IME mode |CursorIM|
56 + Directory { fg = Normal.fg }, -- directory names (and other special names in listings)
57 + DiffAdd { fg = content_focus }, -- diff mode: Added line |diff.txt|
58 + DiffDelete { fg = content_focus, gui = "strikethrough" }, -- diff mode: Deleted line |diff.txt|
59 + DiffChange { fg = content_important_global }, -- diff mode: Changed line |diff.txt|
60 + DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt|
61 + EndOfBuffer { LineNr }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|.
62 + TermCursor { lCursor }, -- cursor in a focused terminal
63 + TermCursorNC { Cursor }, -- cursor in an unfocused terminal
64 + ErrorMsg { fg = error.readable(), bg = error }, -- error messages on the command line
65 + VertSplit { fg = ui_important_global, bg = content_backdrop }, -- the column separating vertically split windows
66 + Folded { Conceal }, -- line used for closed folds
67 + FoldColumn { Conceal }, -- 'foldcolumn'
68 + SignColumn { bg = ui_backdrop }, -- column where |signs| are displayed
69 + ModeMsg { gui = 'bold' }, -- 'showmode' message (e.g., "-- INSERT -- ")
70 + MsgArea { Normal }, -- Area for messages and cmdline
71 + MsgSeparator { fg = ui_accent }, -- Separator for scrolled messages, `msgsep` flag of 'display'
72 + MoreMsg { Normal }, -- |more-prompt|
73 + NonText { fg = ui_unfocus }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|.
74 + NormalNC {}, -- normal text in non-current windows
75 + Pmenu { NormalFloat }, -- Popup menu: normal item.
76 + PmenuSel { fg = ui_focus.readable(), sp = ui_focus.readable(), bg = ui_focus, gui = 'underline' }, -- Popup menu: selected item.
77 + PmenuSbar { bg = ui_unfocus }, -- Popup menu: scrollbar.
78 + PmenuThumb { bg = ui_minor }, -- Popup menu: Thumb of the scrollbar.
79 + Question { fg = ui_important_global, gui = 'bold' }, -- |hit-enter| prompt and yes/no questions
80 + QuickFixLine { PmenuSel }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there.
81 + SpecialKey { fg = error, bg = content_unfocus, gui = 'bold' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace|
82 + SpellBad { fg = error, gui = 'undercurl' }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise.
83 + SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise.
84 + SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise.
85 + SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise.
86 + StatusLine { fg = ui_normal, bg = ui_backdrop }, -- status line of current window
87 + StatusLineNC { fg = ui_normal, bg = ui_unfocus }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window.
88 + Winbar { StatusLine },
89 + WinbarNC { StatusLineNC },
90 + IndentBlanklineContextChar{ fg = content_accent, gui = "nocombine" },
91 + IndentBlanklineContextStart { sp = IndentBlanklineContextChar.fg, gui = "underline" },
92 + Title { fg = content_important_global, sp = content_important_global, gui = 'bold underline' }, -- titles for output from ":set all", ":autocmd" etc.
93 + TabLine { StatusLine }, -- tab pages line, not active tab page label
94 + TabLineFill { bg = TabLine.bg }, -- tab pages line, where there are no labels
95 + TabLineSel { fg = ui_accent.readable(), bg = ui_accent, gui = 'underline bold' }, -- tab pages line, active tab page label
96 + Visual { fg = content_focus.readable(), bg = content_focus }, -- Visual mode selection
97 + VisualNOS { fg = Visual.fg, bg = flux(Visual.bg, -42) }, -- Visual mode selection when vim is "Not Owning the Selection".
98 + WarningMsg { fg = warning, gui = 'bold' }, -- warning messages
99 + WhiteSpace { fg = ui_unfocus }, -- "nbsp", "space", "tab" and "trail" in 'listchars'
100 + WildMenu { fg = ui_accent, gui = 'bold' }, -- current match in 'wildmenu' completion
102 + String { fg = content_important_local, gui = 'italic' },
103 + Constant { String }, -- (preferred) any constant
104 + Character { String }, -- a character constant: 'c', '\n'
105 + Number { String }, -- a number constant: 234, 0xff
106 + Boolean { String }, -- a boolean constant: TRUE, false
107 + Float { String }, -- a floating point constant: 2.3e10
109 + Identifier { Normal }, -- (preferred) any variable name
110 + Function { Normal }, -- function name (also: methods for classes)
112 + Statement { fg = content_minor }, -- (preferred) any statement
113 + Conditional { Statement }, -- if, then, else, endif, switch, etc.
114 + Repeat { Statement }, -- for, do, while, etc.
115 + Label { Statement }, -- case, default, etc.
116 + Operator { Statement }, -- "sizeof", "+", "*", etc.
117 + Keyword { Statement }, -- any other keyword
118 + Exception { Statement }, -- try, catch, throw
120 + PreProc { fg = content_important_global, bg = content_unfocus, gui = 'bold' }, -- (preferred) generic Preprocessor
121 + Include { PreProc }, -- preprocessor #include
122 + Define { PreProc }, -- preprocessor #define
123 + Macro { PreProc }, -- same as Define
124 + PreCondit { PreProc }, -- preprocessor #if, #else, #endif, etc.
126 + Type { Statement }, -- (preferred) int, long, char, etc.
127 + StorageClass { Statement }, -- static, register, volatile, etc.
128 + Structure { Statement }, -- struct, union, enum, etc.
129 + Typedef { Statement }, -- A typedef
131 + Special { fg = content_normal, gui = 'italic bold' }, -- (preferred) any special symbol
132 + SpecialChar { Special }, -- special character in a constant
133 + Tag { Special }, -- you can use CTRL-] on this
134 + Delimiter { fg = content_minor }, -- character that needs attention
135 + SpecialComment { Special }, -- special things inside a comment
137 + Underlined { sp = content_normal, gui = 'underline' }, -- (preferred) text that stands out, HTML links
138 + Bold { gui = 'bold' },
139 + Italic { gui = 'italic' },
141 + -- ("Ignore", below, may be invisible...)
142 + Ignore { fg = Normal.bg, bg = Normal.bg }, -- (preferred) left blank, hidden |hl-Ignore|
144 + Error { fg = error }, -- (preferred) any erroneous construct
146 + Todo { fg = content_important_global, sp = content_important_global, gui = 'bold underdouble' },
148 + DiagnosticUnnecessary { fg = ui_focus },
149 + DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, gui = 'strikethrough' },
151 + DiagnosticError { fg = error },
152 + DiagnosticWarn { fg = warning },
153 + DiagnosticInfo { fg = info },
154 + DiagnosticHint { fg = ui_important_local },
155 + DiagnosticOk { fg = ui_minor },
157 + DiagnosticVirtualTextError { DiagnosticError },
158 + DiagnosticVirtualTextWarn { DiagnosticWarn },
159 + DiagnosticVirtualTextInfo { DiagnosticInfo },
160 + DiagnosticVirtualTextHint { DiagnosticHint },
161 + DiagnosticVirtualOkHint { DiagnosticOk },
163 + DiagnosticUnderlineError { fg = DiagnosticError.fg, sp = DiagnosticError.fg, gui = 'underdouble' },
164 + DiagnosticUnderlineWarn { fg = DiagnosticWarn.fg, sp = DiagnosticWarn.fg, gui = 'underline' },
165 + DiagnosticUnderlineInfo { fg = DiagnosticInfo.fg, sp = DiagnosticInfo.fg, gui = 'underdashed' },
166 + DiagnosticUnderlineHint { fg = DiagnosticHint.fg, sp = DiagnosticHint.fg, gui = 'italic underdotted' },
167 + DiagnosticUnderlineOk { fg = DiagnosticOk.fg, gui = 'italic' },
169 + DiagnosticSignError { DiagnosticError },
170 + DiagnosticSignWarn { DiagnosticWarn },
171 + DiagnosticSignInfo { DiagnosticInfo },
172 + DiagnosticSignHint { DiagnosticHint },
173 + DiagnosticSignOk { DiagnosticOk },
175 + LspReferenceText { Search },
176 + LspReferenceRead { Search },
177 + LspReferenceWrite { IncSearch },
179 + -- hlargs.nvim
180 + Hlargs { fg = ui_important_local, gui = 'bold underdotted' },
182 + -- Tree-Sitter syntax groups.
183 + --
184 + -- See :h treesitter-highlight-groups, some groups may not be listed,
185 + -- submit a PR fix to lush-template!
186 + --
187 + -- Tree-Sitter groups are defined with an "@" symbol, which must be
188 + -- specially handled to be valid lua code, we do this via the special
189 + -- sym function. The following are all valid ways to call the sym function,
190 + -- for more details see https://www.lua.org/pil/5.html
191 + --
192 + -- sym("@text.literal")
193 + -- sym('@text.literal')
194 + -- sym"@text.literal"
195 + -- sym'@text.literal'
196 + --
197 + -- For more information see https://github.com/rktjmp/lush.nvim/issues/109
199 + -- sym"@text.literal" { }, -- Comment
200 + -- sym"@text.reference" { }, -- Identifier
201 + -- sym"@text.title" { }, -- Title
202 + -- sym"@text.uri" { }, -- Underlined
203 + -- sym"@text.underline" { }, -- Underlined
204 + -- sym"@text.todo" { }, -- Todo
205 + -- sym"@comment" { }, -- Comment
206 + -- sym"@punctuation" { }, -- Delimiter
207 + -- sym"@constant" { }, -- Constant
208 + -- sym"@constant.builtin" { }, -- Special
209 + -- sym"@constant.macro" { }, -- Define
210 + -- sym"@define" { }, -- Define
211 + -- sym"@macro" { }, -- Macro
212 + -- sym"@string" { }, -- String
213 + -- sym"@string.escape" { }, -- SpecialChar
214 + -- sym"@string.special" { }, -- SpecialChar
215 + -- sym"@character" { }, -- Character
216 + -- sym"@character.special" { }, -- SpecialChar
217 + -- sym"@number" { }, -- Number
218 + -- sym"@boolean" { }, -- Boolean
219 + -- sym"@float" { }, -- Float
220 + -- sym"@function" { }, -- Function
221 + -- sym"@function.builtin" { }, -- Special
222 + -- sym"@function.macro" { }, -- Macro
223 + -- sym"@parameter" { }, -- Identifier
224 + -- sym"@method" { }, -- Function
225 + -- sym"@field" { }, -- Identifier
226 + -- sym"@property" { }, -- Identifier
227 + -- sym"@constructor" { }, -- Special
228 + -- sym"@conditional" { }, -- Conditional
229 + -- sym"@repeat" { }, -- Repeat
230 + -- sym"@label" { }, -- Label
231 + -- sym"@operator" { }, -- Operator
232 + -- sym"@keyword" { }, -- Keyword
233 + -- sym"@exception" { }, -- Exception
234 + -- sym"@variable" { }, -- Identifier
235 + -- sym"@type" { }, -- Type
236 + -- sym"@type.definition" { }, -- Typedef
237 + -- sym"@storageclass" { }, -- StorageClass
238 + -- sym"@structure" { }, -- Structure
239 + -- sym"@namespace" { }, -- Identifier
240 + -- sym"@include" { }, -- Include
241 + -- sym"@preproc" { }, -- PreProc
242 + -- sym"@debug" { }, -- Debug
243 + -- sym"@tag" { }, -- Tag
245 + -- lazy.nvim
246 + LazyButton { NormalFloat, sp = NormalFloat.fg, gui = 'bold' },
247 + LazyButtonActive { fg = ui_important_local.readable(), sp = NormalFloat.fg, bg = ui_important_local, gui = LazyButton.gui },
248 + LazyComment { Keyword },
249 + LazyCommit { LazyComment },
250 + LazyCommitIssue { LazyComment },
251 + LazyCommitScope { LazyComment, gui = 'italic' },
252 + LazyCommitType { LazyCommitScope },
253 + LazyDimmed { fg = NormalFloat.fg },
254 + LazyDir { N.fgormalFloat },
255 + LazyH1 { Bold },
256 + LazyH2 { LazyH1 },
257 + LazyLocal {},
258 + LazyNoCond { WarningMsg },
259 + LazyNormal { NormalFloat },
260 + LazyProgressDone { fg = Search.bg, bg = Cursor.bg, gui = 'bold' },
261 + LazyProgressTodo { fg = LazyProgressDone.bg, bg = LazyProgressDone.fg, gui = LazyProgressDone.gui },
262 + LazyProp { LazyComment },
263 + LazyReasonCmd { N.fgormalFloat },
264 + LazyReasonEvent { N.fgormalFloat },
265 + LazyReasonFt { N.fgormalFloat },
266 + LazyReasonImport { N.fgormalFloat },
267 + LazyReasonKeys { N.fgormalFloat },
268 + LazyReasonPlugin { N.fgormalFloat },
269 + LazyReasonRuntime { N.fgormalFloat },
270 + LazyReasonSource { N.fgormalFloat },
271 + LazyReasonStart { N.fgormalFloat },
272 + LazySpecial { fg = ColorColumn.fg },
273 + LazyTaskError { ErrorMsg },
274 + LazyTaskOutput { Debug },
275 + LazyUrl { sp = NormalFloat.fg, gui = 'italic underline' },
276 + LazyValue { gui = 'italic' },
278 + -- Noice
279 + NoiceCmdline { fg = ui_focus, bg = ui_backdrop },
281 + NoiceCmdlineIcon { fg = ui_accent, bg = NoiceCmdline.bg, gui = 'bold' },
282 + NoiceCmdlineIconCalculator { NoiceCmdlineIcon },
283 + NoiceCmdlineIconCmdline { fg = ui_accent, bg = NoiceCmdlineIcon.bg, gui = NoiceCmdlineIcon.gui },
284 + NoiceCmdlineIconFilter { NoiceCmdlineIcon },
285 + NoiceCmdlineIconHelp { NoiceCmdlineIcon },
286 + NoiceCmdlineIconIncRename { NoiceCmdlineIcon },
287 + NoiceCmdlineIconInput { NoiceCmdlineIcon },
288 + NoiceCmdlineIconLua { NoiceCmdlineIcon },
289 + NoiceCmdlineIconSearch { NoiceCmdlineIcon },
291 + NoiceCmdlinePopup { NormalFloat },
292 + NoiceCmdlinePopupBorder { NoiceCmdlinePopup },
293 + NoiceCmdlinePopupBorderCalculator { NoiceCmdlinePopup },
294 + NoiceCmdlinePopupBorderCmdline { NoiceCmdlinePopup },
295 + NoiceCmdlinePopupBorderFilter { NoiceCmdlinePopup },
296 + NoiceCmdlinePopupBorderHelp { NoiceCmdlinePopup },
297 + NoiceCmdlinePopupBorderIncRename { NoiceCmdlinePopup },
298 + NoiceCmdlinePopupBorderInput { NoiceCmdlinePopup },
299 + NoiceCmdlinePopupBorderLua { NoiceCmdlinePopup },
300 + NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopup },
301 + NoiceCmdlinePopupTitle { NoiceCmdlinePopup },
303 + NoiceCmdlinePrompt { fg = ui_important_global, bg = ui_backdrop, gui = 'bold' },
305 + NoiceCompletionItemKindDefault { fg = ui_normal },
306 + NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault },
307 + NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault },
308 + NoiceCompletionItemKindConstant { NoiceCompletionItemKindDefault },
309 + NoiceCompletionItemKindConstructor { NoiceCompletionItemKindDefault },
310 + NoiceCompletionItemKindEnum { NoiceCompletionItemKindDefault },
311 + NoiceCompletionItemKindEnumMember { NoiceCompletionItemKindDefault },
312 + NoiceCompletionItemKindField { NoiceCompletionItemKindDefault },
313 + NoiceCompletionItemKindFile { NoiceCompletionItemKindDefault },
314 + NoiceCompletionItemKindFolder { NoiceCompletionItemKindDefault },
315 + NoiceCompletionItemKindFunction { NoiceCompletionItemKindDefault },
316 + NoiceCompletionItemKindInterface { NoiceCompletionItemKindDefault },
317 + NoiceCompletionItemKindKeyword { NoiceCompletionItemKindDefault },
318 + NoiceCompletionItemKindMethod { NoiceCompletionItemKindDefault },
319 + NoiceCompletionItemKindModule { NoiceCompletionItemKindDefault },
320 + NoiceCompletionItemKindProperty { NoiceCompletionItemKindDefault },
321 + NoiceCompletionItemKindSnippet { NoiceCompletionItemKindDefault },
322 + NoiceCompletionItemKindStruct { NoiceCompletionItemKindDefault },
323 + NoiceCompletionItemKindText { NoiceCompletionItemKindDefault },
324 + NoiceCompletionItemKindUnit { NoiceCompletionItemKindDefault },
325 + NoiceCompletionItemKindValue { NoiceCompletionItemKindDefault },
326 + NoiceCompletionItemKindVariable { NoiceCompletionItemKindDefault },
327 + NoiceCompletionItemMenu { NoiceCompletionItemKindDefault },
328 + NoiceCompletionItemWord { NoiceCompletionItemKindDefault },
330 + NoiceConfirm { NormalFloat },
331 + NoiceConfirmBorder { fg = ui_accent, bg = NormalFloat.bg },
332 + NoiceFormatConfirm { LazyButton },
333 + NoiceFormatConfirmDefault { LazyButtonActive },
335 + NoiceCursor { Cursor },
337 + NoiceFormatDate { NonText },
338 + NoiceFormatEvent { NonText },
339 + NoiceFormatKind { NonText },
340 + NoiceFormatLevelDebug { fg = Debug.bg },
341 + NoiceFormatLevelError { DiagnosticError },
342 + NoiceFormatLevelInfo { DiagnosticInfo },
343 + NoiceFormatLevelOff { fg = content_minor },
344 + NoiceFormatLevelTrace { DiagnosticHint },
345 + NoiceFormatLevelWarn { DiagnosticWarn },
346 + NoiceFormatProgressDone { LazyProgressDone },
347 + NoiceFormatProgressTodo { LazyProgressTodo },
348 + NoiceFormatTitle { Title },
350 + NoiceLspProgressClient { Debug },
351 + NoiceLspProgressSpinner { Debug },
352 + NoiceLspProgressTitle { Debug },
354 + NoiceMini { DiagnosticInfo },
356 + NoicePopup { NormalFloat },
357 + NoicePopupBorder { fg = ui_accent, bg = NormalFloat.bg },
359 + NoicePopupmenu { Pmenu },
360 + NoicePopupmenuBorder { fg = ui_accent , bg = NormalFloat.bg },
361 + NoicePopupmenuMatch { Bold },
362 + NoicePopupmenuSelected { PmenuSel },
364 + NoiceScrollbar { PmenuSbar },
365 + NoiceScrollbarThumb { PmenuThumb },
367 + NoiceSplit { NormalFloat },
368 + NoiceSplitBorder { NoiceConfirmBorder , bg = NormalFloat.bg},
370 + NoiceVirtualText { fg = ui_important_local, bg = ui_backdrop, gui = 'bold' },
372 + -- Notify
373 + NotifyERRORBorder { DiagnosticError , bg = NormalFloat.bg },
374 + NotifyWARNBorder { DiagnosticWarn, bg = NormalFloat.bg },
375 + NotifyINFOBorder { DiagnosticInfo, bg = NormalFloat.bg },
376 + NotifyDEBUGBorder { fg = Debug.bg, bg = NormalFloat.bg },
377 + NotifyTRACEBorder { DiagnosticHint, bg = NormalFloat.bg },
379 + NotifyERRORIcon { NotifyERRORBorder },
380 + NotifyWARNIcon { NotifyWARNBorder },
381 + NotifyINFOIcon { NotifyINFOBorder },
382 + NotifyDEBUGIcon { NotifyDEBUGBorder },
383 + NotifyTRACEIcon { NotifyTRACEBorder },
385 + NotifyERRORTitle { NotifyERRORBorder },
386 + NotifyWARNTitle { NotifyWARNBorder },
387 + NotifyINFOTitle { NotifyINFOBorder },
388 + NotifyDEBUGTitle { NotifyDEBUGBorder },
389 + NotifyTRACETitle { NotifyTRACEBorder },
391 + NotifyERRORBody { NormalFloat },
392 + NotifyWARNBody { NormalFloat },
393 + NotifyINFOBody { NormalFloat },
394 + NotifyDEBUGBody { NormalFloat },
395 + NotifyTRACEBody { NormalFloat },
398 + TelescopeSelectionCaret { PmenuSel },
399 + TelescopeSelection { PmenuSel },
400 + TelescopeMultiSelection { fg = PmenuSel.fg, bg = ui_important_local },
402 +end)
404 +return nugu

neovim/lua/bugabinga/nugu/palette.lua

Added
new file mode 100644
1 +local choose = function ( variants )
2 + if vim.opt.background:get() == 'dark' then
3 + return variants.dark
4 + else
5 + return variants.light
6 + end
7 +end
9 +return {
10 + debug = choose { light = '#3dd45d', dark = '#3dd45d' },
11 + error = choose { light = '#740523', dark = '#f27a9a' },
12 + info = choose { light = '#4187a7', dark = '#e7f0f3' },
13 + warning = choose { light = '#a7802d', dark = '#f1e8d6' },
15 + content_normal = choose { light = '#494949', dark = '#cfcfcf' },
16 + content_backdrop = choose { light = '#e3e3e3', dark = '#131313' },
17 + content_accent = choose { light = '#800080', dark = '#800080' },
18 + content_minor = choose { light = '#878787', dark = '#727272' },
19 + content_focus = choose { light = '#646464', dark = '#a5bdb6' },
20 + content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543' },
21 + content_important_global = choose { light = '#48256e', dark = '#8e58cc' },
22 + content_important_local = choose { light = '#643398', dark = '#7a3bc3' },
24 + ui_normal = choose { light = '#929292', dark = '#e2e2e2' },
25 + ui_backdrop = choose { light = '#f9f9f9', dark = '#000000' },
26 + ui_accent = choose { light = '#d43dd4', dark = '#7a067a' },
27 + ui_minor = choose { light = '#d0d0d0', dark = '#424242' },
28 + ui_focus = choose { light = '#646464', dark = '#788984' },
29 + ui_unfocus = choose { light = '#c9c9c9', dark = '#121212' },
30 + ui_important_global = choose { light = '#9170b5', dark = '#5f368d' },
31 + ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72' },

neovim/lua/bugabinga/options/autocommands.lua

Modified
1 -local auto = require 'bugabinga.std.auto'
1 +local auto = require 'std.auto'
3 3 auto 'highlight_yanked_text' {
4 - description = 'briefly highlight yanked text',
5 - events = 'TextYankPost',
6 - pattern = '*',
7 - command = function()
8 - vim.highlight.on_yank { timeout = 500 }
9 - end,
4 + description = 'briefly highlight yanked text',
5 + events = 'TextYankPost',
6 + pattern = '*',
7 + command = function()
8 + vim.highlight.on_yank { timeout = 500 }
9 + end,
12 12 auto 'disable_colorcolumn_in_special_buffers' {
13 - description = 'Hide colorcolumn in buffers, that do not show source code.',
14 - events = { 'FileType' },
15 - pattern = 'Trouble,qf,help,toggleterm',
16 - command = function()
17 - vim.opt_local.colorcolumn = {}
18 - end,
13 + description = 'Hide colorcolumn in buffers, that do not show source code.',
14 + events = { 'FileType' },
15 + pattern = 'lazy,noice,Trouble,qf,help,toggleterm',
16 + command = function()
17 + vim.opt_local.colorcolumn = {}
18 + end,

neovim/lua/bugabinga/options/behaviour.lua

Modified
23 23 vim.opt.smarttab = true
25 25 -- keep distance to borders while scrolling
26 -vim.opt.scrolloff = 8
27 -vim.opt.sidescrolloff = 8
26 +vim.opt.scrolloff = 0
27 +vim.opt.sidescrolloff = 0
29 29 -- try to guess indentation based on context
30 30 vim.opt.smartindent = true
35 35 -- open splits to the right and below
36 36 vim.opt.splitbelow = true
37 37 vim.opt.splitright = true
38 +vim.opt.splitkeep = 'screen'
39 40 -- enable mouse
40 41 vim.opt.mouse = 'a'
47 48 vim.opt.shellquote = ''
48 49 vim.opt.shellxquote = ''
51 +require'bugabinga.health'.add_dependency
53 + name = 'Nushell',
54 + name_of_executable = 'nu'
50 57 -- highlight all search matches
51 58 vim.opt.hlsearch = true
52 59 -- enable smart case in searches

neovim/lua/bugabinga/options/init.lua

Modified
13 13 vim.g.loaded_ruby_provider = 0
14 14 vim.g.loaded_node_provider = 0
15 15 vim.g.loaded_perl_provider = 0
17 --- Disable some in built plugins completely
18 -local disabled_built_ins = {
19 - 'netrw',
20 - 'netrwPlugin',
21 - 'netrwSettings',
22 - 'netrwFileHandlers',
23 - 'gzip',
24 - 'zip',
25 - 'zipPlugin',
26 - 'tar',
27 - 'tarPlugin',
28 - 'getscript',
29 - 'getscriptPlugin',
30 - 'vimball',
31 - 'vimballPlugin',
32 - '2html_plugin',
33 - 'logipat',
34 - 'rrhelper',
35 - 'spellfile_plugin',
36 - 'matchit',
37 - 'matchparen',
38 -}
39 -for _, plugin in pairs(disabled_built_ins) do
40 - vim.g['loaded_' .. plugin] = 1
41 -end

neovim/lua/bugabinga/options/keymaps.lua

Modified
1 -local map = require 'bugabinga.std.keymap'
1 +local map = require 'std.keymap'
2 +local want = require 'std.want'
2 4 -- set <SPACE> as leader key
3 5 map {
4 - mode = map.MODE.ALL,
5 - keys = map.KEY.SPACE,
6 - command = map.COMMAND.NOP,
7 - visible = false,
6 + keys = '<space>',
7 + command = '<Nop>',
9 10 vim.g.mapleader = ' '
10 11 vim.g.maplocalleader = ' '
12 13 -- disable default ENTER binding
13 14 map {
14 - mode = map.MODE.ALL,
15 - keys = map.KEY.ENTER,
16 - command = map.COMMAND.NOP,
17 - visible = false,
15 + keys = '<enter>',
16 + command = '<NOP>',
19 +-- insert newline under or above in normal mode
20 +map.normal {
21 + name = 'Insert newline under cursor',
22 + category = 'editing',
23 + keys = '<C-enter>',
24 + command = function()
25 + local current_buffer = 0
26 + local current_line = vim.api.nvim_win_get_cursor(current_buffer)[1]
27 + local strict_indexing = false
28 + local newline = { '' }
29 + vim.api.nvim_buf_set_lines(current_buffer, current_line, current_line, strict_indexing, newline)
30 + end,
33 +map.normal {
34 + name = 'Insert newline above cursor',
35 + category = 'editing',
36 + keys = '<C-S-enter>',
37 + command = function()
38 + local current_buffer = 0
39 + local current_line = vim.api.nvim_win_get_cursor(current_buffer)[1] - 1
40 + local strict_indexing = false
41 + local newline = { '' }
42 + vim.api.nvim_buf_set_lines(current_buffer, current_line, current_line, strict_indexing, newline)
43 + end,
20 46 -- disable command history keymap, because i fatfinger it too often
21 --- FIXME: these seem to disable the binding only partially.
22 --- when pressing q: "fast", it is disabled.
23 --- when pausing between q and :, the binding still opens command history.
24 --- this may be related to the timeoutlen setting?
25 47 map {
26 - mode = map.MODE.ALL,
27 48 keys = 'q:',
28 - command = map.COMMAND.NOP,
29 - visible = false,
49 + command = '<NOP>',
52 +map {
53 + keys = 'Q:',
54 + command = '<NOP>',
31 57 map {
32 - mode = map.MODE.ALL,
33 58 keys = 'q/',
34 - command = map.COMMAND.NOP,
35 - visible = false,
59 + command = '<NOP>',
37 62 map {
38 - mode = map.MODE.ALL,
39 63 keys = 'Q',
40 - command = map.COMMAND.NOP,
41 - visible = false,
64 + command = '<NOP>',
43 67 -- disable them evil arrows
44 68 map {
45 - mode = map.MODE.ALL,
46 - keys = map.KEY.UP,
47 - command = map.COMMAND.NOP,
48 - visible = false,
69 + keys = '<up>',
70 + command = '<NOP>',
50 73 map {
51 - mode = map.MODE.ALL,
52 - keys = map.KEY.DOWN,
53 - command = map.COMMAND.NOP,
54 - visible = false,
74 + keys = '<down>',
75 + command = '<NOP>',
56 78 map {
57 - mode = map.MODE.ALL,
58 - keys = map.KEY.LEFT,
59 - command = map.COMMAND.NOP,
60 - visible = false,
79 + keys = '<left>',
80 + command = '<NOP>',
62 83 map {
63 - mode = map.MODE.ALL,
64 - keys = map.KEY.RIGHT,
65 - command = map.COMMAND.NOP,
66 - visible = false,
84 + keys = '<right>',
85 + command = '<NOP>',
88 +-- system clipboard copy and paste
89 +map.normal.visual {
90 + name = 'yank into system clipboard',
91 + category = 'editing',
92 + keys = '<leader>y',
93 + command = '"+y',
96 +map.normal.visual {
97 + name = 'yank line into system clipboard',
98 + category = 'editing',
99 + keys = '<leader>yy',
100 + command = '"+Y',
103 +map.normal.visual {
104 + name = 'paste before from system clipboard',
105 + category = 'editing',
106 + keys = '<leader>p',
107 + command = '"+p',
110 +map.normal.visual {
111 + name = 'paste after from system clipboard',
112 + category = 'editing',
113 + keys = '<leader>P',
114 + command = '"+P',
117 +map.insert {
118 + name = 'Cycle through autocomplete popup',
119 + category = 'editing',
120 + keys = '<tab>',
121 + options = { expr = true },
122 + command = function() return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end,
69 125 local function open_link_under_cursor()
72 128 --check that it vaguely resembles an URI
73 129 if file_under_cursor and file_under_cursor:match '%a+://.+' then
74 130 local Job = require 'plenary.job'
75 - Job:new({
131 + local job = Job:new {
76 132 command = 'firefox',
77 133 args = { file_under_cursor },
78 134 on_exit = function()
79 135 vim.notify('Openend ' .. file_under_cursor)
81 - }):start()
138 + job:start()
85 -map {
86 - description = 'Open web link under cursor in browser',
87 - category = map.CATEGORY.NAVIGATION,
88 - mode = map.MODE.NORMAL,
142 +map.normal {
143 + name = 'Open web link under cursor in browser',
144 + category = 'navigation',
89 145 keys = 'gx',
90 146 command = open_link_under_cursor,
93 -map {
94 - description = 'Dismiss current notifications',
95 - category = map.CATEGORY.NOTIFY,
96 - mode = map.MODE.NORMAL,
97 - keys = map.KEY.ESCAPE,
149 +--TODO move to noice config
150 +map.normal {
151 + name = 'Dismiss current notifications',
152 + category = 'notify',
153 + keys = '<esc>',
98 154 command = function()
99 - pcall(vim.notify.dismiss)
155 + want { 'noice' }(function(noice)
156 + noice.cmd 'dismiss'
157 + end)
161 +map.normal {
162 + name = 'Dismiss current search highlight',
163 + category = 'search',
164 + keys = '<esc><esc>',
165 + command = function() vim.cmd [[ nohlsearch ]] end,
168 +map.normal {
169 + description = 'Toggle dark/light theme variant',
170 + category = 'ui',
171 + keys = '<leader>tt',
172 + command = function()
173 + if vim.opt.background:get() == 'dark' then
174 + vim.opt.background = 'light'
175 + else
176 + vim.opt.background = 'dark'
177 + end
178 + vim.notify('Toggled background to ' .. vim.opt.background:get() .. '.')
179 + end,
182 +map.insert {
183 + name = 'Exit normal mode',
184 + category = 'vim',
185 + keys = 'jj',
186 + command = '<C-c>',
189 +map.normal {
190 + name = 'Goto matching bracket',
191 + category = 'navigation',
192 + keys = 'mm',
193 + command = '%',
196 +map.normal {
197 + name = 'Redo undone operation',
198 + category = 'history',
199 + keys = 'U',
200 + command = vim.cmd.redo,

neovim/lua/bugabinga/options/togglers.lua

Added
new file mode 100644
1 +local _ = {}
3 +local toggle_on_icon = '蘒'
4 +local toggle_off_icon = '﨡'
7 +local get_option = function(name) return vim.api.nvim_get_option_value(name, {}) end
8 +local set_option = function(name, value) vim.api.nvim_set_option_value(name, value, {}) end
10 +local toggle = function(self)
11 + vim.iter(self.options)
12 + :each(function(option)
13 + local current_value = get_option(option.name)
14 + if current_value == option.default then
15 + set_option(option.name, option.alternative)
16 + vim.notify( self.display_name .. ' ' .. toggle_on_icon )
17 + else
18 + set_option(option.name, option.default)
19 + vim.notify( self.display_name .. ' ' .. toggle_off_icon )
20 + end
21 + end)
22 +end
24 +local toggler_tostring = function(self)
25 + local all_default = vim.iter(self.options)
26 + :all(function(option) return get_option(option.name) == option.default end)
27 + return self.display_name .. ' ' .. ( all_default and toggle_off_icon or toggle_on_icon )
28 +end
30 +local make_toggler = function( display_name, options)
31 + return {
32 + display_name = display_name,
33 + options = options,
34 + toggle = toggle,
35 + tostring = toggler_tostring,
36 + }
37 +end
39 +local make_option = function (name, alternative)
40 + local option_value = get_option(name)
41 + alternative = alternative or not option_value
42 + return {
43 + name = name,
44 + default = option_value,
45 + alternative = alternative,
46 + }
47 +end
49 +local add_toggler = function( display_name, togglers )
50 + table.insert(_, make_toggler(display_name, togglers ))
51 +end
53 +add_toggler('暈', { make_option'spell' } )
54 +add_toggler(' ', { make_option'number', make_option'relativenumber'})
55 +add_toggler('―', { make_option'cursorline'} )
57 +local tostring = function(self)
58 + return vim.iter(self)
59 + :map(toggler_tostring)
60 + :fold('', function(buffer, text)
61 + return buffer .. (buffer == '' and '' or ' ') .. text
62 + end)
63 +end
65 +return setmetatable(_,{
66 + __tostring = tostring,
67 +})

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
18 18 vim.opt.wrap = true
20 20 -- always display the signcolumn to avoid jitter
21 -vim.opt.signcolumn = 'yes'
21 +-- also, merge it with numbercolumn
22 +vim.opt.signcolumn = 'number'
23 24 -- what is a ruler? me?
24 25 vim.opt.ruler = false
29 30 -- hide weird symbol at end of buffer
30 31 vim.opt.fillchars = {
31 - eob = ' ',
32 - fold = ' ',
33 - diff = '╱',
32 + eob = ' ',
33 + fold = ' ',
34 + diff = '╱',
37 +-- better have no syntax highlighting than regex based, treesitter will take over later
38 +vim.cmd.syntax 'off'
36 40 -- hide output of insert completion popup in status
37 41 vim.opt.shortmess:append 'c'
67 71 -- Use true colors
68 72 vim.opt.termguicolors = true
69 -vim.opt.lazyredraw = true
73 +vim.opt.lazyredraw = false
71 75 -- cursor
72 76 vim.opt.guicursor = 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50'
77 81 -- neovide only options
78 82 if vim.g.neovide then
79 - vim.g.neovide_floating_blur_amount_x = 4.0
80 - vim.g.neovide_floating_blur_amount_y = 4.0
81 - vim.g.neovide_scroll_animation_length = 0.33
82 - vim.g.neovide_fullscreen = true
83 - vim.g.neovide_profiler = false
84 - vim.g.neovide_cursor_animation_length = 0.11
85 - vim.g.neovide_cursor_trail_length = 0.666
86 - vim.g.neovide_cursor_vfx_mode = 'pixiedust'
83 + vim.g.neovide_floating_blur_amount_x = 4.0
84 + vim.g.neovide_floating_blur_amount_y = 4.0
85 + vim.g.neovide_scroll_animation_length = 0.33
86 + vim.g.neovide_fullscreen = true
87 + vim.g.neovide_profiler = false
88 + vim.g.neovide_cursor_animation_length = 0.11
89 + vim.g.neovide_cursor_trail_length = 0.666
90 + vim.g.neovide_cursor_vfx_mode = 'pixiedust'

neovim/lua/bugabinga/plugins/autopairs.lua

Added
new file mode 100644
1 +return {
2 + 'windwp/nvim-autopairs',
3 + event = "InsertEnter",
4 + opts = {}
5 +}

neovim/lua/bugabinga/plugins/better-escape.lua

Added
new file mode 100644
1 +return {
2 + "max397574/better-escape.nvim",
3 + event = "InsertEnter",
4 + opts = {},
5 +}

neovim/lua/bugabinga/plugins/colorizer.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'NvChad/nvim-colorizer.lua',
4 + event = 'VeryLazy',
5 + opts = {
6 + filetypes = { '*' },
7 + user_default_options = {
8 + RGB = true, -- #RGB hex codes
9 + RRGGBB = true, -- #RRGGBB hex codes
10 + names = false, -- "Name" codes like Blue or blue
11 + RRGGBBAA = true, -- #RRGGBBAA hex codes
12 + AARRGGBB = true, -- 0xAARRGGBB hex codes
13 + rgb_fn = true, -- CSS rgb() and rgba() functions
14 + hsl_fn = true, -- CSS hsl() and hsla() functions
15 + css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
16 + css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
17 + -- Available modes for `mode`: foreground, background, virtualtext
18 + mode = 'virtualtext', -- Set the display mode.
19 + -- Available methods are false / true / "normal" / "lsp" / "both"
20 + -- True is same as normal
21 + tailwind = false, -- Enable tailwind colors
22 + -- parsers can contain values used in |user_default_options|
23 + sass = { enable = false, parsers = { 'css' } }, -- Enable sass colors
24 + virtualtext = '██',
25 + -- update color values even if buffer is not focused
26 + -- example use: cmp_menu, cmp_docs
27 + always_update = false,
28 + },
29 + -- all the sub-options of filetypes apply to buftypes
30 + buftypes = {
31 + '*',
32 + '!prompt',
33 + '!popup',
34 + '!nofile',
35 + },
36 + },
37 + },

neovim/lua/bugabinga/plugins/comment.lua

Added
new file mode 100644
1 +return {{
2 + 'numToStr/Comment.nvim',
3 + keys = {
4 + { "gc", mode = { "n", "v" }, desc = "Comment toggle linewise" },
5 + { "gb", mode = { "n", "v" }, desc = "Comment toggle blockwise" },
6 + },
7 + dependencies = {
8 + "JoosepAlviste/nvim-ts-context-commentstring",
9 + },
10 + opts = function()
11 + local commentstring_avail, commentstring = pcall(require, "ts_context_commentstring.integrations.comment_nvim")
12 + return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook() } or {}
13 + end,
14 +}}

neovim/lua/bugabinga/plugins/devicons.lua

Added
new file mode 100644
1 +return {{
2 + 'nvim-tree/nvim-web-devicons',
3 + opts = {
4 + -- instead of creating a highlight for every single icon, use only the
5 + -- DefaultDevIcon highlight for all
6 + color_icons = false,
7 + },
8 +}}

neovim/lua/bugabinga/plugins/genghis.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'chrisgrieser/nvim-genghis',
4 + cmd = {
5 + 'New',
6 + 'Duplicate',
7 + 'NewFromSelection',
8 + 'Rename',
9 + 'Move',
10 + 'Trash',
11 + 'CopyFilename',
12 + 'CopyFilepath',
13 + 'Chmodx',
14 + },
15 + config = function()
16 + -- TODO: setup cmp integration
18 + -- TODO: setup keymaps
19 + -- local keymap = vim.keymap.set
20 + -- local genghis = require("genghis")
21 + -- keymap("n", "<leader>yp", genghis.copyFilepath)
22 + -- keymap("n", "<leader>yn", genghis.copyFilename)
23 + -- keymap("n", "<leader>cx", genghis.chmodx)
24 + -- keymap("n", "<leader>rf", genghis.renameFile)
25 + -- keymap("n", "<leader>mf", genghis.moveAndRenameFile)
26 + -- keymap("n", "<leader>nf", genghis.createNewFile)
27 + -- keymap("n", "<leader>yf", genghis.duplicateFile)
28 + -- keymap("n", "<leader>df", function () genghis.trashFile{trashLocation = "your/path"} end) -- default: "$HOME/.Trash".
29 + -- keymap("x", "<leader>x", genghis.moveSelectionToNewFile)
30 + end,
31 + dependencies = {
32 + 'stevearc/dressing.nvim',
33 + 'hrsh7th/nvim-cmp',
34 + 'hrsh7th/cmp-omni',
35 + },
36 + },

neovim/lua/bugabinga/plugins/gitsigns.lua

Added
new file mode 100644
1 +return {
2 + 'lewis6991/gitsigns.nvim',
3 + branch='main',
4 + event = 'VeryLazy',
5 + opts = {},
6 +}

neovim/lua/bugabinga/plugins/glow.lua

Added
new file mode 100644
1 +local health
2 +return {
3 + "ellisonleao/glow.nvim",
4 + cmd = "Glow",
5 + config = function()
6 + require'bugabinga.health'.add_dependency
7 + {
8 + name = 'Glow',
9 + name_of_executable = 'glow'
10 + }
12 + require'glow'.setup
13 + {
14 + width_ratio = 0.69,
15 + height_ratio = 0.42,
16 + }
17 + end,

neovim/lua/bugabinga/plugins/gomove.lua

Added
new file mode 100644
1 +local map = require 'std.keymap'
3 +return {
4 + {
5 + 'booperlv/nvim-gomove',
6 + keys = {
7 + { '<A-h>', nil, mode = { 'n', 'x' } },
8 + { '<A-j>', nil, mode = { 'n', 'x' } },
9 + { '<A-k>', nil, mode = { 'n', 'x' } },
10 + { '<A-l>', nil, mode = { 'n', 'x' } },
12 + { '<A-H>', nil, mode = { 'n', 'x' } },
13 + { '<A-J>', nil, mode = { 'n', 'x' } },
14 + { '<A-K>', nil, mode = { 'n', 'x' } },
15 + { '<A-L>', nil, mode = { 'n', 'x' } },
16 + },
17 + config = function()
18 + local move = require 'gomove'
20 + move.setup {
21 + -- whether or not to map default key bindings, (true/false)
22 + map_defaults = false,
23 + -- whether or not to reindent lines moved vertically (true/false)
24 + reindent = true,
25 + -- whether or not to undojoin same direction moves (true/false)
26 + undojoin = true,
27 + -- whether to not to move past end column when moving blocks horizontally, (true/false)
28 + move_past_end_col = false,
29 + }
31 + -- default mappings in gomove set no options, but use old keymap api.
32 + -- recreating old defaults here:
33 + local options = { remap = true }
35 + -- i have tried using the lua functions directly for the commands below.
36 + -- the behaviour was slightly buggy in respects to block selections though.
37 + -- unsure why that is.
39 + -- NORMAL MOVE
40 + map.normal {
41 + name = 'Move character left',
42 + category = 'editing',
43 + keys = '<A-h>',
44 + options = options,
45 + command = '<Plug>GoNSMLeft',
46 + }
47 + map.normal {
48 + name = 'Move line down',
49 + category = 'editing',
50 + keys = '<A-j>',
51 + options = options,
52 + command = '<Plug>GoNSMDown',
53 + }
54 + map.normal {
55 + name = 'Move line up',
56 + category = 'editing',
57 + keys = '<A-k>',
58 + options = options,
59 + command = '<Plug>GoNSMUp',
60 + }
61 + map.normal {
62 + name = 'Move character right',
63 + category = 'editing',
64 + keys = '<A-l>',
65 + options = options,
66 + command = '<Plug>GoNSMRight',
67 + }
69 + -- VISUAL MOVE
70 + map.visual {
71 + name = 'Move block left',
72 + category = 'editing',
73 + keys = '<A-h>',
74 + options = options,
75 + command = '<Plug>GoVSMLeft',
76 + }
77 + map.visual {
78 + name = 'Move block down',
79 + category = 'editing',
80 + keys = '<A-j>',
81 + options = options,
82 + command = '<Plug>GoVSMDown',
83 + }
84 + map.visual {
85 + name = 'Move block up',
86 + category = 'editing',
87 + keys = '<A-k>',
88 + options = options,
89 + command = '<Plug>GoVSMUp',
90 + }
91 + map.visual {
92 + name = 'Move block right',
93 + category = 'editing',
94 + keys = '<A-l>',
95 + options = options,
96 + command = '<Plug>GoVSMRight',
97 + }
99 + -- NORMAL DUPLICATE
100 + map.normal {
101 + name = 'Duplicate character left',
102 + category = 'editing',
103 + keys = '<A-H>',
104 + options = options,
105 + command = '<Plug>GoNSDLeft',
107 + map.normal {
108 + name = 'Duplicate line down',
109 + category = 'editing',
110 + keys = '<A-J>',
111 + options = options,
112 + command = '<Plug>GoNSDDown',
114 + map.normal {
115 + name = 'Duplicate line up',
116 + category = 'editing',
117 + keys = '<A-K>',
118 + options = options,
119 + command = '<Plug>GoNSDUp',
121 + map.normal {
122 + name = 'Duplicate character right',
123 + category = 'editing',
124 + keys = '<A-L>',
125 + options = options,
126 + command = '<Plug>GoNSDRight',
129 + -- VISUAL DUPLICATE
130 + map.visual {
131 + name = 'Duplicate block left',
132 + category = 'editing',
133 + keys = '<A-H>',
134 + options = options,
135 + command = '<Plug>GoVSDLeft',
137 + map.visual {
138 + name = 'Duplicate block down',
139 + category = 'editing',
140 + keys = '<A-J>',
141 + options = options,
142 + command = '<Plug>GoVSDDown',
144 + map.visual {
145 + name = 'Duplicate block up',
146 + category = 'editing',
147 + keys = '<A-K>',
148 + options = options,
149 + command = '<Plug>GoVSDUp',
151 + map.visual {
152 + name = 'Duplicate block right',
153 + category = 'editing',
154 + keys = '<A-L>',
155 + options = options,
156 + command = '<Plug>GoVSDRight',
158 + end,
159 + },

neovim/lua/bugabinga/plugins/headless.lua

Deleted
deleted file mode 100644
1 -local auto = require 'bugabinga.std.auto'
2 -local paq = require 'bugabinga.plugins'
4 -auto 'close_neovim' {
5 - description = 'Close neovim after updating plugins.',
6 - events = { 'User' },
7 - pattern = 'PaqDoneSync',
8 - command = 'quit',
9 -}
11 -paq:sync()

neovim/lua/bugabinga/plugins/heirline.lua

Added
new file mode 100644
1 +local auto = require'std.auto'
3 +return {
4 + {
5 + 'rebelot/heirline.nvim',
6 + event = 'BufEnter',
7 + config = function()
8 + local heirline = require'heirline'
9 + local conditions = require("heirline.conditions")
10 + local utils = require("heirline.utils")
12 + local nugu = require'bugabinga.nugu.palette'
13 + heirline.load_colors(nugu)
15 + auto 'ReloadHeirlineColors' {
16 + description = 'Reload dark/light nugu colors for Heirline',
17 + events = 'ColorScheme',
18 + command = function() utils.on_colorscheme(nugu) end,
19 + }
21 + local vi_mode = {
22 + init = function(self)
23 + self.mode = vim.fn.mode(1) -- :h mode()
24 + end,
26 + static = {
27 + mode_names = {
28 + n = "Ν",
29 + no = "Ν?",
30 + nov = "Ν?",
31 + noV = "Ν?",
32 + ["no\22"] = "Ν?",
33 + niI = "Νi",
34 + niR = "Νr",
35 + niV = "Νv",
36 + nt = "Νt",
37 + v = "𝗩 ",
38 + vs = "𝗩 s",
39 + V = "𝗩 _",
40 + Vs = "𝗩 s",
41 + ["\22"] = "^V",
42 + ["\22s"] = "^V",
43 + s = "S",
44 + S = "S_",
45 + ["\19"] = "^S",
46 + i = "Ι",
47 + ic = "Ιc",
48 + ix = "Ιx",
49 + R = "𝐑 ",
50 + Rc = "𝐑c",
51 + Rx = "𝐑x",
52 + Rv = "𝐑v",
53 + Rvc = "𝐑v",
54 + Rvx = "𝐑v",
55 + c = "𝐂 ",
56 + cv = "𝐄x",
57 + r = " ",
58 + rm = "M",
59 + ["r?"] = "?",
60 + ["!"] = "!",
61 + t = " ",
62 + },
63 + mode_colors = {
64 + n = "ui_normal" ,
65 + i = "ui_accent",
66 + v = "ui_important_global",
67 + V = "ui_important_global",
68 + ["\22"] = "ui_important_global",
69 + c = "ui_important_global",
70 + s = "ui_important_global",
71 + S = "ui_important_global",
72 + ["\19"] = "ui_important_global",
73 + R = "ui_important_global",
74 + r = "ui_important_global",
75 + ["!"] = "ui_important_global",
76 + t = "ui_important_global",
77 + }
78 + },
80 + provider = function(self)
81 + return "  %3(" .. self.mode_names[self.mode] .. "%) "
82 + end,
84 + hl = function(self)
85 + local mode = self.mode:sub(1, 1) -- get only the first mode character
86 + return { fg = self.mode_colors[mode], bold = true }
87 + end,
89 + update = {
90 + "ModeChanged",
91 + pattern = "*:*",
92 + callback = vim.schedule_wrap( function() vim.cmd.redrawstatus() end),
93 + },
94 + }
96 + local file_icon = {
97 + init = function(self)
98 + local filename = self.filename
99 + local extension = vim.fn.fnamemodify(filename, ":e")
100 + self.icon = require("nvim-web-devicons").get_icon_color(filename, extension, { default = true })
101 + end,
102 + provider = function(self)
103 + return self.icon and (self.icon .. " ")
104 + end,
105 + hl = 'DefaultIcon',
108 + local file_name = {
109 + init = function(self)
110 + self.lfilename = vim.fn.fnamemodify(self.filename, ":.")
111 + if self.lfilename == "" then self.lfilename = " scratch " end
112 + end,
114 + flexible = 2,
117 + provider = function(self)
118 + return self.lfilename
119 + end,
120 + },
122 + provider = function(self)
123 + return vim.fn.pathshorten(self.lfilename)
124 + end,
125 + },
128 + local file_flags = {
130 + condition = function()
131 + return vim.bo.modified
132 + end,
133 + provider = "  ",
134 + hl = 'Comment',
135 + },
137 + condition = function()
138 + return not vim.bo.modifiable or vim.bo.readonly
139 + end,
140 + provider = "",
141 + hl = 'ErrorMsg',
142 + },
145 + local file_name_block = {
146 + init = function(self)
147 + self.filename = vim.api.nvim_buf_get_name(0)
148 + end,
150 + file_name,
151 + file_flags,
152 + { provider = ' ' },
153 + file_icon,
154 + { provider = '%<'} -- this means that the statusline is cut here when there's not enough space
157 + local file_type = {
158 + provider = function()
159 + return ' ' .. string.upper(vim.bo.filetype)
160 + end,
163 + local file_encoding = {
164 + provider = function()
165 + local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc'
166 + return enc ~= 'utf-8' and enc:upper()
167 + end,
170 + local file_format = {
171 + static = {
172 + dos = '␤␍',
173 + unix = '␤',
174 + mac = '␍',
175 + },
176 + provider = function(self)
177 + local fileformat = vim.bo.fileformat
178 + return self[fileformat]
179 + end
182 + local file_size = {
183 + provider = function()
184 + -- stackoverflow, compute human readable file size
185 + -- i want to see vim opening a 1EiB file 󰱯
186 + local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
187 + local fsize = vim.fn.getfsize(vim.api.nvim_buf_get_name(0))
188 + fsize = (fsize < 0 and 0) or fsize
189 + if fsize < 1024 then
190 + return fsize..suffix[1]
191 + end
192 + local i = math.floor((math.log(fsize) / math.log(1024)))
193 + return string.format("%.2g%s", fsize / math.pow(1024, i), suffix[i + 1])
194 + end,
197 + local file_last_modified = {
198 + provider = function()
199 + local ftime = vim.fn.getftime(vim.api.nvim_buf_get_name(0))
200 + if ftime > 0 then
201 + local timeago = require'std.timeago'
202 + return timeago.format(ftime)
203 + end
204 + end,
207 + local lsp_active = {
208 + condition = conditions.lsp_attached,
209 + update = {'LspAttach', 'LspDetach'},
211 + provider = function()
212 + local names = {}
213 + for i, server in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do
214 + table.insert(names, server.name)
215 + end
216 + return " [" .. table.concat(names, " ") .. "]"
217 + end,
220 + local diagnostic_enabled = {
221 + init = function(self)
222 + self.icon = vim.diagnostic.is_disabled() and '﨡' or '蘒'
223 + end,
224 + provider = function(self)
225 + return ' ' .. self.icon
226 + end,
229 + local diagnostic = {
230 + condition = conditions.has_diagnostics,
232 + static = {
233 + error_icon = vim.fn.sign_getdefined("DiagnosticSignError")[1].text,
234 + warn_icon = vim.fn.sign_getdefined("DiagnosticSignWarn")[1].text,
235 + info_icon = vim.fn.sign_getdefined("DiagnosticSignInfo")[1].text,
236 + hint_icon = vim.fn.sign_getdefined("DiagnosticSignHint")[1].text,
237 + },
239 + init = function(self)
240 + self.errors = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.ERROR })
241 + self.warnings = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN })
242 + self.hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT })
243 + self.info = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.INFO })
244 + end,
246 + update = { "DiagnosticChanged", "BufEnter" },
249 + provider = function(self)
250 + -- 0 is just another output, we can decide to print it or not!
251 + return self.errors > 0 and (self.error_icon .. self.errors .. " ")
252 + end,
253 + hl = 'DiagnosticError',
254 + },
256 + provider = function(self)
257 + return self.warnings > 0 and (self.warn_icon .. self.warnings .. " ")
258 + end,
259 + hl = 'DiagnosticWarn',
260 + },
262 + provider = function(self)
263 + return self.info > 0 and (self.info_icon .. self.info .. " ")
264 + end,
265 + hl = 'DiagnosticInfo',
266 + },
268 + provider = function(self)
269 + return self.hints > 0 and (self.hint_icon .. self.hints)
270 + end,
271 + hl = 'DiagnosticHint',
272 + },
275 + local is_svn_repo = function()
276 + local svn_dir = vim.fs.find('.svn', {
277 + upward = true,
278 + stop = vim.uv.os_homedir(),
279 + path = vim.fs.dirname(vim.api.nvim_buf_get_name(0)),
280 + type = 'directory',
281 + })
283 + return not vim.tbl_isempty(svn_dir)
284 + end
286 + local svn_get_relative_url = function()
287 + local job = require'plenary.job'
288 + local relative_url = '[ERR]'
290 + job:new{
291 + command = 'svn',
292 + args = { 'info', '--show-item', 'relative-url', '--no-newline' },
293 + on_exit = function(current_job, exit_code)
294 + if exit_code == 0 then relative_url = current_job:result() end
295 + end,
296 + }:sync()
298 + return relative_url[1]
299 + end
301 + local svn = {
302 + condition = is_svn_repo,
304 + init = function(self)
305 + self.relative_url = svn_get_relative_url()
306 + end,
309 + provider = function(self)
310 + return '🐢  ' .. self.relative_url
311 + end,
312 + },
316 + local git = {
317 + condition = conditions.is_git_repo,
319 + init = function(self)
320 + self.status_dict = vim.b.gitsigns_status_dict
321 + end,
324 + provider = function(self)
325 + return "  " .. self.status_dict.head .. ' '
326 + end,
327 + },
329 + provider = function(self)
330 + local count = self.status_dict.added or 0
331 + return count > 0 and (" " .. count .. ' ')
332 + end,
333 + hl = 'DiffAdd',
334 + },
336 + provider = function(self)
337 + local count = self.status_dict.removed or 0
338 + return count > 0 and (" " .. count .. ' ')
339 + end,
340 + hl = 'DiffDelete',
341 + },
343 + provider = function(self)
344 + local count = self.status_dict.changed or 0
345 + return count > 0 and (" " .. count .. ' ')
346 + end,
347 + hl = 'DiffChange',
348 + },
351 + local work_dir = {
352 + init = function(self)
353 + self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. " "
354 + local cwd = vim.fn.getcwd(0)
355 + self.cwd = vim.fn.fnamemodify(cwd, ":~")
356 + end,
358 + flexible = 1,
361 + -- evaluates to the full-length path
362 + provider = function(self)
363 + local trail = self.cwd:sub(-1) == "/" and "" or "/"
364 + return self.icon .. self.cwd .. trail
365 + end,
366 + },
368 + -- evaluates to the shortened path
369 + provider = function(self)
370 + local cwd = vim.fn.pathshorten(self.cwd)
371 + local trail = self.cwd:sub(-1) == "/" and "" or "/"
372 + return self.icon .. cwd .. trail
373 + end,
374 + },
376 + -- evaluates to "", hiding the component
377 + provider = "",
381 + local help_file_name = {
382 + condition = function()
383 + return vim.bo.filetype == "help"
384 + end,
385 + provider = function()
386 + local filename = vim.api.nvim_buf_get_name(0)
387 + return vim.fn.fnamemodify(filename, ":t")
388 + end,
389 + hl = 'Question',
392 + local terminal_name = {
393 + -- we could add a condition to check that buftype == 'terminal'
394 + -- or we could do that later (see #conditional-statuslines below)
395 + provider = function()
396 + local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "")
397 + tname = vim.fs.basename(tname)
398 + return " " .. tname
399 + end,
400 + hl = 'Bold',
403 + local togglers = {
404 + provider = function(self)
405 + local togglers = require'bugabinga.options.togglers'
406 + return tostring(togglers)
407 + end,
410 + local macro_recording = {
411 + condition = function()
412 + return vim.fn.reg_recording() ~= "" and vim.o.cmdheight == 0
413 + end,
414 + provider = " ",
415 + hl = 'PreProc',
416 + utils.surround({ "░▒▓ ", " ▓▒░" }, nil, {
417 + provider = function()
418 + return vim.fn.reg_recording()
419 + end,
420 + hl = 'Bold',
421 + }),
422 + update = {
423 + "RecordingEnter",
424 + "RecordingLeave",
428 + local lazy = {
429 + condition = function()
430 + local ok, lazy_status = pcall(require, "lazy.status")
431 + return ok and lazy_status.has_updates()
432 + end,
433 + update = { "User", pattern = "LazyUpdate" },
434 + provider = function() return '  ' .. require'lazy.status'.updates() .. ' ' end,
435 + on_click = {
436 + callback = function() require'lazy'.update() end,
437 + name = "update_plugins",
438 + },
439 + hl = 'LazyProgressTodo',
442 + local align = { provider = "%=" }
443 + local space = { provider = " " }
445 + local default_statusline = {
446 + vi_mode, macro_recording, align,
447 + work_dir, space, git, svn, align,
448 + diagnostic_enabled, space, diagnostic, space, lsp_active, align,
449 + togglers, align,
450 + lazy, space, file_encoding, space, file_format, space ,file_type, space, file_size, space, file_last_modified,
453 + local special_statusline = {
454 + condition = function()
455 + return conditions.buffer_matches({
456 + buftype = { "nofile", "prompt", "help", "quickfix", "noice", "Trouble" },
457 + filetype = { "^git.*", "fugitive" },
458 + })
459 + end,
461 + file_type, space, help_file_name, align
464 + local terminal_statusline = {
466 + condition = function()
467 + return conditions.buffer_matches({ buftype = { "terminal" } })
468 + end,
470 + { condition = conditions.is_active, vi_mode, space }, file_type, space, terminal_name, align,
473 + local inactive_statusline = {
474 + condition = conditions.is_not_active,
475 + file_type, space, file_name, align,
478 + local statuslines = {
479 + hl = function()
480 + if conditions.is_active() then
481 + return "StatusLine"
482 + else
483 + return "StatusLineNC"
484 + end
485 + end,
487 + fallthrough = false,
489 + special_statusline, terminal_statusline, inactive_statusline, default_statusline,
492 + local winbars = {
493 + hl = function()
494 + if conditions.is_active() then
495 + return "Winbar"
496 + else
497 + return "WinbarNC"
498 + end
499 + end,
501 + fallthrough = false,
504 + condition = function()
505 + return conditions.buffer_matches({ buftype = { "terminal" } })
506 + end,
508 + file_type, space, terminal_name,
509 + },
511 + file_name_block,
514 + local tabpage = {
515 + provider = function(self)
516 + return "%" .. self.tabnr .. "T " .. self.tabpage .. " %T"
517 + end,
518 + hl = function(self)
519 + if not self.is_active then
520 + return "TabLine"
521 + else
522 + return "TabLineSel"
523 + end
524 + end,
527 + local tab_pages = {
528 + -- only show this component if there's 2 or more tabpages
529 + condition = function()
530 + return #vim.api.nvim_list_tabpages() >= 2
531 + end,
532 + { provider = "%=" },
533 + utils.make_tablist(tabpage),
536 + local tabline = { tab_pages }
538 + -- local statuscolumn = {}
540 + heirline.setup {
541 + statusline = statuslines,
542 + winbar = winbars,
543 + tabline = tabline,
544 + -- statuscolumn = statuscolumn,
546 + opts = {
547 + colors = nugu,
548 + disable_winbar_cb = function(args)
549 + return conditions.buffer_matches({
550 + buftype = { "nofile", "prompt", "help", "quickfix" },
551 + filetype = { "^git.*", "noice", "Trouble" },
552 + }, args.buf)
553 + end,
554 + },
556 + end,
557 + dependencies = {
558 + 'nvim-tree/nvim-web-devicons',
559 + 'lewis6991/gitsigns.nvim',
560 + },
561 + },

neovim/lua/bugabinga/plugins/hlargs.lua

Added
new file mode 100644
1 +return {{
2 + 'm-demare/hlargs.nvim',
3 + event = 'VeryLazy',
4 + opts = {
5 + paint_arg_declarations = true,
6 + paint_arg_usages = true,
7 + paint_catch_blocks = {
8 + declarations = true,
9 + usages = true,
10 + },
11 + extras = { named_parameter = true },
12 + excluded_argnames = {
13 + declarations = {},
14 + usages = { lua = {} },
15 + },
16 + },
17 + dependencies = {
18 + -- 'nvim-treesitter/nvim-treesitter'
19 + },
20 +}}

neovim/lua/bugabinga/plugins/indent-o-matic.lua

Added
new file mode 100644
1 +return {
2 + 'Darazaki/indent-o-matic',
3 + event = 'BufReadPost',
4 + opts = {},
5 +}

neovim/lua/bugabinga/plugins/indent_blankline.lua

Added
new file mode 100644
1 +return {{
2 + "lukas-reineke/indent-blankline.nvim" ,
3 + lazy = false,
4 + config = function()
5 + local indent_blankline = require'indent_blankline'
7 + indent_blankline.setup {
8 + space_char_blankline = " ",
9 + show_current_context = true,
10 + show_current_context_start = true,
11 + show_trailing_blankline_indent = false,
12 + }
13 + end,
14 +}}

neovim/lua/bugabinga/plugins/init.lua

Deleted
deleted file mode 100644
1 -local paq = require 'bugabinga.plugins.install'
2 -paq {
3 - -- allow paq to manage itself
4 - 'savq/paq-nvim',
5 - -- caches other plugins for faster startup
6 - 'lewis6991/impatient.nvim',
7 - -- faster implementation of filetypes.vim
8 - 'nathom/filetype.nvim',
9 - -- Utilities used by some plugins, e.g. telescope
10 - 'nvim-lua/plenary.nvim',
11 - -- collection of icons used by other plugins. needs a nerd font
12 - 'kyazdani42/nvim-web-devicons',
13 - -- fuzzy search ui over many parts of neovim and other plugins
14 - 'nvim-telescope/telescope.nvim',
15 - -- use telescope as `vim.ui.select`
16 - 'nvim-telescope/telescope-ui-select.nvim',
17 - -- use telescope as `vim.ui.input`
18 - 'stevearc/dressing.nvim',
19 - -- display cheat sheet with telesope
20 - 'nvim-telescope/telescope-cheat.nvim',
21 - -- show file browser in telescope
22 - 'nvim-telescope/telescope-file-browser.nvim',
23 - -- manage projects via telescope
24 - 'nvim-telescope/telescope-project.nvim',
25 - -- pick a symbol (emoji, icon, kaomoji,...) via telescope
26 - 'nvim-telescope/telescope-symbols.nvim',
27 - -- visual indicator if code actions are available
28 - 'kosayoda/nvim-lightbulb',
29 - -- some bug fix for LSP
30 - 'antoinemadec/FixCursorHold.nvim',
31 - -- allows statusbar plugins to query LSP
32 - 'nvim-lua/lsp-status.nvim',
33 - -- keybindings api that integrates into telescope to make keymaps searchable
34 - 'gfeiyou/command-center.nvim',
35 - -- search and replace
36 - 'nvim-pack/nvim-spectre',
37 - -- automatically manage window sizes based on focus
38 - 'beauwilliams/focus.nvim',
39 - -- avoid jitter in buffers when windows change
40 - 'luukvbaal/stabilize.nvim',
41 - -- keybindings that require a persistent chain
42 - 'anuvyklack/hydra.nvim',
43 - -- extends hydra with pink heads
44 - 'anuvyklack/keymap-layer.nvim',
45 - -- configure some editor settings according to editorconfig file, if present
46 - 'gpanders/editorconfig.nvim',
47 - -- highlight words under cursor
48 - -- "RRethy/vim-illuminate",
49 - -- highlight matched wors more clearly
50 - 'kevinhwang91/nvim-hlslens',
51 - -- draw lines to indicate indentation levels
52 - 'lukas-reineke/indent-blankline.nvim',
53 - -- move blocks of code around
54 - 'booperlv/nvim-gomove',
55 - -- theme with colors i like
56 - 'rockerBOO/boo-colorscheme-nvim',
57 - -- display the colorcolumn as a virtual character
58 - 'lukas-reineke/virt-column.nvim',
59 - -- jump cursor to last known position on neovim start
60 - 'ethanholz/nvim-lastplace',
61 - -- smooth scrolling for movement
62 - 'declancm/cinnamon.nvim',
63 - -- fast navigation in buffer via shortcut labels
64 - 'ggandor/leap.nvim',
65 - -- breadcrumbs in window bar
66 - 'SmiteshP/nvim-navic',
67 - -- show color values inline
68 - -- this plugins seems a little unmaintained right now.
69 - -- using some forks for now
70 - 'NvChad/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
109 - {
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 - -- repls in neovim
163 - 'hkupty/iron.nvim',
164 - -- color picker
165 - 'ziontee113/color-picker.nvim',
166 - -- motions around object
167 - 'kylechui/nvim-surround',
169 --- local plugins. they may override plugins from above
170 -vim.opt.runtimepath:append '~/Workspace/lsp-zero.nvim'
171 -return paq

neovim/lua/bugabinga/plugins/install.lua

Deleted
deleted file mode 100644
1 -local path = vim.fn.stdpath('data') .. '/site/pack/paqs/start/paq-nvim'
2 -if vim.fn.filewritable(path) == 0 then
3 - vim.fn.system {
4 - 'git',
5 - 'clone',
6 - '--depth=1',
7 - 'https://github.com/savq/paq-nvim.git',
8 - path,
9 - }
10 - vim.cmd 'packadd paq-nvim'
11 -end
12 -return (require 'paq')

neovim/lua/bugabinga/plugins/last-place.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'ethanholz/nvim-lastplace',
4 + lazy = false,
5 + opts = {
6 + lastplace_ignore_buftype = { 'noice', 'neotree', 'quickfix', 'nofile', 'help' },
7 + lastplace_ignore_filetype = { 'gitcommit', 'gitrebase', 'svn', 'hgcommit' },
8 + lastplace_open_folds = true,
9 + },
10 + },

neovim/lua/bugabinga/plugins/lush.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'rktjmp/lush.nvim',
4 + branch = 'main',
5 + lazy = false,
6 + priority = 1000,
7 + config = function()
8 + vim.cmd.colorscheme 'nugu'
9 + end,
10 + },

neovim/lua/bugabinga/plugins/neogen.lua

Added
new file mode 100644
1 +return {
2 + 'danymat/neogen',
3 + keys = {'<A-enter>'},
4 + dependencies = {'nvim-treesitter/nvim-treesitter'},
5 + config = function()
6 + local neogen = require'neogen'
8 + neogen.setup { }
10 + map.normal {
11 + name = 'Generate doc comment for outer element',
12 + category = 'editing',
13 + keys = '<A-enter>',
14 + command = neogen.generate,
15 + }
17 + map.normal {
18 + name = 'Generate Doc Comment for Function',
19 + category = "editing",
20 + keys = '<A-enter>' .. 'f',
21 + command = function() neogen.generate { type = 'func' } end,
22 + }
24 + map.normal {
25 + name = 'Generate Doc Comment for File',
26 + category = "editing",
27 + keys = '<A-enter>' .. 'F',
28 + command = function() neogen.generate { type = 'file' } end,
29 + }
31 + map.normal {
32 + name = 'Generate Doc Comment for Class',
33 + category = "editing",
34 + keys = '<A-enter>' .. 'c',
35 + command = function() neogen.generate { type = 'class' } end,
36 + }
38 + end,

neovim/lua/bugabinga/plugins/noice.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'folke/noice.nvim',
4 + event = 'VeryLazy',
5 + branch = 'main',
6 + opts = {
7 + cmdline = {
8 + view = 'cmdline', -- cmdline on bottom
9 + },
10 + lsp = {
11 + -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
12 + override = {
13 + ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
14 + ['vim.lsp.util.stylize_markdown'] = true,
15 + ['cmp.entry.get_documentation'] = true,
16 + },
17 + },
18 + -- you can enable a preset for easier configuration
19 + presets = {
20 + bottom_search = true, -- use a classic bottom cmdline for search
21 + command_palette = false, -- position the cmdline and popupmenu together
22 + long_message_to_split = true, -- long messages will be sent to a split
23 + inc_rename = true, -- enables an input dialog for inc-rename.nvim
24 + lsp_doc_border = true, -- add a border to hover docs and signature help
25 + },
26 + views = {
27 + popupmenu = { border = { style = "shadow" } },
28 + popup = { border = { style = "shadow" } },
29 + hover = { border = { style = "shadow" } },
30 + -- does not seem to play well with other popups
31 + -- cmdline = { relative = "cursor", position = { row = 0, col = 0 }, border = { style = "shadow" } },
32 + },
33 + },
34 + dependencies = {
35 + 'MunifTanjim/nui.nvim',
36 + 'rcarriga/nvim-notify',
37 + },
38 + },
39 + {
40 + 'rcarriga/nvim-notify',
41 + config = function()
42 + local notify = require'notify'
43 + local fade = require'notify.stages.fade' 'bottom_up'
45 + local shadow_fade = function(...)
46 + local opts = fade[1](...)
47 + if opts then
48 + opts.border = 'shadow'
49 + opts.row = opts.row - 1
50 + end
51 + return opts
52 + end
54 + notify.setup {
55 + stages = { shadow_fade, unpack(fade, 2) },
56 + render = 'compact',
57 + timeout = 10000,
58 + fps = 140,
59 + top_down = false,
60 + }
61 + end,
62 + },

neovim/lua/bugabinga/plugins/nrpattern.lua

Added
new file mode 100644
1 +return {{
2 + 'zegervdv/nrpattern.nvim',
3 + keys = { '<C-a>', '<C-x>' },
4 + config = function()
5 + local nrpattern = require'nrpattern'
6 + -- NOTE: this plugin overrides all its settiungs if empty map is given
7 + nrpattern.setup()
8 + end,
9 +}}

neovim/lua/bugabinga/plugins/oil.lua

Added
new file mode 100644
1 +local map = require'std.keymap'
3 +return {
4 + 'stevearc/oil.nvim',
5 + lazy = false,
6 + lazy = false,
7 + dependencies = { "nvim-tree/nvim-web-devicons" },
8 + config = function()
9 + local oil = require'oil'
10 + oil.setup{
11 + colums = {
12 + "icon",
13 + "permissions",
14 + "size",
15 + },
16 + keymaps = {
17 + ["q"] = "actions.close",
18 + },
19 + float = {
20 + border = 'shadow',
21 + padding = 2,
22 + win_options = { winblend = 10 },
23 + },
24 + }
26 + map.normal {
27 + name = 'Open parent directory in buffer.',
28 + category = 'files',
29 + keys = '-',
30 + command = oil.open_float,
31 + }
32 + end,

neovim/lua/bugabinga/plugins/specs.lua

Added
new file mode 100644
1 +local map = require'std.keymap'
3 +return {{
4 + 'edluffy/specs.nvim',
5 + keys = '<leader><leader>',
6 + config = function()
7 + local specs = require'specs'
9 + specs.setup{
10 + show_jumps = true,
11 + min_jump = 30,
12 + popup = {
13 + delay_ms = 0, -- delay before popup displays
14 + inc_ms = 10, -- time increments used for fade/resize effects
15 + blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend
16 + width = 10,
17 + winhl = "Cursor",
18 + fader = specs.exp_fader,
19 + resizer = specs.shrink_resizer
20 + },
21 + -- TODO: API for commonly ignored file and buf types?
22 + ignore_filetypes = {},
23 + ignore_buftypes = {
24 + nofile = true,
25 + },
26 + }
28 + map.normal {
29 + name = 'Find cursor!',
30 + category = 'fun',
31 + keys = '<leader><leader>',
32 + command = specs.show_specs,
33 + }
34 + end,
35 +}}

neovim/lua/bugabinga/plugins/substitute.lua

Added
new file mode 100644
1 +local map = require'std.keymap'
3 +return {{
4 + "gbprod/substitute.nvim",
5 + keys = { 's', 'S' },
6 + config = function()
7 + local substitute = require'substitute'
8 + substitute.setup{}
10 + map.normal {
11 + name = 'substitution motion',
12 + category = 'editing',
13 + keys = 's',
14 + command = substitute.operator,
15 + }
17 + map.normal {
18 + name = 'substitution of current line',
19 + category = 'editing',
20 + keys = 'ss',
21 + command = substitute.line,
22 + }
24 + map.normal {
25 + name = 'substitution until end of line',
26 + category = 'editing',
27 + keys = 'S',
28 + command = substitute.eol,
29 + }
31 + map.visual {
32 + description = 'substitution motion (visual mode)',
33 + category = 'editing',
34 + keys = 's',
35 + command = substitute.visual,
36 + }
37 + end,
38 +}}

neovim/lua/bugabinga/plugins/surround.lua

Added
new file mode 100644
1 +return {
2 + {
3 + 'kylechui/nvim-surround',
4 + event = 'VeryLazy',
5 + opts = {
6 + keymaps = {
7 + insert = '<C-g>s',
8 + insert_line = '<C-g>S',
9 + normal = 'ms',
10 + normal_cur = 'mss',
11 + normal_line = 'mS',
12 + normal_cur_line = 'mSS',
13 + visual = 'S',
14 + visual_line = 'gS',
15 + delete = 'md',
16 + change = 'mr',
17 + change_line = 'mR',
18 + },
19 + },
20 + -- dependencies = {
21 + -- 'nvim-treesitter/nvim-treesitter',
22 + -- 'nvim-treesitter/nvim-treesitter-textobjects',
23 + -- },
24 + }

neovim/lua/bugabinga/plugins/telescope.lua

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

neovim/lua/bugabinga/plugins/toggleterm.lua

Added
new file mode 100644
1 +return {
2 + "akinsho/toggleterm.nvim",
3 + keys = '<F7>',
4 + cmd = { "ToggleTerm", "TermExec" },
5 + opts = {
6 + size = 10,
7 + on_create = function()
8 + vim.opt.foldcolumn = "0"
9 + vim.opt.signcolumn = "no"
10 + end,
11 + open_mapping = [[<F7>]],
12 + shading_factor = 2,
13 + direction = "float",
14 + float_opts = {
15 + border = "shadow",
16 + highlights = { border = "Normal", background = "Normal" },
17 + },
18 + },

neovim/lua/bugabinga/plugins/tokyonight.lua

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

neovim/lua/bugabinga/plugins/treesitter.lua

Added
new file mode 100644
1 +local map = require 'std.keymap'
2 +local auto = require 'std.auto'
3 +local want = require 'std.want'
5 +require'bugabinga.health'.add_dependency
6 +{
7 + name = 'CMake',
8 + name_of_executable = 'cmake'
9 +}
11 + name_of_executable = 'make'
14 + name_of_executable = 'zig'
17 + name = 'TreeSitter CLI',
18 + name_of_executable = 'tree-sitter'
21 +return {
22 + 'nvim-treesitter/nvim-treesitter',
23 + branch = "master",
24 + event = {"BufReadPost", "BufNewFile"},
25 + cmd = {
26 + "TSBufDisable",
27 + "TSBufEnable",
28 + "TSBufToggle",
29 + "TSDisable",
30 + "TSEnable",
31 + "TSToggle",
32 + "TSInstall",
33 + "TSInstallInfo",
34 + "TSInstallSync",
35 + "TSModuleInfo",
36 + "TSUninstall",
37 + "TSUpdate",
38 + "TSUpdateSync",
39 + 'TSPlaygroundToggle',
40 + 'TSHighlightCapturesUnderCursor',
41 + 'TSNodeUnderCursor',
42 + },
43 + build = function()
44 + require'nvim-treesitter.install'.update{ with_sync = true }
45 + end,
46 + dependencies = {
47 + "JoosepAlviste/nvim-ts-context-commentstring",
48 + "nvim-treesitter/nvim-treesitter-textobjects",
49 + "windwp/nvim-ts-autotag",
50 + 'nvim-treesitter/playground',
51 + },
52 + config = function()
53 + local install = require'nvim-treesitter.install'
54 + local configs = require'nvim-treesitter.configs'
55 + local parsers = require'nvim-treesitter.parsers'
57 + install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
59 + configs.setup {
60 + ensure_installed = {
61 + 'bash',
62 + "c",
63 + 'comment',
64 + 'diff',
65 + 'dot',
66 + 'git_config',
67 + 'gitcommit',
68 + 'gitignore',
69 + 'java',
70 + 'jsonc',
71 + 'markdown',
72 + 'markdown_inline',
73 + "lua",
74 + 'luap',
75 + 'luadoc',
76 + 'regex',
77 + "vim",
78 + "vimdoc",
79 + "query",
80 + 'zig',
81 + },
82 + auto_install = true,
83 + autotag = { enable = true },
84 + refactor = 'all',
85 + context_commentstring = { enable = true, enable_autocmd = false },
86 + highlight = {
87 + enable = true,
88 + disable = function(lang, buf)
89 + local max_filesize = 1000 * 1024 -- 1000 KiB
90 + local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
91 + if ok and stats and stats.size > max_filesize then
92 + return true
93 + end
94 + end,
95 + additional_vim_regex_highlighting = false,
96 + },
97 + -- TODO what does this do?
98 + incremental_selection = { enable = true },
99 + indent = { enable = true },
100 + lsp_interop = {
101 + enable = true,
102 + border = 'rounded',
103 + peek_definition_code = {
104 + ['<leader>df'] = '@function.outer',
105 + ['<leader>dc'] = '@class.outer',
106 + },
107 + },
108 + textsubjects = {
109 + enable = true,
110 + prev_selection = '<Down>', -- (Optional) keymap to select the previous selection
111 + keymaps = {
112 + ['<Up>'] = 'textsubjects-smart',
113 + ['<Right>'] = 'textsubjects-container-outer',
114 + ['<Left>'] = 'textsubjects-container-inner',
115 + },
116 + },
117 + -- TODO how to learn those?
118 + textobjects = {
119 + select = {
120 + enable = true,
121 + lookahead = true,
122 + keymaps = {
123 + ["ak"] = { query = "@block.outer", desc = "around block" },
124 + ["ik"] = { query = "@block.inner", desc = "inside block" },
125 + ["ac"] = { query = "@class.outer", desc = "around class" },
126 + ["ic"] = { query = "@class.inner", desc = "inside class" },
127 + ["a?"] = { query = "@conditional.outer", desc = "around conditional" },
128 + ["i?"] = { query = "@conditional.inner", desc = "inside conditional" },
129 + ["af"] = { query = "@function.outer", desc = "around function " },
130 + ["if"] = { query = "@function.inner", desc = "inside function " },
131 + ["al"] = { query = "@loop.outer", desc = "around loop" },
132 + ["il"] = { query = "@loop.inner", desc = "inside loop" },
133 + ["aa"] = { query = "@parameter.outer", desc = "around argument" },
134 + ["ia"] = { query = "@parameter.inner", desc = "inside argument" },
135 + },
136 + },
137 + --TODO learn to use move and swap
138 + move = {
139 + enable = true,
140 + set_jumps = true,
141 + goto_next_start = {
142 + ["]k"] = { query = "@block.outer", desc = "Next block start" },
143 + ["]f"] = { query = "@function.outer", desc = "Next function start" },
144 + ["]a"] = { query = "@parameter.inner", desc = "Next argument start" },
145 + },
146 + goto_next_end = {
147 + ["]K"] = { query = "@block.outer", desc = "Next block end" },
148 + ["]F"] = { query = "@function.outer", desc = "Next function end" },
149 + ["]A"] = { query = "@parameter.inner", desc = "Next argument end" },
150 + },
151 + goto_previous_start = {
152 + ["[k"] = { query = "@block.outer", desc = "Previous block start" },
153 + ["[f"] = { query = "@function.outer", desc = "Previous function start" },
154 + ["[a"] = { query = "@parameter.inner", desc = "Previous argument start" },
155 + },
156 + goto_previous_end = {
157 + ["[K"] = { query = "@block.outer", desc = "Previous block end" },
158 + ["[F"] = { query = "@function.outer", desc = "Previous function end" },
159 + ["[A"] = { query = "@parameter.inner", desc = "Previous argument end" },
160 + },
161 + },
162 + swap = {
163 + enable = true,
164 + swap_next = {
165 + [">K"] = { query = "@block.outer", desc = "Swap next block" },
166 + [">F"] = { query = "@function.outer", desc = "Swap next function" },
167 + [">A"] = { query = "@parameter.inner", desc = "Swap next argument" },
168 + },
169 + swap_previous = {
170 + ["<K"] = { query = "@block.outer", desc = "Swap previous block" },
171 + ["<F"] = { query = "@function.outer", desc = "Swap previous function" },
172 + ["<A"] = { query = "@parameter.inner", desc = "Swap previous argument" },
173 + },
174 + },
175 + },
176 + playground = {
177 + enable = true,
178 + disable = {},
179 + updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
180 + persist_queries = false, -- Whether the query persists across vim sessions
181 + keybindings = {
182 + toggle_query_editor = 'o',
183 + toggle_hl_groups = 'i',
184 + toggle_injected_languages = 't',
185 + toggle_anonymous_nodes = 'a',
186 + toggle_language_display = 'I',
187 + focus_language = 'f',
188 + unfocus_language = 'F',
189 + update = 'R',
190 + goto_node = '<cr>',
191 + show_help = '?',
192 + },
193 + },
196 + parsers.get_parser_configs().just = {
197 + install_info = {
198 + url = 'https://github.com/IndianBoy42/tree-sitter-just', -- local path or git repo
199 + files = { 'src/parser.c', 'src/scanner.cc' },
200 + branch = 'main',
201 + },
202 + maintainers = { '@IndianBoy42' },
205 + -- FIXME: this aucmd needs to be restricted to buffers where treesitter is loaded
206 + -- Treesitter highlights tend to highlight syntax errors immediately.
207 + -- But that i find distracting while typing.
208 + -- Disable the error highlight while typing, but keep it in normal mode.
209 + auto 'disable_error_highlight_while_typing' {
211 + description = 'Disable the @error highlight while in Insert mode',
212 + events = 'InsertEnter',
213 + pattern = '*',
214 + command = function()
215 + local highlight = require'nvim-treesitter.highlight'
216 + pcall(highlight.detach)
217 + pcall(highlight.set_custom_captures, { error = 'None' })
218 + pcall(highlight.attach)
219 + end,
220 + },
222 + description = 'Enable the @error highlight while in Normal mode',
223 + events = 'InsertLeave',
224 + pattern = '*',
225 + command = function()
226 + local highlight = require'nvim-treesitter.highlight'
227 + pcall(highlight.detach)
228 + pcall(highlight.set_custom_captures, { error = 'TSError' })
229 + pcall(highlight.attach)
230 + end,
231 + },
233 + end,

neovim/lua/bugabinga/plugins/treesj.lua

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

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

Added
new file mode 100644
1 +return {
2 + {
3 + 'lukas-reineke/virt-column.nvim',
4 + lazy = false,
5 + opts = {
6 + char = '│',
7 + },
8 + },
9 +}

neovim/lua/bugabinga/problems.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'trouble' }(function(trouble)
3 - trouble.setup {}
4 -end)

neovim/lua/bugabinga/profile.lua

Deleted
deleted file mode 100644
1 -local plenary_profile_ok, plenary_profile = pcall(require, 'plenary.profile')
2 -local profile_file = 'profile.log'
4 --- return a profiler facade, that delegates to plenary.profile if it exists.
5 --- also, if vim.g.profile_mode is false, these methods to nothing.
6 -return {
7 - start = function()
8 - if plenary_profile_ok and vim.g.profile_mode then
9 - plenary_profile.start(profile_file, {flame = true})
10 - elseif not plenary_profile_ok then
11 - vim.notify'profiler could not be loaded'
12 - end
13 - end,
14 - stop = function()
15 - if plenary_profile_ok and vim.g.profile_mode then
16 - plenary_profile.stop()
17 - convert_to_svg(profile_file)
18 - if vim.fn.executable"inferno-flamegraph" then
19 - vim.fn.system("inferno-flamegraph " .. profile_file .. " | save profile.svg")
20 - end
21 - end
22 - end,
23 -}

neovim/lua/bugabinga/profiler.lua

Deleted
deleted file mode 100644
1 -local ok, profiler = pcall(require, 'plenary.profile')
2 -if not ok then
3 - return
4 -end
5 ---FIXME: fix file paths into stdpath data
6 -local file = 'profile.log'
7 -return {
8 - start = function()
9 - profiler.start(file, { flame = true })
10 - end,
11 - stop = function()
12 - profiler.stop()
13 - vim.fn.system('inferno-flamegraph ' .. file .. ' | save profile.svg')
14 - end,
15 -}

neovim/lua/bugabinga/registers.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want{ 'registers' } (function(registers)
3 - registers.setup {
5 - -- Show these registers in the order of the string
6 - show = "*+\"-/_=#%.0123456789abcdefghijklmnopqrstuvwxyz:",
7 - -- Show a line at the bottom with registers that aren't filled
8 - show_empty = true,
9 - -- Expose the :Registers user command
10 - register_user_command = true,
11 - -- Always transfer all selected registers to the system clipboard
12 - system_clipboard = true,
13 - -- Don't show whitespace at the begin and end of the register's content
14 - trim_whitespace = true,
15 - -- Don't show registers which are exclusively filled with whitespace
16 - hide_only_whitespace = true,
17 - -- Show a character next to the register name indicating how the register will be applied
18 - show_register_types = true,
20 - bind_keys = {
21 - -- Show the window when pressing " in normal mode, applying the selected register as part of a motion, which is the default behavior of Neovim
22 - normal = registers.show_window({ mode = "motion" }),
23 - -- Show the window when pressing " in visual mode, applying the selected register as part of a motion, which is the default behavior of Neovim
24 - visual = registers.show_window({ mode = "motion" }),
25 - -- Show the window when pressing <C-R> in insert mode, inserting the selected register, which is the default behavior of Neovim
26 - insert = registers.show_window({ mode = "insert" }),
28 - -- When pressing the key of a register, apply it with a very small delay, which will also highlight the selected register
29 - registers = registers.apply_register({ delay = 0.1 }),
30 - -- Immediately apply the selected register line when pressing the return key
31 - return_key = registers.apply_register(),
32 - -- Close the registers window when pressing the Esc key
33 - escape = registers.close_window(),
35 - -- Move the cursor in the registers window down when pressing <C-N>
36 - ctrl_n = registers.move_cursor_down(),
37 - -- Move the cursor in the registers window up when pressing <C-P>
38 - ctrl_p = registers.move_cursor_up(),
39 - -- Move the cursor in the registers window down when pressing <C-J>
40 - ctrl_j = registers.move_cursor_down(),
41 - -- Move the cursor in the registers window up when pressing <C-K>
42 - ctrl_k = registers.move_cursor_up(),
43 - },
45 - events = {
46 - -- When a register line is highlighted, show a preview in the main buffer with how the register will be applied, but only if the register will be inserted or pasted
47 - on_register_highlighted = registers.preview_highlighted_register({ if_mode = { "insert", "paste" } }),
48 - },
50 - symbols = {
51 - -- Show a special character for line breaks
52 - newline = "⏎",
53 - -- Show space characters without changes
54 - space = " ",
55 - -- Show a special character for tabs
56 - tab = "·",
57 - -- The character to show when a register will be applied in a char-wise fashion
58 - register_type_charwise = "ᶜ",
59 - -- The character to show when a register will be applied in a line-wise fashion
60 - register_type_linewise = "ˡ",
61 - -- The character to show when a register will be applied in a block-wise fashion
62 - register_type_blockwise = "ᵇ",
63 - },
65 - window = {
66 - -- The window can't be wider than 100 characters
67 - max_width = 100,
68 - -- Show a small highlight in the sign column for the line the cursor is on
69 - highlight_cursorline = true,
70 - -- Don't draw a border around the registers window
71 - border = "rounded",
72 - -- Apply a tiny bit of transparency to the the window, letting some characters behind it bleed through
73 - transparency = 10,
74 - },
76 - -- Highlight the sign registers as regular Neovim highlights
77 - sign_highlights = {
78 - cursorline = "Visual",
79 - selection = "Constant",
80 - default = "Function",
81 - unnamed = "Statement",
82 - read_only = "Type",
83 - expression = "Exception",
84 - black_hole = "Error",
85 - alternate_buffer = "Operator",
86 - last_search = "Tag",
87 - delete = "Special",
88 - yank = "Delimiter",
89 - history = "Number",
90 - named = "Todo",
91 - },
93 - }
94 -end)

neovim/lua/bugabinga/replace.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'spectre' }(function(spectre)
3 - spectre.setup()
4 - --FIXME add keymaps
5 - --FIXME integrate with windline, if windline gets used
6 -end)

neovim/lua/bugabinga/search.lua

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
2 -local want = require 'bugabinga.std.want'
4 -want { 'hlslens' } (function(lens)
6 - lens.setup()
8 - -- this highlight links by default to WildMenu, which is to offensive
9 - vim.api.nvim_set_hl(0, 'HlSearchLens', { link = 'Search' })
11 - map {
12 - description = 'Go to next highlighted search match',
13 - category = map.CATEGORY.SEARCH,
14 - mode = map.MODE.NORMAL,
15 - keys = map.KEY.N,
16 - command = function()
17 - vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.N)
18 - lens.start()
19 - end,
20 - }
21 - map {
22 - description = 'Go to previous highlighted search match',
23 - category = map.CATEGORY.SEARCH,
24 - mode = map.MODE.NORMAL,
25 - keys = map.KEY.SHIFT_N,
26 - command = function()
27 - vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.SHIFT_N)
28 - lens.start()
29 - end,
30 - }
32 - map {
33 - description = 'Search next word under cursor',
34 - category = map.CATEGORY.SEARCH,
35 - mode = map.MODE.NORMAL,
36 - keys = map.KEY.MULTIPLY,
37 - command = function()
38 - vim.api.nvim_feedkeys(map.KEY.MULTIPLY, map.MODE.NORMAL, true)
39 - lens.start()
40 - end,
41 - }
42 - map {
43 - description = 'Search previous word under cursor',
44 - category = map.CATEGORY.SEARCH,
45 - mode = map.MODE.NORMAL,
46 - keys = map.KEY.HASHTAG,
47 - command = function()
48 - vim.api.nvim_feedkeys(map.KEY.HASHTAG, map.MODE.NORMAL, true)
49 - lens.start()
50 - end,
51 - }
53 - map {
54 - description = 'Clear search highlights',
55 - category = map.CATEGORY.SEARCH,
56 - mode = map.MODE.NORMAL,
57 - keys = map.KEY.LEADER .. map.KEY.LEADER,
58 - command = function()
59 - vim.cmd 'nohlsearch'
60 - end,
61 - }
62 -end)

neovim/lua/bugabinga/smooth-scroll.lua

Deleted
deleted file mode 100644
1 -local map = require'bugabinga.std.keymap'
2 -local fmt = require'bugabinga.std.fmt'
3 -local want = require 'bugabinga.std.want'
5 -want { 'cinnamon' } (function(cinnamon)
6 - cinnamon.setup {
7 - default_keymaps = false,
8 - hide_cursor = true,
9 - }
10 - -- 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("{")',
106 - }
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("}")',
114 - }
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)',
124 - }
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)',
132 - }
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>")',
142 - }
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>")',
149 - }
151 -end)

neovim/lua/bugabinga/start-screen.lua

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
2 -local fmt = require 'bugabinga.std.fmt'
3 -local want = require 'bugabinga.std.want'
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 - }
45 -end)

neovim/lua/bugabinga/std/auto.lua

Deleted
deleted file mode 100644
1 --- Wrapper over `vim.api.nvim_create_autocmd` for automatic grouping and idempotency.
2 -return function(group_name)
3 - local group = vim.api.nvim_create_augroup(group_name, { clear = true })
4 - return function(list_of_autocommands)
5 - if list_of_autocommands.events then
6 - list_of_autocommands = { list_of_autocommands }
7 - end
8 - for _, autocommand in pairs(list_of_autocommands) do
9 - -- command and callback are mutually exclusive.
10 - -- one of them has to be nil
11 - local command = nil
12 - local callback = nil
13 - if type(autocommand.command) == 'function' then
14 - callback = autocommand.command
15 - else
16 - command = autocommand.command
17 - end
18 - vim.api.nvim_create_autocmd(autocommand.events, {
19 - desc = autocommand.description,
20 - group = group,
21 - pattern = autocommand.pattern,
22 - command = command,
23 - callback = callback,
24 - })
25 - end
26 - end
27 -end

neovim/lua/bugabinga/std/fmt.lua

Deleted
deleted file mode 100644
1 --- wraps vim commands with : (<CMD>) and Enter (<CR>)
2 -local function cmd(interactive_command)
3 - return '<CMD>' .. interactive_command .. '<CR>'
4 -end
6 -return {
7 - cmd = cmd,
8 -}

neovim/lua/bugabinga/std/icon.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
3 -local function get_icon(icon_name)
4 - return want { 'nvim-web-devicons' } (function(devicons)
5 - return devicons.get_icon(icon_name)
6 - end)
7 -end
9 - --TODO: fill up those icons
10 -return setmetatable({
11 - FILE = {},
12 - UI = {},
13 - DOCUMENT = {},
14 - MISC = {},
15 -}, {
16 - __call = function(_, ...)
17 - return get_icon(...)
18 - end,
19 -})

neovim/lua/bugabinga/std/keymap.lua

Deleted
deleted file mode 100644
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
32 -end)
34 -return setmetatable({
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 - SHIFT_G = 'G',
58 - SHIFT_N = 'N',
59 - CONTROL_SHIFT_F = '<C-F>',
60 - ALT_H = '<A-h>',
61 - ALT_J = '<A-j>',
62 - ALT_K = '<A-k>',
63 - ALT_L = '<A-l>',
64 - ALT_SHIFT_H = '<A-H>',
65 - ALT_SHIFT_J = '<A-J>',
66 - ALT_SHIFT_K = '<A-K>',
67 - ALT_SHIFT_L = '<A-L>',
68 - F2 = '<F2>',
69 - F4 = '<F4>',
70 - F6 = '<F6>',
71 - F7 = '<F7>',
72 - F8 = '<F8>',
73 - F12 = '<F12>',
74 - CARET = '^',
75 - DOLLAR = '$',
76 - MULTIPLY = '*',
77 - HASHTAG = '#',
78 - OPEN_CURLY_BRACKET = '{',
79 - CLOSE_CURLY_BRACKET = '}',
80 - ZERO = '0',
81 - B = 'b',
82 - C = 'c',
83 - D = 'd',
84 - E = 'e',
85 - F = 'f',
86 - G = 'g',
87 - I = 'i',
88 - J = 'j',
89 - L = 'l',
90 - N = 'n',
91 - K = 'k',
92 - P = 'p',
93 - R = 'r',
94 - S = 's',
95 - T = 't',
96 - V = 'v',
97 - },
98 - COMMAND = {
99 - NOP = function() end,
100 - },
101 - CATEGORY = {
102 - NAVIGATION = 'navigation',
103 - EDITING = 'editing',
104 - NOTIFY = 'notify',
105 - VIEW = 'view',
106 - SEARCH = 'search',
107 - SCROLL = 'scroll',
108 - PROBLEMS = 'problems',
109 - LSP = 'lsp',
110 - VERSION_CONTROL = 'vcs',
111 - },
112 -}, {
113 - __call = function(_, ...)
114 - return bind(...)
115 - end,
116 -})

neovim/lua/bugabinga/std/project.lua

Deleted
deleted file mode 100644
1 ---- Determines the path to a root directory, starting from the given directory.
2 --- Markers have a name and weight.
3 --- Each name is checked for existence in all directories up to the root.
4 --- The sum of all markers and their weight determines a directories score.
5 --- The directory with the highest score will be returned.
6 ---
7 --- ## Example
8 --- Assuming you want to determine the root of your current buffer, that is part
9 --- of some project.
10 --- Buffer: `/home/user/workspace/some\_project/a/b/c/d/the\_buffer.c`
11 --- Project root: `/home/user/workspace/some\_project`
12 --- -> contains `.git`, `README` and `Makefile`
13 ---
14 --- ```lua
15 --- local project = require'bugabinga.std.project'
16 --- local current_buffer = vim.api.nvim_buf_get_name(0)
17 --- local markers = {
18 --- { name = ".git", weight = 1 },
19 --- { name = "README", weight = 2 },
20 --- { naem = "Makefile", weight = 3 },
21 --- }
22 --- local root = project.determine_root(current_buffer, markers, "~")
23 --- print(root) -- /home/user/workspace/some_project
24 --- ```
25 ----@param directory string The starting directory, from where to begin the search.
26 ----@param markers table<string,number> List of markers, that define the root, that is searched for.
27 ----@param root string The last directory on the path to root, when to stop searching. Usually '/' or '~'.
28 ----@return string? #A directory, that contains the `markers` and lies on the path from `directory` to `root`.
29 -local function determine_root(directory, markers, root)
30 - local dirname = function(path)
31 - return vim.fn.fnamemodify(path, ':h')
32 - end
33 - local exists = function(path)
34 - return vim.loop.fs_stat(path)
35 - end
36 - local directory_scores = {}
37 - local current_distance_to_buffer = 0
38 - --traverse the path to root and check every directory on the way for files
39 - --that are named like the given markers. if markers exist, add those to the
40 - --score of the directory. scores of all directories with markers will be
41 - --processes later.
42 - --the root itself never gets checked for markers!
43 - -- stop if we reached the user defined root instead of the file system root
44 - while directory ~= root do
45 - local score = {
46 - path = directory,
47 - marker_count = 0,
48 - distance_to_buffer_file = current_distance_to_buffer,
49 - markers = {},
50 - }
52 - for _, marker in ipairs(markers) do
53 - local marker_path = directory .. '/' .. marker.name
54 - if exists(marker_path) then
55 - score.marker_count = score.marker_count + marker.weight
56 - table.insert(score.markers, marker_path)
57 - end
58 - end
60 - if score.marker_count > 0 then
61 - table.insert(directory_scores, score)
62 - end
64 - directory = dirname(directory)
65 - current_distance_to_buffer = current_distance_to_buffer + 1
66 - end
68 - local project_root = nil
69 - local max_likelyhood = 0
70 - -- the project root is most likely the directory with the highest marker count
71 - -- and distance to current buffer.
72 - -- because if there are markers further away from the buffer than other markers,
73 - -- then it is most likely a nested project structure (multi-module).
74 - -- in those cases we are looking for the root project folder, instead the nearest
75 - -- child project root folder.
76 - for _, score in ipairs(directory_scores) do
77 - local likelihood = score.marker_count + score.distance_to_buffer_file
78 - if likelihood > max_likelyhood then
79 - max_likelyhood = likelihood
80 - project_root = score.path
81 - end
82 - end
83 - return project_root
84 -end
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<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 ----@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|nil project_root The project root of the current buffer, or `nil`, if none could be determined.
90 -local function determine_project_root(custom_markers, custom_root)
91 - -- glob expands user defined root and checks, that it exists
92 - ---@diagnostic disable-next-line: missing-parameter
93 - local root = vim.fn.glob(custom_root)
94 - if root == '' then
95 - vim.notify('the custom root ' .. custom_root .. ' does not exist!', 'error')
96 - return nil
97 - end
98 - -- define some language-independent markers
99 - local markers = {
100 - { name = '.git', weight = 1 },
101 - { name = '.gitignore', weight = 1 },
102 - { name = '.svn', weight = 1 },
103 - { name = 'justfile', weight = 1 },
104 - { name = 'Jenkinsfile', weight = 1 },
105 - { name = '.editorconfig', weight = 1 },
106 - { name = 'LICENSE', weight = 1 },
107 - { name = 'LICENSE.txt', weight = 1 },
108 - { name = 'COPYING', weight = 1 },
109 - { name = 'README', weight = 1 },
110 - { name = 'README.md', weight = 1 },
111 - }
112 - markers = vim.tbl_deep_extend('force', markers, custom_markers)
114 - local buffer_name = vim.api.nvim_buf_get_name(0)
115 - local directory_name = vim.fn.fnamemodify(buffer_name, ':p:h')
116 - return determine_root(directory_name, markers, root)
117 -end
119 -local java_markers = {
120 - { name = '.idea', weight = 2 },
121 - { name = '.classpath', weight = 2 },
122 - { name = '.settings', weight = 2 },
123 - { name = '.project', weight = 2 },
124 - { name = 'target', weight = 2 },
125 - { name = 'pom.xml', weight = 2 },
126 - { name = 'mvnw', weight = 3 },
127 - { name = '.mvn', weight = 3 },
128 - { name = 'mvnw.cmd', weight = 3 },
129 - { name = 'build.gradle', weight = 2 },
130 - { name = 'gradle.properties', weight = 3 },
131 - { name = 'settings.gradle', weight = 3 },
132 - { name = 'gradlew', weight = 3 },
133 - { name = 'gradlew.bat', weight = 3 },
135 -local function determine_java_project_root(user_root)
136 - return determine_project_root(java_markers, user_root)
137 -end
139 -local function is_java_project_root(directory, user_root)
140 - -- avoid determine_project_root to __not__ check non-java markers
141 - return determine_root(directory, java_markers, user_root) ~= nil
142 -end
144 -return {
145 - is_java_project_root = is_java_project_root,
146 - determine_root = determine_root,
147 - determine_project_root = determine_project_root,
148 - determine_java_project_root = determine_java_project_root,

neovim/lua/bugabinga/std/string.lua

Deleted
deleted file mode 100644
1 -local function is_blank(string)
2 - return string == nil or string == '' or vim.trim(string) == ''
3 -end
5 -return {
6 - is_blank = is_blank,
7 -}

neovim/lua/bugabinga/std/want.lua

Deleted
deleted file mode 100644
1 ---- attempts to import modules with the given names.
2 ----@param module_names table name or list of names, or a function that returns those
3 ----@return function function that takes a function that takes in the modules listed by `module_names`
4 -return function(module_names)
5 - return function(block)
6 - local loaded_modules = {}
7 - local failed_modules = {}
8 - for _, name in pairs(module_names) do
9 - local status_ok, module = pcall(require, name)
10 - if status_ok then
11 - table.insert(loaded_modules, module)
12 - else
13 - table.insert(failed_modules, module)
14 - end
15 - end
16 - for _, module in pairs(failed_modules) do
17 - vim.notify('the required module ' .. module .. ' could not be found', 'error')
18 - end
19 - if #failed_modules > 0 then
20 - return
21 - end
22 - return block(unpack(loaded_modules))
23 - end
24 -end

neovim/lua/bugabinga/surround.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'nvim-surround' }(function(surround)
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 - }
11 -end)

neovim/lua/bugabinga/terminal.lua

Deleted
deleted file mode 100644
1 -local auto = require 'bugabinga.std.auto'
2 -local want = require 'bugabinga.std.want'
3 ---FIXME use keymap facade
4 -want { 'toggleterm' } (function(toggleterm)
5 - toggleterm.setup {
6 - size = 20,
7 - open_mapping = [[<LEADER>t]],
8 - hide_numbers = true,
9 - shade_filetypes = {},
10 - shade_terminals = true,
11 - shading_factor = 2,
12 - start_in_insert = true,
13 - insert_mappings = false,
14 - persist_size = true,
15 - direction = 'float',
16 - close_on_exit = true,
17 - shell = vim.o.shell,
18 - float_opts = {
19 - border = 'curved',
20 - winblend = 0,
21 - highlights = {
22 - border = 'Normal',
23 - background = 'Normal',
24 - },
25 - },
26 - }
28 - local function set_terminal_keymaps()
29 - local opts = { noremap = true }
30 - vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts)
31 - vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts)
32 - vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts)
33 - vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts)
34 - vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts)
35 - end
37 - auto 'set_terminal_keymaps' {
38 - description = 'Set more natural keybindings in terminal',
39 - events = 'TermOpen',
40 - pattern = 'term://*',
41 - command = set_terminal_keymaps,
42 - }
43 -end)

neovim/lua/bugabinga/todo.lua

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
2 -local project = require 'bugabinga.std.project'
3 -local want = require 'bugabinga.std.want'
5 -want { 'todo-comments' }(function(todo)
6 - -- HACK: #104 Invalid in command-line window
7 - local hl = require 'todo-comments.highlight'
8 - local highlight_win = hl.highlight_win
9 - hl.highlight_win = function(win, force)
10 - pcall(highlight_win, win, force)
11 - end
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 - }
42 -end)

neovim/lua/bugabinga/treesitter.lua

Deleted
deleted file mode 100644
1 -local map = require 'bugabinga.std.keymap'
2 -local auto = require 'bugabinga.std.auto'
3 -local want = require 'bugabinga.std.want'
5 -want {
6 - 'nvim-treesitter.install',
7 - 'nvim-treesitter.configs',
8 - 'nvim-treesitter.parsers',
9 - 'hlargs',
10 - 'neogen',
11 -} (function(install, configs, parsers, hlargs, neogen)
12 - install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
13 - install.prefer_git = true
15 - configs.setup {
16 - -- A list of parser names, or "all"
17 - ensure_installed = 'all',
18 - -- Install parsers asynchronously (only applied to `ensure_installed`)
19 - -- The synchronous install method seems to rely on a posix shell, which i
20 - -- do not use.
21 - sync_install = false,
22 - -- Automatically install missing parsers when entering buffer
23 - auto_install = true,
25 - highlight = {
26 - -- `false` will disable the whole extension
27 - enable = true,
28 - disable = {},
30 - -- Setting this to true will run `:h syntax` and tree-sitter at the same time.
31 - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
32 - -- Using this option may slow down your editor, and you may see some duplicate highlights.
33 - -- Instead of true it can also be a list of languages
34 - additional_vim_regex_highlighting = false,
35 - },
36 - incremental_selection = {
37 - enable = true,
38 - keymaps = {
39 - init_selection = 'gnn',
40 - node_incremental = 'grn',
41 - scope_incremental = 'grc',
42 - node_decremental = 'grm',
43 - },
44 - },
45 - -- indent on = with TS
46 - indent = {
47 - enable = true,
48 - },
49 - -- These features are mostly useful when there is treesitter parser, but no
50 - -- LSP.
51 - -- FIXME: harmonize the keybinds with LSP equivalents
52 - refactor = 'all',
53 - textsubjects = {
54 - enable = true,
55 - prev_selection = '<Down>', -- (Optional) keymap to select the previous selection
56 - keymaps = {
57 - ['<Up>'] = 'textsubjects-smart',
58 - ['<Right>'] = 'textsubjects-container-outer',
59 - ['<Left>'] = 'textsubjects-container-inner',
60 - },
61 - },
62 - textobjects = {
63 - select = {
64 - enable = true,
65 - -- Automatically jump forward to textobj, similar to targets.vim
66 - lookahead = true,
67 - keymaps = {
68 - -- You can use the capture groups defined in textobjects.scm
69 - ['af'] = '@function.outer',
70 - ['if'] = '@function.inner',
71 - ['ac'] = '@class.outer',
72 - ['ic'] = '@class.inner',
73 - },
74 - },
75 - swap = {
76 - enable = true,
77 - swap_next = {
78 - ['<leader>a'] = '@parameter.inner',
79 - },
80 - swap_previous = {
81 - ['<leader>A'] = '@parameter.inner',
82 - },
83 - },
84 - move = {
85 - enable = true,
86 - set_jumps = true, -- whether to set jumps in the jumplist
87 - goto_next_start = {
88 - [']m'] = '@function.outer',
89 - [']]'] = '@class.outer',
90 - },
91 - goto_next_end = {
92 - [']M'] = '@function.outer',
93 - [']['] = '@class.outer',
94 - },
95 - goto_previous_start = {
96 - ['[m'] = '@function.outer',
97 - ['[['] = '@class.outer',
98 - },
99 - goto_previous_end = {
100 - ['[M'] = '@function.outer',
101 - ['[]'] = '@class.outer',
102 - },
103 - },
104 - lsp_interop = {
105 - enable = true,
106 - border = 'rounded',
107 - peek_definition_code = {
108 - ['<leader>df'] = '@function.outer',
109 - ['<leader>dc'] = '@class.outer',
110 - },
111 - },
112 - },
113 - playground = {
114 - enable = true,
115 - disable = {},
116 - updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code
117 - persist_queries = false, -- Whether the query persists across vim sessions
118 - keybindings = {
119 - toggle_query_editor = 'o',
120 - toggle_hl_groups = 'i',
121 - toggle_injected_languages = 't',
122 - toggle_anonymous_nodes = 'a',
123 - toggle_language_display = 'I',
124 - focus_language = 'f',
125 - unfocus_language = 'F',
126 - update = 'R',
127 - goto_node = '<cr>',
128 - show_help = '?',
129 - },
130 - },
131 - context_commentstring = {
132 - enable = true,
133 - },
134 - -- autoclose and rename tags
135 - autotag = {
136 - enable = true,
137 - },
138 - }
140 - parsers.get_parser_configs().just = {
141 - install_info = {
142 - url = 'https://github.com/IndianBoy42/tree-sitter-just', -- local path or git repo
143 - files = { 'src/parser.c', 'src/scanner.cc' },
144 - branch = 'main',
145 - },
146 - maintainers = { '@IndianBoy42' },
147 - }
149 - -- highlight function arguments
150 - -- TODO: define color
151 - hlargs.setup()
153 - -- generate doc comment annotations
154 - -- TODO: setup keybind
155 - neogen.setup{
156 - snippet_engine = 'luasnip',
157 - }
159 - map {
160 - description = 'Generate Doc Comment for Function',
161 - category = map.CATEGORY.EDITING,
162 - mode = map.MODE.NORMAL,
163 - keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.F,
164 - command = function() neogen.generate{ type = 'func'} end,
165 - }
166 - map {
167 - description = 'Generate Doc Comment for File',
168 - category = map.CATEGORY.EDITING,
169 - mode = map.MODE.NORMAL,
170 - keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.F .. map.KEY.F,
171 - command = function() neogen.generate{ type = 'file'} end,
172 - }
173 - map {
174 - description = 'Generate Doc Comment for Class',
175 - category = map.CATEGORY.EDITING,
176 - mode = map.MODE.NORMAL,
177 - keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.C,
178 - command = function() neogen.generate{ type = 'class'} end,
179 - }
181 - -- FIXME: this aucmd needs to be restricted to buffers where treesitter is loaded
182 - -- Treesitter highlights tend to highlight syntax errors immediately.
183 - -- But that i find distracting while typing.
184 - -- Disable the error highlight while typing, but keep it in normal mode.
185 - auto 'disable_error_highlight_while_typing' {
186 - {
187 - description = 'Disable the @error highlight while in Insert mode',
188 - events = 'InsertEnter',
189 - pattern = '*',
190 - command = function()
191 - want { 'nvim-treesitter.highlight' } (function(highlight)
192 - pcall(highlight.stop)
193 - pcall(highlight.set_custom_captures, { error = 'None' })
194 - pcall(highlight.start)
195 - end)
196 - end,
197 - },
198 - {
199 - description = 'Enable the @error highlight while in Normal mode',
200 - events = 'InsertLeave',
201 - pattern = '*',
202 - command = function()
203 - want { 'nvim-treesitter.highlight' } (function(highlight)
204 - pcall(highlight.stop)
205 - pcall(highlight.set_custom_captures, { error = 'TSError' })
206 - pcall(highlight.start)
207 - end)
208 - end,
209 - },
210 - }
211 -end)

neovim/lua/bugabinga/trim.lua

Added
new file mode 100644
1 +-- If invoked as a preview callback, performs 'inccommand' preview by
2 +-- highlighting trailing whitespace in the current buffer.
3 +local function trim_space_preview(opts, preview_ns, preview_buf)
4 + vim.cmd('hi clear Whitespace')
5 + local line1 = opts.line1
6 + local line2 = opts.line2
7 + local buf = vim.api.nvim_get_current_buf()
8 + local lines = vim.api.nvim_buf_get_lines(buf, line1 - 1, line2, false)
9 + local preview_buf_line = 0
10 + for i, line in ipairs(lines) do
11 + local start_idx, end_idx = string.find(line, '%s+$')
12 + if start_idx then
13 + -- Highlight the match
14 + vim.api.nvim_buf_add_highlight(
15 + buf,
16 + preview_ns,
17 + 'Substitute',
18 + line1 + i - 2,
19 + start_idx - 1,
20 + end_idx
21 + )
22 + -- Add lines and set highlights in the preview buffer
23 + -- if inccommand=split
24 + if preview_buf then
25 + local prefix = string.format('|%d| ', line1 + i - 1)
26 + vim.api.nvim_buf_set_lines(
27 + preview_buf,
28 + preview_buf_line,
29 + preview_buf_line,
30 + false,
31 + { prefix .. line }
32 + )
33 + vim.api.nvim_buf_add_highlight(
34 + preview_buf,
35 + preview_ns,
36 + 'Substitute',
37 + preview_buf_line,
38 + #prefix + start_idx - 1,
39 + #prefix + end_idx
40 + )
41 + preview_buf_line = preview_buf_line + 1
42 + end
43 + end
44 + end
45 + -- Return the value of the preview type
46 + return 2
47 +end
48 +-- Trims all trailing whitespace in the current buffer.
49 +local function trim_space(opts)
50 + local line1 = opts.line1
51 + local line2 = opts.line2
52 + local buf = vim.api.nvim_get_current_buf()
53 + local lines = vim.api.nvim_buf_get_lines(buf, line1 - 1, line2, false)
54 + local new_lines = {}
55 + for i, line in ipairs(lines) do
56 + new_lines[i] = string.gsub(line, '%s+$', '')
57 + end
58 + vim.api.nvim_buf_set_lines(buf, line1 - 1, line2, false, new_lines)
59 +end
60 +-- Create the user command
61 +vim.api.nvim_create_user_command(
62 + 'TrimTrailingWhitespace',
63 + trim_space,
64 + { nargs = '?', range = '%', addr = 'lines', preview = trim_space_preview }

neovim/lua/bugabinga/windows.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want {
3 - 'focus',
4 - 'stabilize',
5 -} (function(focus, stabilize)
7 - local excluded_filetypes = { 'lsp-installer', 'toggleterm', 'qf', 'help', 'Trouble', 'neo-tree' }
8 - focus.setup {
9 - excluded_filetypes = excluded_filetypes,
10 - excluded_buftypes = { 'nofile', 'prompt', 'popup', 'help', 'terminal' },
11 - compatible_filetrees = { 'neo-tree' },
12 - cursorline = false,
13 - signcolumn = false,
14 - }
16 - stabilize.setup()
17 -end)

neovim/lua/std/auto.lua

Added
new file mode 100644
1 +-- Wrapper over `vim.api.nvim_create_autocmd` for automatic grouping and idempotency.
2 +return function(group_name)
3 + local group = vim.api.nvim_create_augroup(group_name, { clear = true })
4 + return function(list_of_autocommands)
5 + if list_of_autocommands.events then
6 + list_of_autocommands = { list_of_autocommands }
7 + end
8 + for _, autocommand in pairs(list_of_autocommands) do
9 + -- command and callback are mutually exclusive.
10 + -- one of them has to be nil
11 + local command = nil
12 + local callback = nil
13 + if type(autocommand.command) == 'function' then
14 + callback = autocommand.command
15 + else
16 + command = autocommand.command
17 + end
18 + vim.api.nvim_create_autocmd(autocommand.events, {
19 + desc = autocommand.description,
20 + group = group,
21 + pattern = autocommand.pattern,
22 + command = command,
23 + callback = callback,
24 + })
25 + end
26 + end
27 +end

neovim/lua/std/check_parameter.lua

Added
new file mode 100644
1 +-- asserts if given value is of given types
2 +return function(value, function_name, parameter_name, ...)
3 + assert(
4 + type(function_name) == 'string',
5 + 'the parameter function_name to function check_parameter cannot be nil and must be string'
6 + )
7 + assert(
8 + type(parameter_name) == 'string',
9 + 'the parameter parameter_name to function check_parameter cannot be nil and must be string'
10 + )
12 + local prelude = 'the parameter ' .. parameter_name .. ' to function ' .. function_name
14 + assert(value, prelude .. ' cannot be nil!')
16 + local actual_type = type(value)
17 + local type_check = false
19 + local arg = { ... } -- we are still lua version 5.1 in here...
20 + -- if no types are given, we pass
21 + if vim.tbl_isempty(arg) then
22 + return value
23 + end
25 + for _, expected_type in ipairs(arg) do
26 + local same_type = actual_type == expected_type
27 + type_check = type_check or same_type
28 + end
30 + assert(type_check, prelude .. ' must be one of ' .. vim.inspect(arg) .. ', but is ' .. actual_type .. '.')
32 + return value
33 +end

neovim/lua/std/keymap.lua

Added
new file mode 100644
1 +local want = require 'std.want'
2 +local check_parameter = require 'std.check_parameter'
4 +local available_modes = {
5 + normal_visual_select_operator_pending = '',
7 + normal = 'n',
8 + n = 'n',
10 + insert = 'i',
11 + i = 'i',
13 + visual = 'x',
14 + x = 'x',
16 + visual_select = 'v',
17 + v = 'v',
19 + select = 's',
20 + s = 's',
22 + operator_pending = 'o',
23 + o = 'o',
25 + ['!'] = '!',
26 + insert_command_line = '!',
28 + command_line = 'c',
29 + c = 'c',
31 + terminal = 't',
32 + t = 't',
35 +local bind = function(self, map)
36 + local keys = check_parameter(map.keys, 'bind', 'map.keys', 'string')
37 + local command = check_parameter(map.command, 'bind', 'map.command', 'function', 'string')
39 + map.visible = map.visible == nil or map.visible
40 + map.options = map.options or {}
42 + if map.category and map.description then
43 + map.description = map.category .. ': ' .. map.description
44 + end
46 + local options = vim.tbl_extend('keep', map.options, {
47 + silent = true,
48 + desc = map.description,
49 + -- our custom option to be filtered by some time later
50 + visible = visible,
51 + })
53 + if vim.tbl_isempty(self.mode) then self.mode[1] = available_modes.normal_visual_select_operator_pending end
54 + vim.keymap.set(self.mode, keys, command, options)
55 + self.mode = {}
56 +end
58 +local add_mode = function(self, key)
59 + local new_mode = available_modes[key]
60 + if new_mode == nil then error('unknown keymap mode requested: ' .. key) end
61 + if not self.mode[new_mode] then
62 + table.insert(self.mode, new_mode)
63 + end
64 + return self
65 +end
67 +return setmetatable(
69 + mode = {},
70 +},
72 + __index = add_mode,
73 + __call = bind,
74 +})

neovim/lua/std/project.lua

Added
new file mode 100644
1 +--- Determines the path to a root directory, starting from the given directory.
2 +-- Markers have a name and weight.
3 +-- Each name is checked for existence in all directories up to the root.
4 +-- The sum of all markers and their weight determines a directories score.
5 +-- The directory with the highest score will be returned.
6 +--
7 +-- ## Example
8 +-- Assuming you want to determine the root of your current buffer, that is part
9 +-- of some project.
10 +-- Buffer: `/home/user/workspace/some\_project/a/b/c/d/the\_buffer.c`
11 +-- Project root: `/home/user/workspace/some\_project`
12 +-- -> contains `.git`, `README` and `Makefile`
13 +--
14 +-- ```lua
15 +-- local project = require'std.project'
16 +-- local current_buffer = vim.api.nvim_buf_get_name(0)
17 +-- local markers = {
18 +-- { name = ".git", weight = 1 },
19 +-- { name = "README", weight = 2 },
20 +-- { naem = "Makefile", weight = 3 },
21 +-- }
22 +-- local root = project.determine_root(current_buffer, markers, "~")
23 +-- print(root) -- /home/user/workspace/some_project
24 +-- ```
25 +---@param directory string The starting directory, from where to begin the search.
26 +---@param markers table<string,number> List of markers, that define the root, that is searched for.
27 +---@param root string The last directory on the path to root, when to stop searching. Usually '/' or '~'.
28 +---@return string? #A directory, that contains the `markers` and lies on the path from `directory` to `root`.
29 +local function determine_root(directory, markers, root)
30 + local dirname = function(path)
31 + return vim.fn.fnamemodify(path, ':h')
32 + end
33 + local exists = function(path)
34 + return vim.loop.fs_stat(path)
35 + end
36 + local directory_scores = {}
37 + local current_distance_to_buffer = 0
38 + --traverse the path to root and check every directory on the way for files
39 + --that are named like the given markers. if markers exist, add those to the
40 + --score of the directory. scores of all directories with markers will be
41 + --processes later.
42 + --the root itself never gets checked for markers!
43 + -- stop if we reached the user defined root instead of the file system root
44 + while directory ~= root do
45 + local score = {
46 + path = directory,
47 + marker_count = 0,
48 + distance_to_buffer_file = current_distance_to_buffer,
49 + markers = {},
50 + }
52 + for _, marker in ipairs(markers) do
53 + local marker_path = directory .. '/' .. marker.name
54 + if exists(marker_path) then
55 + score.marker_count = score.marker_count + marker.weight
56 + table.insert(score.markers, marker_path)
57 + end
58 + end
60 + if score.marker_count > 0 then
61 + table.insert(directory_scores, score)
62 + end
64 + directory = dirname(directory)
65 + current_distance_to_buffer = current_distance_to_buffer + 1
66 + end
68 + local project_root = nil
69 + local max_likelyhood = 0
70 + -- the project root is most likely the directory with the highest marker count
71 + -- and distance to current buffer.
72 + -- because if there are markers further away from the buffer than other markers,
73 + -- then it is most likely a nested project structure (multi-module).
74 + -- in those cases we are looking for the root project folder, instead the nearest
75 + -- child project root folder.
76 + for _, score in ipairs(directory_scores) do
77 + local likelihood = score.marker_count + score.distance_to_buffer_file
78 + if likelihood > max_likelyhood then
79 + max_likelyhood = likelihood
80 + project_root = score.path
81 + end
82 + end
83 + return project_root
84 +end
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<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 +---@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|nil project_root The project root of the current buffer, or `nil`, if none could be determined.
90 +local function determine_project_root(custom_markers, custom_root)
91 + -- glob expands user defined root and checks, that it exists
92 + ---@diagnostic disable-next-line: missing-parameter
93 + local root = vim.fn.glob(custom_root)
94 + if root == '' then
95 + vim.notify('the custom root ' .. custom_root .. ' does not exist!', 'error')
96 + return nil
97 + end
98 + -- define some language-independent markers
99 + local markers = {
100 + { name = '.git', weight = 1 },
101 + { name = '.gitignore', weight = 1 },
102 + { name = '.svn', weight = 1 },
103 + { name = 'justfile', weight = 1 },
104 + { name = 'Jenkinsfile', weight = 1 },
105 + { name = '.editorconfig', weight = 1 },
106 + { name = 'LICENSE', weight = 1 },
107 + { name = 'LICENSE.txt', weight = 1 },
108 + { name = 'COPYING', weight = 1 },
109 + { name = 'README', weight = 1 },
110 + { name = 'README.md', weight = 1 },
112 + markers = vim.tbl_deep_extend('force', markers, custom_markers)
114 + local buffer_name = vim.api.nvim_buf_get_name(0)
115 + local directory_name = vim.fn.fnamemodify(buffer_name, ':p:h')
116 + return determine_root(directory_name, markers, root)
117 +end
119 +local java_markers = {
120 + { name = '.idea', weight = 2 },
121 + { name = '.classpath', weight = 2 },
122 + { name = '.settings', weight = 2 },
123 + { name = '.project', weight = 2 },
124 + { name = 'target', weight = 2 },
125 + { name = 'pom.xml', weight = 2 },
126 + { name = 'mvnw', weight = 3 },
127 + { name = '.mvn', weight = 3 },
128 + { name = 'mvnw.cmd', weight = 3 },
129 + { name = 'build.gradle', weight = 2 },
130 + { name = 'gradle.properties', weight = 3 },
131 + { name = 'settings.gradle', weight = 3 },
132 + { name = 'gradlew', weight = 3 },
133 + { name = 'gradlew.bat', weight = 3 },
135 +local function determine_java_project_root(user_root)
136 + return determine_project_root(java_markers, user_root)
137 +end
139 +local function is_java_project_root(directory, user_root)
140 + -- avoid determine_project_root to __not__ check non-java markers
141 + return determine_root(directory, java_markers, user_root) ~= nil
142 +end
144 +return {
145 + is_java_project_root = is_java_project_root,
146 + determine_root = determine_root,
147 + determine_project_root = determine_project_root,
148 + determine_java_project_root = determine_java_project_root,

neovim/lua/std/string.lua

Added
new file mode 100644
1 +local function is_blank(string)
2 + return string == nil or string == '' or vim.trim(string) == ''
3 +end
5 +return {
6 + is_blank = is_blank,
7 +}

neovim/lua/std/timeago.lua

Added
new file mode 100644
1 +--- credit goes to https://github.com/f-person/lua-timeago
2 +local _ = {}
4 +local words = {
5 + justnow = 'just now',
6 + minute = {singular = 'a minute ago', plural = 'minutes ago'},
7 + hour = {singular = 'an hour ago', plural = 'hours ago'},
8 + day = {singular = 'a day ago', plural = 'days ago'},
9 + week = {singular = 'a week ago', plural = 'weeks ago'},
10 + month = {singular = 'a month ago', plural = 'months ago'},
11 + year = {singular = 'a year ago', plural = 'years ago'}
14 +---@param num number
15 +---@return number
16 +local function round(num) return math.floor(num + 0.5) end
18 +---@param time osdate
19 +---@return string
20 +function _.format(time)
21 + local now = os.time()
22 + local diff_seconds = os.difftime(now, time)
23 + if diff_seconds < 45 then return words.justnow end
25 + local diff_minutes = diff_seconds / 60
26 + if diff_minutes < 1.5 then return words.minute.singular end
27 + if diff_minutes < 59.5 then
28 + return round(diff_minutes) .. ' ' .. words.minute.plural
29 + end
31 + local diff_hours = diff_minutes / 60
32 + if diff_hours < 1.5 then return words.hour.singular end
33 + if diff_hours < 23.5 then
34 + return round(diff_hours) .. ' ' .. words.hour.plural
35 + end
37 + local diff_days = diff_hours / 24
38 + if diff_days < 1.5 then return words.day.singular end
39 + if diff_days < 7.5 then
40 + return round(diff_days) .. ' ' .. words.day.plural
41 + end
43 + local diff_weeks = diff_days / 7
44 + if diff_weeks < 1.5 then return words.week.singular end
45 + if diff_weeks < 4.5 then
46 + return round(diff_weeks) .. ' ' .. words.week.plural
47 + end
49 + local diff_months = diff_days / 30
50 + if diff_months < 1.5 then return words.month.singular end
51 + if diff_months < 11.5 then
52 + return round(diff_months) .. ' ' .. words.month.plural
53 + end
55 + local diff_years = diff_days / 365.25
56 + if diff_years < 1.5 then return words.year.singular end
57 + return round(diff_years) .. ' ' .. words.year.plural
58 +end
60 +return _

neovim/lua/std/want.lua

Added
new file mode 100644
1 +--- attempts to import modules with the given names.
2 +---@param module_names table name or list of names, or a function that returns those
3 +---@return function function that takes a function that takes in the modules listed by `module_names`
4 +return function(module_names)
5 + return function(block, error_handler)
6 + local loaded_modules = {}
7 + local failed_modules = {}
8 + if type(module_names) == "string" then
9 + module_names = { module_names }
10 + end
11 + for _, name in pairs(module_names) do
12 + local status_ok, module = pcall(require, name)
13 + if status_ok then
14 + table.insert(loaded_modules, module)
15 + else
16 + table.insert(failed_modules, module)
17 + end
18 + end
19 + for _, module in pairs(failed_modules) do
20 + vim.notify('A wanted module failed to load: ' .. module, 'error')
21 + end
22 + if #failed_modules > 0 then
23 + return error_handler and error_handler(unpack(failed_modules))
24 + end
25 + return block and block(unpack(loaded_modules))
26 + end
27 +end

neovim/startuptime/PC-00625_2022_07_12_16_12_52.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 562.496460 msec
5 -Total Max: 1585.781000 msec
6 -Total Min: 519.953000 msec
8 - AVERAGE MAX MIN
9 -----------------------------------
10 -355.504310 393.805000 349.452000: C:\Users\okr\AppData\Local\nvim\init.lua
11 - 47.755390 54.639000 46.358000: loading packages
12 - 30.665520 1026.239000 0.025000: clearing screen
13 - 30.275560 34.237000 29.354000: loading after plugins
14 - 23.631680 26.871000 22.959000: loading rtp plugins
15 - 18.165780 20.652000 17.514000: sourcing vimrc file(s)
16 - 14.961400 18.276000 14.618000: locale set
17 - 3.883240 26.743000 3.024000: X:\nvim-win64\share\nvim\runtime\syntax\syntax.vim
18 - 3.756000 4.246000 3.509000: reading ShaDa
19 - 2.691210 4.113000 1.621000: opening buffers
20 - 2.552880 4.246000 1.415000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-treesitter-textobjects\plugin\nvim-treesitter-textobjects.vim
21 - 2.251260 4.354000 1.395000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\symbols-outline.nvim\plugin\symbols-outline.vim
22 - 2.119760 3.331000 2.027000: init lua interpreter
23 - 1.726640 2.923000 1.207000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-treesitter\plugin\nvim-treesitter.lua
24 - 1.632390 2.462000 1.513000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-gomove\plugin\gomove.lua
25 - 1.280670 2.975000 0.815000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-ts-autotag\plugin\nvim-ts-autotag.vim
26 - 1.177240 1.903000 0.707000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-buffer\after\plugin\cmp_buffer.lua
27 - 1.020150 1.724000 0.574000: BufEnter autocommands
28 - 0.906810 2.112000 0.596000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-treesitter-refactor\plugin\nvim-treesitter-refactor.vim
29 - 0.833230 1.424000 0.659000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-cmp\plugin\cmp.lua
30 - 0.820050 2.227000 0.482000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\playground\plugin\nvim-treesitter-playground.lua
31 - 0.809010 1.121000 0.751000: X:\nvim-win64\share\nvim\runtime\plugin\rplugin.vim
32 - 0.764190 0.920000 0.738000: inits 1
33 - 0.752970 3.076000 0.653000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\indent-blankline.nvim\plugin\indent_blankline.vim
34 - 0.743320 1.212000 0.707000: init highlight
35 - 0.729510 1.498000 0.524000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\Comment.nvim\after\plugin\Comment.lua
36 - 0.703870 1.462000 0.363000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\telescope.nvim\plugin\telescope.lua
37 - 0.594040 0.744000 0.567000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\LuaSnip\plugin\luasnip.vim
38 - 0.536050 1.901000 0.330000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-treesitter-textsubjects\plugin\nvim-treesitter-textsubjects.vim
39 - 0.504390 1.412000 0.300000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp_luasnip\after\plugin\cmp_luasnip.lua
40 - 0.496140 1.048000 0.296000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-path\after\plugin\cmp_path.lua
41 - 0.447240 1.228000 0.283000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-nvim-lsp-document-symbol\after\plugin\cmp_nvim_lsp_document_symbol.lua
42 - 0.429120 2.156000 0.259000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-ts-context-commentstring\plugin\ts_context_commentstring.vim
43 - 0.349820 0.496000 0.334000: X:\nvim-win64\share\nvim\runtime\plugin\matchparen.vim
44 - 0.329620 1.157000 0.272000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-lspconfig\plugin\lspconfig.vim
45 - 0.324080 0.486000 0.258000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\leap.nvim\plugin\init.lua
46 - 0.314960 0.517000 0.297000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\registers.nvim\plugin\registers.vim
47 - 0.268890 0.316000 0.253000: parsing arguments
48 - 0.262490 0.385000 0.249000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-lsp-installer\plugin\nvim-lsp-installer.vim
49 - 0.256090 0.481000 0.219000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-dap\plugin\dap.lua
50 - 0.234540 0.667000 0.161000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-nvim-lua\after\plugin\cmp_nvim_lua.lua
51 - 0.225040 0.344000 0.201000: X:\nvim-win64\share\nvim\runtime\syntax\synload.vim
52 - 0.221280 0.321000 0.203000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\trouble.nvim\plugin\trouble.vim
53 - 0.219480 0.334000 0.175000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-nvim-lsp\after\plugin\cmp_nvim_lsp.lua
54 - 0.202700 0.318000 0.181000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-hlslens\plugin\hlslens.vim
55 - 0.200650 0.336000 0.183000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\plenary.nvim\plugin\plenary.vim
56 - 0.193350 0.263000 0.175000: X:\nvim-win64\share\nvim\runtime\ftplugin.vim
57 - 0.191050 0.282000 0.158000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\dressing.nvim\plugin\dressing.lua
58 - 0.190790 0.304000 0.154000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\hydra.nvim\plugin\hydra.lua
59 - 0.188280 0.272000 0.166000: X:\nvim-win64\share\nvim\runtime\plugin\shada.vim
60 - 0.181660 0.247000 0.167000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-colorizer.lua\plugin\colorizer.vim
61 - 0.171450 0.265000 0.156000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\todo-comments.nvim\plugin\todo.vim
62 - 0.162920 0.242000 0.132000: X:\nvim-win64\share\nvim\runtime\filetype.lua
63 - 0.162760 0.209000 0.151000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\FixCursorHold.nvim\plugin\fix_cursorhold_nvim.vim
64 - 0.159750 0.227000 0.149000: X:\nvim-win64\share\nvim\runtime\plugin\man.vim
65 - 0.153340 0.224000 0.139000: early init
66 - 0.149940 0.181000 0.134000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\editorconfig.nvim\plugin\editorconfig.vim
67 - 0.138090 0.216000 0.128000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\neo-tree.nvim\plugin\neo-tree.vim
68 - 0.134970 0.183000 0.124000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-jdtls\plugin\nvim_jdtls.vim
69 - 0.134470 0.206000 0.124000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-web-devicons\plugin\nvim-web-devicons.vim
70 - 0.125430 0.174000 0.112000: expanding arguments
71 - 0.121850 0.171000 0.112000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\lsp-zero.nvim\plugin\lsp-zero.vim
72 - 0.115350 0.174000 0.103000: X:\nvim-win64\share\nvim\runtime\indent.vim
73 - 0.114840 0.145000 0.097000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\filetype.nvim\filetype.vim
74 - 0.110730 0.175000 0.100000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\rust-tools.nvim\plugin\rust-tools.vim
75 - 0.110520 0.152000 0.098000: event init
76 - 0.099530 0.133000 0.090000: X:\nvim-win64\share\nvim\runtime\plugin\tutor.vim
77 - 0.096090 0.124000 0.083000: X:\nvim-win64\share\nvim\runtime\plugin\gzip.vim
78 - 0.088080 0.114000 0.080000: X:\nvim-win64\share\nvim\runtime\plugin\matchit.vim
79 - 0.085650 0.121000 0.075000: X:\nvim-win64\share\nvim\runtime\plugin\netrwPlugin.vim
80 - 0.081660 0.097000 0.075000: X:\nvim-win64\share\nvim\runtime\plugin\health.vim
81 - 0.080480 0.107000 0.073000: X:\nvim-win64\share\nvim\runtime\plugin\zipPlugin.vim
82 - 0.075930 0.118000 0.063000: inits 2
83 - 0.075870 0.098000 0.069000: X:\nvim-win64\share\nvim\runtime\plugin\tarPlugin.vim
84 - 0.075490 0.089000 0.070000: init first window
85 - 0.073230 0.111000 0.066000: X:\nvim-win64\share\nvim\runtime\plugin\tohtml.vim
86 - 0.073170 0.090000 0.063000: X:\nvim-win64\share\nvim\runtime\filetype.vim
87 - 0.069790 0.091000 0.064000: X:\nvim-win64\share\nvim\runtime\plugin\spellfile.vim
88 - 0.053930 0.084000 0.052000: inits 3
89 - 0.046200 0.075000 0.042000: init default mappings
90 - 0.040760 0.057000 0.033000: window checked
91 - 0.029110 0.044000 0.024000: init default autocommands
92 - 0.024520 0.038000 0.019000: --- NVIM STARTING ---
93 - 0.009840 0.015000 0.007000: editing files in windows

neovim/startuptime/pop-os_2022_06_27_22_55_04.txt

Deleted
deleted file mode 100644
1 -Extra options: []
2 -Measured: 100 times
4 -Total Average: 331.172950 msec
5 -Total Max: 352.149000 msec
6 -Total Min: 306.252000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -307.521190 330.974000 284.884000: /home/oli/.config/nvim/init.lua
11 - 3.422020 3.642000 3.276000: loading packages
12 - 2.369060 2.458000 2.306000: reading ShaDa
13 - 2.077570 2.180000 2.017000: loading after plugins
14 - 2.012750 2.855000 1.453000: sourcing vimrc file(s)
15 - 1.737830 1.806000 1.679000: loading rtp plugins
16 - 1.126530 3.355000 0.622000: BufEnter autocommands
17 - 1.070670 3.343000 0.555000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
18 - 1.004860 2.905000 0.531000: opening buffers
19 - 0.856200 1.747000 0.468000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.625880 1.865000 0.317000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 - 0.554460 0.777000 0.359000: init lua interpreter
22 - 0.482870 2.511000 0.221000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 - 0.478990 0.907000 0.285000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
24 - 0.465800 0.697000 0.309000: init highlight
25 - 0.389180 0.719000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 - 0.349130 0.454000 0.331000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 - 0.328630 2.387000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 - 0.296410 0.474000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.274270 0.382000 0.177000: inits 1
30 - 0.263810 0.517000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.229890 0.545000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 - 0.202600 0.389000 0.115000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 - 0.201010 0.367000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
34 - 0.193030 0.258000 0.124000: locale set
35 - 0.187260 0.372000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
36 - 0.168260 0.358000 0.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 - 0.153220 0.238000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 - 0.150440 0.426000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
39 - 0.140270 0.461000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
40 - 0.131330 1.773000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 - 0.114560 0.285000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 - 0.114290 2.125000 0.054000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
43 - 0.099120 0.112000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
44 - 0.094840 0.102000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
45 - 0.092760 0.104000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
46 - 0.067260 0.159000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 - 0.062900 0.149000 0.056000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
48 - 0.062610 0.075000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
49 - 0.057590 0.134000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 - 0.051430 0.128000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 - 0.051260 0.150000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 - 0.046760 0.060000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 - 0.043600 0.140000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
54 - 0.042590 0.071000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 - 0.042170 0.050000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 - 0.041530 0.050000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
57 - 0.038980 0.056000 0.027000: expanding arguments
58 - 0.037830 0.050000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 - 0.037140 0.105000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua
60 - 0.036810 0.047000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 - 0.035760 0.048000 0.026000: inits 2
62 - 0.032930 0.053000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
63 - 0.031470 0.059000 0.021000: init default autocommands
64 - 0.026690 0.036000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
65 - 0.026600 0.036000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
66 - 0.025910 0.034000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 - 0.025600 0.047000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
68 - 0.024870 0.034000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
69 - 0.024690 0.047000 0.017000: init default mappings
70 - 0.023230 0.035000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
71 - 0.021890 0.028000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
72 - 0.018360 0.023000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
73 - 0.018290 0.022000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 - 0.017450 0.020000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
75 - 0.017320 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 - 0.015020 0.024000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
77 - 0.013280 0.014000 0.012000: clearing screen
78 - 0.011600 0.027000 0.007000: window checked
79 - 0.011560 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 - 0.011090 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
81 - 0.011090 0.016000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
82 - 0.010850 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
83 - 0.010170 0.023000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
84 - 0.010040 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
85 - 0.010020 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 - 0.008590 0.010000 0.008000: inits 3
87 - 0.007350 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
88 - 0.007160 0.020000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
89 - 0.007110 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 - 0.006290 0.012000 0.003000: --- NVIM STARTING ---
91 - 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
92 - 0.006030 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
93 - 0.003740 0.005000 0.002000: parsing arguments
94 - 0.002520 0.004000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_06_27_23_03_04.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 330.615290 msec
5 -Total Max: 355.357000 msec
6 -Total Min: 301.008000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -307.381920 334.373000 279.389000: /home/oli/.config/nvim/init.lua
11 - 3.440430 4.784000 3.275000: loading packages
12 - 2.353600 2.481000 2.296000: reading ShaDa
13 - 2.075510 2.170000 1.997000: loading after plugins
14 - 2.074950 2.849000 1.466000: sourcing vimrc file(s)
15 - 1.746160 1.990000 1.676000: loading rtp plugins
16 - 0.990800 2.497000 0.589000: BufEnter autocommands
17 - 0.965770 2.395000 0.596000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
18 - 0.962600 3.130000 0.571000: opening buffers
19 - 0.806170 1.760000 0.514000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.602480 1.832000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 - 0.574290 0.770000 0.356000: init lua interpreter
22 - 0.474910 0.687000 0.308000: init highlight
23 - 0.457310 0.951000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
24 - 0.427760 1.232000 0.228000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
25 - 0.372910 0.744000 0.214000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 - 0.349060 0.476000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 - 0.315580 2.557000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 - 0.288960 0.469000 0.225000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.283110 0.378000 0.174000: inits 1
30 - 0.248550 0.509000 0.114000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.228050 0.620000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 - 0.198670 0.419000 0.117000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 - 0.195630 0.288000 0.119000: locale set
34 - 0.193340 0.306000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 - 0.178010 0.463000 0.098000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
36 - 0.162760 0.304000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 - 0.155470 2.230000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
38 - 0.152080 0.197000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
39 - 0.147940 0.466000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
40 - 0.112340 0.321000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 - 0.108000 0.269000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 - 0.098540 0.125000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 - 0.096280 0.186000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 - 0.093590 0.121000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 - 0.091060 0.205000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 - 0.064190 0.173000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 - 0.062610 0.082000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 - 0.061880 0.085000 0.057000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 - 0.054680 0.127000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 - 0.052210 0.209000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 - 0.049170 0.110000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 - 0.048380 0.066000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 - 0.043490 0.086000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
54 - 0.042190 0.053000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
55 - 0.041140 0.052000 0.038000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
56 - 0.040890 0.075000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
57 - 0.040050 0.055000 0.026000: expanding arguments
58 - 0.038620 0.049000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 - 0.038000 0.051000 0.026000: inits 2
60 - 0.036540 0.049000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 - 0.034590 0.101000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 - 0.032030 0.045000 0.020000: parsing arguments
63 - 0.030900 0.060000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
64 - 0.030260 0.044000 0.019000: init default autocommands
65 - 0.027450 0.035000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 - 0.026320 0.048000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 - 0.026220 0.042000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
68 - 0.025520 0.036000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
69 - 0.024770 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
70 - 0.024310 0.034000 0.016000: init default mappings
71 - 0.023160 0.027000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
72 - 0.022360 0.034000 0.020000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
73 - 0.018510 0.029000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 - 0.018310 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 - 0.016870 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
76 - 0.016690 0.028000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
77 - 0.014930 0.016000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 - 0.013720 0.026000 0.012000: clearing screen
79 - 0.011690 0.020000 0.007000: window checked
80 - 0.011570 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
81 - 0.011180 0.016000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
82 - 0.011130 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
83 - 0.011100 0.015000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
84 - 0.010190 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
85 - 0.010150 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 - 0.009940 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 - 0.008680 0.012000 0.008000: inits 3
88 - 0.007550 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 - 0.007100 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 - 0.007040 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 - 0.006270 0.012000 0.003000: --- NVIM STARTING ---
92 - 0.006250 0.019000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
93 - 0.006200 0.015000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
94 - 0.002470 0.003000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_06_27_23_18_10.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 330.425160 msec
5 -Total Max: 353.171000 msec
6 -Total Min: 306.636000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -307.146770 332.320000 285.215000: /home/oli/.config/nvim/init.lua
11 - 3.417290 3.626000 3.284000: loading packages
12 - 2.347780 2.534000 2.299000: reading ShaDa
13 - 2.076240 2.368000 1.996000: loading after plugins
14 - 2.030220 2.687000 1.435000: sourcing vimrc file(s)
15 - 1.742430 1.887000 1.693000: loading rtp plugins
16 - 1.027430 3.641000 0.572000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
17 - 1.022760 2.227000 0.594000: BufEnter autocommands
18 - 0.970310 3.310000 0.530000: opening buffers
19 - 0.797970 1.728000 0.526000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.632780 2.606000 0.320000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 - 0.560600 0.775000 0.362000: init lua interpreter
22 - 0.466050 0.680000 0.308000: init highlight
23 - 0.440650 1.171000 0.227000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
24 - 0.436120 0.912000 0.268000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
25 - 0.373980 0.766000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 - 0.347830 0.475000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 - 0.302180 0.884000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 - 0.287140 0.487000 0.224000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.279180 0.367000 0.176000: inits 1
30 - 0.251830 0.573000 0.137000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.251160 2.157000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 - 0.200730 2.431000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
33 - 0.198670 0.267000 0.119000: locale set
34 - 0.197260 0.352000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 - 0.194680 0.410000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
36 - 0.161590 0.287000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
37 - 0.160300 2.336000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
38 - 0.150740 0.216000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
39 - 0.149110 0.397000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
40 - 0.114480 0.321000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
41 - 0.107320 0.252000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 - 0.098290 0.114000 0.095000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 - 0.093800 0.115000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 - 0.093220 0.106000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 - 0.088560 0.278000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 - 0.063790 0.174000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 - 0.062230 0.074000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 - 0.061600 0.083000 0.058000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 - 0.053980 0.135000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 - 0.051870 0.141000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 - 0.048220 0.077000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
52 - 0.047910 0.117000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
53 - 0.042600 0.093000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
54 - 0.042500 0.059000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 - 0.042050 0.048000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 - 0.040890 0.047000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
57 - 0.039820 0.069000 0.027000: expanding arguments
58 - 0.038420 0.062000 0.026000: inits 2
59 - 0.038000 0.047000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
60 - 0.037020 0.053000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 - 0.035180 0.116000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 - 0.031620 0.057000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
63 - 0.031240 0.045000 0.020000: parsing arguments
64 - 0.030480 0.045000 0.020000: init default autocommands
65 - 0.027760 0.037000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 - 0.026370 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 - 0.026020 0.035000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
68 - 0.025180 0.037000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
69 - 0.024910 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
70 - 0.024180 0.042000 0.016000: init default mappings
71 - 0.023240 0.032000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
72 - 0.022390 0.031000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
73 - 0.018430 0.025000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 - 0.018260 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 - 0.016700 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 - 0.016490 0.018000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
77 - 0.014980 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 - 0.013480 0.016000 0.012000: clearing screen
79 - 0.011540 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 - 0.011510 0.028000 0.007000: window checked
81 - 0.011180 0.023000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
82 - 0.011160 0.015000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
83 - 0.011140 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
84 - 0.010120 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
85 - 0.010100 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
86 - 0.009850 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 - 0.008620 0.011000 0.008000: inits 3
88 - 0.007590 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 - 0.007020 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 - 0.006950 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 - 0.006710 0.026000 0.003000: --- NVIM STARTING ---
92 - 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
93 - 0.006060 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
94 - 0.002450 0.004000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_07_01_08_21_04.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 376.647480 msec
5 -Total Max: 525.463000 msec
6 -Total Min: 326.733000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -351.036030 495.908000 302.524000: /home/oli/.config/nvim/init.lua
11 - 3.742540 5.409000 3.379000: loading packages
12 - 2.315700 3.534000 2.103000: loading after plugins
13 - 2.157970 3.112000 1.969000: reading ShaDa
14 - 1.926810 2.824000 1.760000: loading rtp plugins
15 - 1.732090 2.865000 1.497000: sourcing vimrc file(s)
16 - 1.463530 5.282000 0.632000: BufEnter autocommands
17 - 1.242990 4.378000 0.628000: opening buffers
18 - 1.236160 3.062000 0.580000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 - 0.976180 2.051000 0.492000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.798470 4.448000 0.336000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 - 0.556210 2.669000 0.281000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
22 - 0.536990 1.617000 0.253000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 - 0.469820 1.465000 0.245000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
24 - 0.452370 0.770000 0.365000: init lua interpreter
25 - 0.410070 1.413000 0.167000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
26 - 0.386820 0.582000 0.346000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 - 0.370270 0.665000 0.313000: init highlight
28 - 0.336400 0.943000 0.233000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.313920 0.957000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
30 - 0.288870 0.811000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
31 - 0.261680 3.093000 0.162000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
32 - 0.246690 0.701000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 - 0.237170 0.375000 0.184000: inits 1
34 - 0.217510 0.467000 0.103000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
35 - 0.212330 2.398000 0.075000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
36 - 0.186570 0.619000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
37 - 0.169360 0.275000 0.143000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 - 0.164370 0.266000 0.115000: locale set
39 - 0.148910 0.499000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
40 - 0.148160 0.376000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
41 - 0.131150 0.386000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
42 - 0.106800 0.237000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
43 - 0.105320 0.154000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 - 0.103450 0.158000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
45 - 0.101260 0.176000 0.091000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
46 - 0.083850 0.352000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
47 - 0.070640 0.114000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 - 0.070380 0.107000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 - 0.070220 0.243000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 - 0.065360 0.244000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 - 0.057890 0.191000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
52 - 0.054230 0.172000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
53 - 0.050080 0.115000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
54 - 0.049010 0.073000 0.043000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
55 - 0.045760 0.077000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 - 0.044620 0.219000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
57 - 0.043640 0.071000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
58 - 0.041980 0.060000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
59 - 0.041860 0.085000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
60 - 0.040470 0.077000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
61 - 0.037150 0.060000 0.026000: expanding arguments
62 - 0.033490 0.068000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
63 - 0.033420 0.063000 0.026000: inits 2
64 - 0.031720 0.074000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
65 - 0.031040 0.063000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
66 - 0.028660 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 - 0.027780 0.045000 0.019000: init default autocommands
68 - 0.027310 0.055000 0.021000: parsing arguments
69 - 0.025100 0.114000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
70 - 0.024740 0.054000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
71 - 0.023080 0.040000 0.019000: /home/oli/.local/share/nvim/runtime/indent.vim
72 - 0.021220 0.036000 0.017000: init default mappings
73 - 0.021000 0.033000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim
74 - 0.020850 0.043000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
75 - 0.019810 0.037000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
76 - 0.018630 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
77 - 0.015910 0.023000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
78 - 0.015380 0.031000 0.012000: clearing screen
79 - 0.012960 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 - 0.012860 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
81 - 0.012610 0.026000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
82 - 0.011340 0.018000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
83 - 0.011110 0.018000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
84 - 0.010840 0.030000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
85 - 0.010500 0.025000 0.008000: inits 3
86 - 0.010310 0.017000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
87 - 0.008960 0.016000 0.007000: window checked
88 - 0.008130 0.014000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
89 - 0.007550 0.016000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 - 0.007370 0.015000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
91 - 0.007040 0.013000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
92 - 0.006620 0.011000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
93 - 0.005460 0.011000 0.003000: --- NVIM STARTING ---
94 - 0.003830 0.023000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_07_01_16_38_38.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 341.004210 msec
5 -Total Max: 403.406000 msec
6 -Total Min: 317.044000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -318.483740 380.835000 296.484000: /home/oli/.config/nvim/init.lua
11 - 3.480510 3.886000 3.319000: loading packages
12 - 2.172440 2.514000 2.091000: loading after plugins
13 - 1.936800 2.033000 1.880000: reading ShaDa
14 - 1.909540 3.153000 1.522000: sourcing vimrc file(s)
15 - 1.825230 2.390000 1.765000: loading rtp plugins
16 - 1.051810 3.083000 0.663000: BufEnter autocommands
17 - 0.960430 2.951000 0.500000: opening buffers
18 - 0.947800 3.454000 0.587000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 - 0.767920 1.813000 0.535000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.562110 1.488000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
21 - 0.502430 0.837000 0.364000: init lua interpreter
22 - 0.450000 2.434000 0.250000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 - 0.418120 0.671000 0.313000: init highlight
24 - 0.416710 0.879000 0.269000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
25 - 0.364690 0.473000 0.347000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
26 - 0.350220 0.775000 0.226000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
27 - 0.301220 2.062000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
28 - 0.300470 2.214000 0.230000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.257260 0.397000 0.184000: inits 1
30 - 0.243210 0.514000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.232300 2.013000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
32 - 0.208530 1.590000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
33 - 0.193560 0.444000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
34 - 0.189110 0.392000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
35 - 0.166210 0.258000 0.114000: locale set
36 - 0.163090 1.994000 0.084000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
37 - 0.151430 0.215000 0.144000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 - 0.131820 0.379000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
39 - 0.112240 0.278000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
40 - 0.109450 0.287000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
41 - 0.103660 0.265000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
42 - 0.100050 0.142000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
43 - 0.096750 0.131000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
44 - 0.094660 0.118000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
45 - 0.085260 0.215000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
46 - 0.065160 0.082000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
47 - 0.065080 0.089000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 - 0.058500 0.141000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
49 - 0.052450 0.182000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
50 - 0.047720 0.113000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
51 - 0.046660 0.061000 0.044000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
52 - 0.044930 0.061000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
53 - 0.043920 0.133000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
54 - 0.042850 0.069000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
55 - 0.041400 0.052000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
56 - 0.040950 0.084000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
57 - 0.038860 0.052000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
58 - 0.038430 0.067000 0.026000: expanding arguments
59 - 0.036800 0.060000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
60 - 0.034500 0.054000 0.026000: inits 2
61 - 0.031660 0.096000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua
62 - 0.029740 0.100000 0.021000: parsing arguments
63 - 0.029430 0.056000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
64 - 0.028650 0.051000 0.020000: init default autocommands
65 - 0.027340 0.046000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 - 0.027150 0.044000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
67 - 0.026340 0.031000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
68 - 0.025950 0.037000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
69 - 0.023300 0.057000 0.018000: init default mappings
70 - 0.022770 0.030000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
71 - 0.022380 0.032000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
72 - 0.022370 0.041000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim
73 - 0.018890 0.032000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
74 - 0.017380 0.024000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
75 - 0.017090 0.027000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
76 - 0.014820 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
77 - 0.013950 0.021000 0.012000: clearing screen
78 - 0.012280 0.020000 0.012000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
79 - 0.011680 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim
80 - 0.011290 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
81 - 0.010940 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
82 - 0.010220 0.016000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
83 - 0.010040 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
84 - 0.009920 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
85 - 0.009680 0.018000 0.007000: window checked
86 - 0.009150 0.018000 0.008000: inits 3
87 - 0.007530 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
88 - 0.007040 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
89 - 0.007010 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
90 - 0.006340 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
91 - 0.006190 0.009000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
92 - 0.005530 0.012000 0.003000: --- NVIM STARTING ---
93 - 0.002910 0.004000 0.002000: editing files in windows

neovim/startuptime/pop-os_2022_07_03_23_07_58.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 97.488750 msec
5 -Total Max: 111.248000 msec
6 -Total Min: 94.869000 msec
8 - AVERAGE MAX MIN
9 -------------------------------
10 -75.355390 86.656000 72.668000: /home/oli/.config/nvim/init.lua
11 - 3.416710 3.574000 3.249000: loading packages
12 - 2.133420 2.279000 2.055000: loading after plugins
13 - 2.091000 2.219000 1.998000: reading ShaDa
14 - 1.788310 1.904000 1.737000: loading rtp plugins
15 - 1.732340 2.847000 1.459000: sourcing vimrc file(s)
16 - 1.199860 1.783000 0.539000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
17 - 1.004380 1.341000 0.492000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
18 - 0.743370 1.097000 0.532000: opening buffers
19 - 0.676750 0.764000 0.583000: BufEnter autocommands
20 - 0.564690 0.856000 0.296000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
21 - 0.526980 1.152000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
22 - 0.489000 0.852000 0.187000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
23 - 0.484390 0.811000 0.347000: init lua interpreter
24 - 0.447400 0.888000 0.193000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
25 - 0.404220 0.678000 0.307000: init highlight
26 - 0.348490 0.411000 0.337000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim
27 - 0.327990 0.417000 0.247000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
28 - 0.266720 0.482000 0.131000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
29 - 0.245100 0.441000 0.174000: inits 1
30 - 0.230410 0.414000 0.117000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
31 - 0.222010 0.447000 0.154000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
32 - 0.197580 0.408000 0.114000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
33 - 0.172600 0.565000 0.135000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
34 - 0.165840 0.270000 0.116000: locale set
35 - 0.154880 0.290000 0.108000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
36 - 0.150640 0.199000 0.139000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
37 - 0.145920 0.310000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
38 - 0.107540 0.216000 0.052000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
39 - 0.104520 0.287000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
40 - 0.095370 0.162000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
41 - 0.094000 0.118000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim
42 - 0.088430 0.316000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
43 - 0.082530 0.269000 0.065000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
44 - 0.075960 0.224000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
45 - 0.072460 0.376000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
46 - 0.070640 0.210000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
47 - 0.062860 0.068000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
48 - 0.061500 0.070000 0.058000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim
49 - 0.046000 0.102000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
50 - 0.045770 0.264000 0.018000: /home/oli/.local/share/nvim/runtime/filetype.lua
51 - 0.043050 0.089000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
52 - 0.040870 0.049000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
53 - 0.040710 0.059000 0.033000: /home/oli/.local/share/nvim/runtime/ftplugin.vim
54 - 0.040020 0.070000 0.038000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim
55 - 0.037310 0.057000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
56 - 0.036560 0.162000 0.027000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
57 - 0.034650 0.040000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
58 - 0.032850 0.059000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
59 - 0.032690 0.053000 0.024000: inits 2
60 - 0.032500 0.055000 0.023000: expanding arguments
61 - 0.027800 0.088000 0.019000: parsing arguments
62 - 0.027210 0.060000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
63 - 0.026570 0.044000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
64 - 0.025990 0.034000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
65 - 0.025080 0.033000 0.023000: /home/oli/.local/share/nvim/runtime/plugin/man.vim
66 - 0.025040 0.060000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
67 - 0.023710 0.042000 0.019000: /home/oli/.local/share/nvim/runtime/indent.vim
68 - 0.023010 0.038000 0.016000: init default autocommands
69 - 0.022880 0.035000 0.020000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
70 - 0.022250 0.043000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
71 - 0.020220 0.043000 0.016000: init default mappings
72 - 0.018500 0.021000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
73 - 0.017240 0.020000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
74 - 0.016900 0.025000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
75 - 0.013620 0.018000 0.013000: clearing screen
76 - 0.012240 0.016000 0.012000: /home/oli/Workspace/lsp-zero.nvim/plugin/lsp-zero.vim
77 - 0.011470 0.026000 0.010000: /home/oli/.local/share/nvim/runtime/filetype.vim
78 - 0.011100 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim
79 - 0.011050 0.015000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim
80 - 0.010840 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim
81 - 0.010130 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
82 - 0.010020 0.011000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim
83 - 0.010010 0.011000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim
84 - 0.009410 0.020000 0.007000: window checked
85 - 0.008830 0.029000 0.008000: inits 3
86 - 0.008060 0.011000 0.008000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim
87 - 0.007330 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim
88 - 0.007110 0.025000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim
89 - 0.007020 0.008000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim
90 - 0.006140 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim
91 - 0.006120 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim
92 - 0.005380 0.012000 0.003000: --- NVIM STARTING ---
93 - 0.003260 0.070000 0.002000: editing files in windows

neovim/startuptime/x230_2022_07_02_12_20_21.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 542.197000 msec
5 -Total Max: 618.351000 msec
6 -Total Min: 520.947000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -495.977580 573.231000 474.888000: /home/oli/.config/nvim/init.lua
11 - 10.897490 13.200000 10.446000: loading packages
12 - 5.335870 6.086000 5.105000: loading after plugins
13 - 4.422350 5.017000 4.160000: loading rtp plugins
14 - 3.746160 4.151000 3.536000: sourcing vimrc file(s)
15 - 2.025000 2.902000 1.552000: opening buffers
16 - 1.445410 1.846000 1.347000: reading ShaDa
17 - 1.326570 1.699000 1.069000: BufEnter autocommands
18 - 1.247260 1.890000 0.976000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 - 1.215630 1.602000 0.930000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 0.857930 1.163000 0.810000: /usr/share/nvim/runtime/syntax/syntax.vim
21 - 0.681860 1.094000 0.562000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
22 - 0.654870 1.056000 0.476000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
23 - 0.654390 1.086000 0.604000: /usr/share/vim/vimfiles/plugin/skim.vim
24 - 0.597970 0.778000 0.565000: init lua interpreter
25 - 0.546160 0.969000 0.344000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 - 0.541700 0.804000 0.430000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim
27 - 0.518110 0.762000 0.394000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
28 - 0.461910 0.830000 0.371000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.418630 0.641000 0.175000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
30 - 0.375510 0.664000 0.261000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim
31 - 0.357520 0.609000 0.241000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
32 - 0.354420 0.676000 0.310000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
33 - 0.335850 0.556000 0.271000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
34 - 0.334820 0.570000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
35 - 0.333540 0.484000 0.307000: inits 1
36 - 0.329590 0.522000 0.304000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim
37 - 0.314200 0.523000 0.288000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim
38 - 0.307430 0.556000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
39 - 0.305590 0.443000 0.224000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
40 - 0.285390 0.486000 0.268000: init highlight
41 - 0.277090 0.506000 0.249000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
42 - 0.265430 0.567000 0.112000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim
43 - 0.202940 0.337000 0.184000: /usr/share/nvim/runtime/plugin/rplugin.vim
44 - 0.197320 0.361000 0.129000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
45 - 0.191340 0.335000 0.174000: /usr/share/nvim/runtime/plugin/matchparen.vim
46 - 0.174290 0.259000 0.138000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
47 - 0.172330 0.250000 0.158000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
48 - 0.153980 0.312000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
49 - 0.149720 0.277000 0.124000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
50 - 0.144150 0.256000 0.130000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
51 - 0.140190 0.331000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
52 - 0.134570 0.230000 0.111000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
53 - 0.126730 0.183000 0.115000: /usr/share/nvim/runtime/syntax/synload.vim
54 - 0.123530 0.188000 0.110000: event init
55 - 0.111590 0.244000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
56 - 0.100060 0.154000 0.087000: early init
57 - 0.094560 0.323000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
58 - 0.088480 0.165000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
59 - 0.088330 0.175000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
60 - 0.085760 0.156000 0.065000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
61 - 0.085190 0.312000 0.076000: /usr/share/nvim/runtime/plugin/shada.vim
62 - 0.083940 0.150000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
63 - 0.081230 0.104000 0.068000: /usr/share/nvim/runtime/ftplugin.vim
64 - 0.077130 0.158000 0.064000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
65 - 0.075550 0.255000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
66 - 0.075480 0.130000 0.066000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim
67 - 0.071010 0.141000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
68 - 0.067920 0.108000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
69 - 0.063900 0.109000 0.054000: /usr/share/nvim/runtime/plugin/man.vim
70 - 0.058050 0.096000 0.049000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim
71 - 0.057760 0.093000 0.051000: locale set
72 - 0.056650 0.114000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
73 - 0.055860 0.086000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
74 - 0.054050 0.095000 0.048000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim
75 - 0.052150 0.217000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
76 - 0.050580 0.077000 0.045000: /etc/xdg/nvim/sysinit.vim
77 - 0.050470 0.084000 0.043000: inits 2
78 - 0.049860 0.079000 0.043000: expanding arguments
79 - 0.049000 0.092000 0.043000: parsing arguments
80 - 0.048360 0.078000 0.036000: init first window
81 - 0.047940 0.094000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
82 - 0.045540 0.101000 0.036000: /usr/share/nvim/runtime/filetype.lua
83 - 0.044590 0.117000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
84 - 0.044000 0.112000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
85 - 0.042960 0.128000 0.038000: /usr/share/nvim/runtime/indent.vim
86 - 0.040340 0.080000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
87 - 0.040210 0.101000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
88 - 0.034460 0.089000 0.030000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
89 - 0.031380 0.054000 0.027000: clearing screen
90 - 0.027320 0.058000 0.025000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim
91 - 0.025810 0.069000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
92 - 0.025280 0.070000 0.019000: /usr/share/nvim/runtime/plugin/gzip.vim
93 - 0.025220 0.041000 0.023000: inits 3
94 - 0.024900 0.040000 0.023000: /usr/share/nvim/runtime/plugin/tutor.vim
95 - 0.024650 0.062000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
96 - 0.022730 0.049000 0.020000: /usr/share/nvim/runtime/filetype.vim
97 - 0.022720 0.038000 0.021000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
98 - 0.022030 0.049000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim
99 - 0.021690 0.041000 0.020000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
100 - 0.021060 0.033000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim
101 - 0.020510 0.029000 0.019000: init default mappings
102 - 0.020110 0.041000 0.018000: init default autocommands
103 - 0.019670 0.031000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
104 - 0.018500 0.045000 0.016000: /usr/share/nvim/runtime/plugin/matchit.vim
105 - 0.018140 0.031000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim
106 - 0.017140 0.025000 0.015000: window checked
107 - 0.016580 0.029000 0.015000: /usr/share/nvim/runtime/plugin/spellfile.vim
108 - 0.016530 0.027000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim
109 - 0.016010 0.027000 0.014000: /usr/share/nvim/runtime/plugin/health.vim
110 - 0.015850 0.025000 0.014000: /usr/share/nvim/archlinux.vim
111 - 0.015580 0.028000 0.014000: /usr/share/nvim/runtime/plugin/tohtml.vim
112 - 0.013420 0.023000 0.012000: /home/oli/.local/share/nvim/rplugin.vim
113 - 0.010580 0.023000 0.009000: --- NVIM STARTING ---
114 - 0.006270 0.011000 0.005000: editing files in windows

neovim/startuptime/x230_2022_07_05_08_27_43.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 210.622070 msec
5 -Total Max: 226.287000 msec
6 -Total Min: 204.690000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -155.097290 171.722000 149.592000: /home/oli/.config/nvim/init.lua
11 - 13.237180 14.748000 12.898000: loading packages
12 - 6.524820 7.083000 6.365000: loading after plugins
13 - 5.404500 6.005000 5.236000: loading rtp plugins
14 - 4.595380 5.221000 4.333000: sourcing vimrc file(s)
15 - 2.167390 3.107000 1.732000: opening buffers
16 - 1.801000 2.443000 1.732000: reading ShaDa
17 - 1.678660 2.613000 1.232000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
18 - 1.496880 1.916000 1.323000: BufEnter autocommands
19 - 1.353290 1.970000 0.867000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 1.075160 1.646000 1.020000: /usr/share/nvim/runtime/syntax/syntax.vim
21 - 0.816020 1.088000 0.694000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
22 - 0.794500 0.994000 0.761000: /usr/share/vim/vimfiles/plugin/skim.vim
23 - 0.739890 1.431000 0.412000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
24 - 0.732120 0.958000 0.665000: init lua interpreter
25 - 0.708510 1.469000 0.606000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim
26 - 0.638470 0.899000 0.509000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
27 - 0.531910 0.795000 0.346000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
28 - 0.530270 0.726000 0.466000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.505340 1.176000 0.317000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim
30 - 0.482540 1.368000 0.250000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.472900 1.113000 0.212000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
32 - 0.435290 0.533000 0.385000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
33 - 0.410870 0.613000 0.358000: inits 1
34 - 0.406800 0.560000 0.383000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim
35 - 0.382170 0.472000 0.360000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim
36 - 0.377160 0.533000 0.216000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
37 - 0.361300 0.560000 0.326000: init highlight
38 - 0.350550 0.549000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
39 - 0.322740 0.549000 0.303000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
40 - 0.319120 1.065000 0.160000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim
41 - 0.290510 0.449000 0.197000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
42 - 0.288620 0.537000 0.168000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
43 - 0.268990 0.401000 0.150000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
44 - 0.241910 0.308000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim
45 - 0.231990 0.318000 0.223000: /usr/share/nvim/runtime/plugin/matchparen.vim
46 - 0.217210 0.334000 0.208000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
47 - 0.203150 0.388000 0.128000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
48 - 0.176890 0.249000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
49 - 0.173130 0.365000 0.154000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
50 - 0.170270 0.414000 0.152000: /usr/share/nvim/runtime/syntax/synload.vim
51 - 0.170270 0.316000 0.128000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
52 - 0.162430 0.231000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
53 - 0.158940 0.350000 0.137000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
54 - 0.152600 0.330000 0.124000: event init
55 - 0.121500 0.273000 0.096000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
56 - 0.119320 0.301000 0.100000: early init
57 - 0.103190 0.174000 0.097000: /usr/share/nvim/runtime/plugin/shada.vim
58 - 0.103010 0.274000 0.093000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
59 - 0.100130 0.194000 0.080000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
60 - 0.099280 0.210000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
61 - 0.095110 0.168000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
62 - 0.093090 0.154000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
63 - 0.090590 0.121000 0.086000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
64 - 0.090510 0.160000 0.082000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim
65 - 0.090310 0.148000 0.079000: /usr/share/nvim/runtime/ftplugin.vim
66 - 0.088410 0.161000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
67 - 0.088380 0.189000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
68 - 0.075630 0.168000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
69 - 0.073520 0.105000 0.067000: /usr/share/nvim/runtime/plugin/man.vim
70 - 0.068050 0.150000 0.051000: /usr/share/nvim/runtime/filetype.lua
71 - 0.067310 0.104000 0.064000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
72 - 0.066710 0.143000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
73 - 0.065200 0.098000 0.055000: locale set
74 - 0.064950 0.108000 0.059000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim
75 - 0.064170 0.130000 0.060000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim
76 - 0.062200 0.094000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
77 - 0.060780 0.198000 0.051000: parsing arguments
78 - 0.060100 0.081000 0.056000: /etc/xdg/nvim/sysinit.vim
79 - 0.059230 0.144000 0.050000: inits 2
80 - 0.057910 0.135000 0.050000: expanding arguments
81 - 0.057320 0.093000 0.042000: init first window
82 - 0.057150 0.077000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
83 - 0.056850 0.230000 0.048000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
84 - 0.052680 0.089000 0.048000: /usr/share/nvim/runtime/indent.vim
85 - 0.051600 0.262000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
86 - 0.051460 0.081000 0.049000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
87 - 0.050360 0.223000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
88 - 0.039890 0.065000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
89 - 0.035260 0.071000 0.032000: clearing screen
90 - 0.032630 0.036000 0.031000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim
91 - 0.030880 0.042000 0.029000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
92 - 0.030810 0.045000 0.029000: /usr/share/nvim/runtime/plugin/tutor.vim
93 - 0.029820 0.063000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
94 - 0.029340 0.041000 0.028000: inits 3
95 - 0.028160 0.053000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
96 - 0.028130 0.077000 0.025000: /usr/share/nvim/runtime/plugin/gzip.vim
97 - 0.027800 0.057000 0.025000: /usr/share/nvim/runtime/filetype.vim
98 - 0.026760 0.051000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
99 - 0.025900 0.029000 0.024000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim
100 - 0.025520 0.122000 0.023000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim
101 - 0.024800 0.043000 0.022000: init default mappings
102 - 0.024210 0.056000 0.021000: init default autocommands
103 - 0.023450 0.033000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
104 - 0.022100 0.032000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim
105 - 0.022080 0.034000 0.021000: /usr/share/nvim/runtime/plugin/matchit.vim
106 - 0.021730 0.040000 0.017000: window checked
107 - 0.020980 0.084000 0.018000: /usr/share/nvim/runtime/plugin/health.vim
108 - 0.020920 0.036000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim
109 - 0.020250 0.034000 0.019000: /usr/share/nvim/runtime/plugin/spellfile.vim
110 - 0.018820 0.022000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim
111 - 0.018420 0.024000 0.017000: /usr/share/nvim/archlinux.vim
112 - 0.016100 0.017000 0.016000: /home/oli/.local/share/nvim/rplugin.vim
113 - 0.012540 0.024000 0.011000: --- NVIM STARTING ---
114 - 0.006460 0.010000 0.006000: editing files in windows

neovim/startuptime/x230_2022_07_05_08_31_54.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 195.860280 msec
5 -Total Max: 205.074000 msec
6 -Total Min: 191.469000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -140.868510 148.139000 137.555000: /home/oli/.config/nvim/init.lua
11 - 13.197390 14.069000 12.876000: loading packages
12 - 6.497840 7.057000 6.335000: loading after plugins
13 - 5.356470 6.496000 5.198000: loading rtp plugins
14 - 4.566870 5.308000 4.306000: sourcing vimrc file(s)
15 - 2.449790 3.967000 1.881000: opening buffers
16 - 1.770840 2.121000 1.712000: reading ShaDa
17 - 1.545190 1.871000 1.326000: BufEnter autocommands
18 - 1.449700 1.829000 1.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 - 1.439020 1.866000 1.108000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 1.058380 1.725000 1.012000: /usr/share/nvim/runtime/syntax/syntax.vim
21 - 0.792350 1.047000 0.753000: /usr/share/vim/vimfiles/plugin/skim.vim
22 - 0.764910 1.503000 0.548000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
23 - 0.733680 0.994000 0.666000: init lua interpreter
24 - 0.726120 0.942000 0.679000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
25 - 0.646400 1.052000 0.389000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
26 - 0.612660 0.870000 0.539000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim
27 - 0.602790 1.053000 0.400000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
28 - 0.538930 0.735000 0.463000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
29 - 0.487660 0.837000 0.318000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim
30 - 0.414630 0.746000 0.207000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
31 - 0.405950 0.580000 0.352000: inits 1
32 - 0.405830 0.756000 0.375000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
33 - 0.399260 0.526000 0.384000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim
34 - 0.385520 0.604000 0.361000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim
35 - 0.367700 0.619000 0.264000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
36 - 0.366260 0.530000 0.257000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
37 - 0.356600 0.534000 0.323000: init highlight
38 - 0.355770 0.547000 0.262000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
39 - 0.337500 0.453000 0.311000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
40 - 0.322350 0.570000 0.158000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
41 - 0.315490 0.450000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
42 - 0.259480 0.485000 0.101000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim
43 - 0.241810 0.427000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim
44 - 0.232130 0.270000 0.222000: /usr/share/nvim/runtime/plugin/matchparen.vim
45 - 0.210160 0.301000 0.201000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
46 - 0.203220 0.313000 0.152000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
47 - 0.188600 0.307000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
48 - 0.170940 0.211000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
49 - 0.162910 0.290000 0.149000: /usr/share/nvim/runtime/syntax/synload.vim
50 - 0.161600 0.380000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
51 - 0.161070 0.304000 0.125000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
52 - 0.158380 0.383000 0.130000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
53 - 0.152620 0.275000 0.137000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
54 - 0.144870 0.249000 0.123000: event init
55 - 0.117110 0.197000 0.098000: early init
56 - 0.105870 0.188000 0.095000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
57 - 0.105480 0.213000 0.094000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
58 - 0.097390 0.125000 0.094000: /usr/share/nvim/runtime/plugin/shada.vim
59 - 0.092900 0.131000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
60 - 0.090390 0.124000 0.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
61 - 0.090150 0.131000 0.085000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim
62 - 0.090130 0.184000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
63 - 0.089670 0.119000 0.077000: /usr/share/nvim/runtime/ftplugin.vim
64 - 0.088830 0.109000 0.081000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim
65 - 0.087980 0.210000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
66 - 0.085910 0.139000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
67 - 0.081750 0.177000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
68 - 0.076570 0.142000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
69 - 0.068550 0.097000 0.063000: /usr/share/nvim/runtime/plugin/man.vim
70 - 0.068050 0.245000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
71 - 0.067710 0.278000 0.060000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim
72 - 0.066590 0.097000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
73 - 0.064150 0.112000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
74 - 0.063780 0.106000 0.056000: locale set
75 - 0.062860 0.119000 0.059000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim
76 - 0.061080 0.112000 0.056000: /etc/xdg/nvim/sysinit.vim
77 - 0.060240 0.180000 0.050000: parsing arguments
78 - 0.058200 0.121000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
79 - 0.058050 0.157000 0.050000: expanding arguments
80 - 0.057670 0.089000 0.050000: inits 2
81 - 0.056350 0.099000 0.040000: init first window
82 - 0.052610 0.281000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
83 - 0.052000 0.160000 0.043000: /usr/share/nvim/runtime/filetype.lua
84 - 0.051560 0.065000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
85 - 0.051250 0.059000 0.048000: /usr/share/nvim/runtime/indent.vim
86 - 0.047770 0.082000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim
87 - 0.047450 0.085000 0.045000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim
88 - 0.040470 0.081000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
89 - 0.034750 0.066000 0.032000: clearing screen
90 - 0.032770 0.056000 0.031000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim
91 - 0.030730 0.058000 0.028000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
92 - 0.030660 0.059000 0.029000: /usr/share/nvim/runtime/plugin/tutor.vim
93 - 0.030280 0.136000 0.028000: inits 3
94 - 0.029390 0.047000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
95 - 0.027670 0.038000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
96 - 0.027050 0.067000 0.024000: /usr/share/nvim/runtime/filetype.vim
97 - 0.027030 0.047000 0.025000: /usr/share/nvim/runtime/plugin/gzip.vim
98 - 0.026110 0.039000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
99 - 0.026070 0.051000 0.024000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim
100 - 0.024710 0.035000 0.022000: init default mappings
101 - 0.024210 0.048000 0.021000: init default autocommands
102 - 0.023980 0.035000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim
103 - 0.023390 0.052000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
104 - 0.021870 0.026000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim
105 - 0.021720 0.062000 0.017000: window checked
106 - 0.021470 0.024000 0.021000: /usr/share/nvim/runtime/plugin/matchit.vim
107 - 0.020270 0.023000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim
108 - 0.019990 0.022000 0.019000: /usr/share/nvim/runtime/plugin/spellfile.vim
109 - 0.018540 0.023000 0.018000: /usr/share/nvim/runtime/plugin/health.vim
110 - 0.018470 0.021000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim
111 - 0.018460 0.026000 0.017000: /usr/share/nvim/archlinux.vim
112 - 0.018330 0.210000 0.015000: /home/oli/.local/share/nvim/rplugin.vim
113 - 0.012290 0.021000 0.010000: --- NVIM STARTING ---
114 - 0.006600 0.018000 0.006000: editing files in windows

neovim/startuptime/x230_2022_07_15_13_34_39.txt

Deleted
deleted 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

Deleted
deleted 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

neovim/startuptime/x230_2022_07_26_18_01_57.txt

Deleted
deleted file mode 100644
1 -Extra options: [init.lua]
2 -Measured: 100 times
4 -Total Average: 192.635790 msec
5 -Total Max: 204.165000 msec
6 -Total Min: 187.250000 msec
8 - AVERAGE MAX MIN
9 ----------------------------------
10 -142.056940 150.501000 137.710000: /home/oli/.config/nvim/init.lua
11 - 9.514100 10.445000 9.233000: loading packages
12 - 5.198590 5.534000 5.073000: loading after plugins
13 - 4.418350 4.979000 4.295000: loading rtp plugins
14 - 4.319080 4.854000 4.180000: reading ShaDa
15 - 3.579770 4.082000 3.322000: sourcing vimrc file(s)
16 - 2.658670 4.417000 2.017000: opening buffers
17 - 2.189300 2.688000 2.103000: /usr/share/nvim/runtime/filetype.lua
18 - 1.744940 2.282000 1.524000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim
19 - 1.394460 3.108000 1.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua
20 - 1.296550 2.112000 1.147000: /home/oli/.config/nvim/filetype.lua
21 - 0.910340 1.446000 0.568000: BufEnter autocommands
22 - 0.869900 1.000000 0.838000: /usr/share/nvim/runtime/syntax/syntax.vim
23 - 0.767530 0.969000 0.719000: /usr/share/vim/vimfiles/plugin/skim.vim
24 - 0.760360 0.903000 0.685000: init lua interpreter
25 - 0.756550 0.953000 0.719000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim
26 - 0.674470 1.124000 0.533000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim
27 - 0.648550 0.889000 0.584000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua
28 - 0.635520 0.924000 0.406000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua
29 - 0.494280 1.321000 0.292000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim
30 - 0.421740 0.967000 0.388000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim
31 - 0.415410 0.580000 0.364000: inits 1
32 - 0.410250 0.643000 0.248000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua
33 - 0.367260 0.567000 0.326000: init highlight
34 - 0.362760 0.523000 0.242000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua
35 - 0.344660 0.455000 0.322000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua
36 - 0.342610 0.537000 0.225000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua
37 - 0.330030 0.539000 0.310000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim
38 - 0.301850 0.526000 0.226000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim
39 - 0.241590 0.363000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim
40 - 0.221940 0.376000 0.176000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim
41 - 0.214840 0.257000 0.200000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim
42 - 0.181960 0.325000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua
43 - 0.178950 0.280000 0.157000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua
44 - 0.171610 0.248000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua
45 - 0.168580 0.379000 0.151000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim
46 - 0.168070 0.422000 0.132000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim
47 - 0.157300 0.270000 0.139000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/after/plugin/cmp_nvim_lsp_document_symbol.lua
48 - 0.150100 0.237000 0.126000: event init
49 - 0.150090 0.196000 0.136000: /usr/share/nvim/runtime/syntax/synload.vim
50 - 0.121250 0.175000 0.102000: early init
51 - 0.107630 0.143000 0.102000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua
52 - 0.104440 0.300000 0.096000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim
53 - 0.099370 0.155000 0.095000: /usr/share/nvim/runtime/plugin/shada.vim
54 - 0.095430 0.119000 0.089000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim
55 - 0.094790 0.221000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim
56 - 0.090420 0.120000 0.077000: /usr/share/nvim/runtime/ftplugin.vim
57 - 0.088350 0.283000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua
58 - 0.084020 0.195000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua
59 - 0.083790 0.130000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua
60 - 0.080560 0.177000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua
61 - 0.078370 0.224000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim
62 - 0.071410 0.149000 0.066000: /usr/share/nvim/runtime/plugin/man.vim
63 - 0.070240 0.103000 0.067000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim
64 - 0.069150 0.125000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim
65 - 0.066470 0.171000 0.056000: locale set
66 - 0.066240 0.097000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim
67 - 0.064230 0.085000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim
68 - 0.061430 0.098000 0.057000: /etc/xdg/nvim/sysinit.vim
69 - 0.060870 0.094000 0.051000: parsing arguments
70 - 0.058940 0.096000 0.051000: expanding arguments
71 - 0.057570 0.104000 0.048000: inits 2
72 - 0.056460 0.062000 0.054000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim
73 - 0.054670 0.090000 0.038000: init first window
74 - 0.054280 0.066000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim
75 - 0.053130 0.069000 0.051000: /usr/share/vim/vimfiles/plugin/black.vim
76 - 0.052260 0.067000 0.048000: /usr/share/nvim/runtime/indent.vim
77 - 0.049970 0.118000 0.047000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim
78 - 0.046330 0.095000 0.042000: /usr/share/vim/vimfiles/ftdetect/meson.vim
79 - 0.040870 0.078000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim
80 - 0.038080 0.051000 0.036000: clearing screen
81 - 0.031090 0.090000 0.028000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim
82 - 0.030890 0.034000 0.030000: /usr/share/nvim/runtime/plugin/tutor.vim
83 - 0.030020 0.061000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim
84 - 0.028950 0.150000 0.026000: /usr/share/nvim/runtime/filetype.vim
85 - 0.028620 0.088000 0.026000: inits 3
86 - 0.028300 0.035000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim
87 - 0.027010 0.061000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim
88 - 0.026930 0.225000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim
89 - 0.026030 0.038000 0.023000: init default mappings
90 - 0.026000 0.049000 0.024000: /usr/share/nvim/runtime/plugin/gzip.vim
91 - 0.024740 0.088000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim
92 - 0.022760 0.034000 0.020000: init default autocommands
93 - 0.021620 0.045000 0.018000: window checked
94 - 0.021340 0.023000 0.020000: /usr/share/nvim/runtime/plugin/matchit.vim
95 - 0.021250 0.074000 0.019000: /usr/share/nvim/runtime/plugin/matchparen.vim
96 - 0.020350 0.102000 0.018000: /usr/share/nvim/runtime/plugin/spellfile.vim
97 - 0.019020 0.032000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim
98 - 0.018860 0.034000 0.018000: /usr/share/nvim/runtime/plugin/health.vim
99 - 0.018400 0.055000 0.017000: /usr/share/nvim/archlinux.vim
100 - 0.017240 0.084000 0.016000: /home/oli/.local/share/nvim/rplugin.vim
101 - 0.012370 0.022000 0.011000: --- NVIM STARTING ---
102 - 0.006600 0.010000 0.006000: editing files in windows

neovim/t.lua

Added
new file mode 100644
1 +local number_option = vim.opt.number
2 +number_option = true
3 +vim.print(type(number_option), number_option)

nushell/env.nu

Modified
6 6 let-env WORKSPACE = if $env.WIN32 { "W:/" } else { "~/Workspace" | path expand }
7 7 let-env NOTES = if $env.WIN32 { "N:/" } else { "~/Notes" | path expand }
9 +let-env TERM = if ($env | get -i TERM_PROGRAM) == WezTerm { "wezterm" } else { "xterm-256color" }
9 11 # theme for ls and other programs, that use LS_COLORS
10 12 let-env LS_COLORS = ( do -i { vivid generate nord } )

nushell/modules/aliases.nu

Modified
6 6 # TODO ewrite bak command
7 7 export alias backup = bak
9 +def-env workspace [] {
10 + fd --type directory --max-depth 1 . $env.WORKSPACE | sk --ansi --preview 'test -f {}README.md&& mdcat {}README.md' --preview-window 'right:66%' | cd $in
12 +export alias w = workspace
14 +def open-editor-with-content-search [ initial_query:string = ''] {
15 + sk --ansi --interactive --cmd-query $initial_query --delimiter ':' --nth 1 --cmd "rg --color=always --line-number {}" --preview 'bat --color=always {1}' --color light | parse '{file}:{number}:{line}' | each { nvim -c $in.number -c $"?\\V($in.line | str trim )" $in.file }
17 +export alias nc = open-editor-with-content-search
19 +def open-editor-with-file-search [ initial_query:string = ''] {
20 + sk --ansi --interactive --cmd-query $initial_query --delimiter ':' --nth 1 --cmd "fd --type file --color=always {}" --preview 'bat --color=always {1}' --color light | str trim | each { nvim $in }
22 +export alias nf = open-editor-with-file-search
9 24 # TODO: HOST SPECIFIC ALIASES
10 25 # I do not see a way right now the have different aliases per host with nu.

toolbox.symlinks

Added
new file mode 100644
1 +git/gitconfig
2 +~/.config/git/config
4 +git/gitconfig.linux
5 +~/.config/git/.gitconfig.include
7 +cargo/config.toml
8 +~/.cargo/config.toml
10 +nushell/completions
11 +~/.config/nushell/completions
13 +nushell/config.nu
14 +~/.config/nushell/config.nu
16 +nushell/env.nu
17 +~/.config/nushell/env.nu
19 +nushell/modules
20 +~/.config/nushell/modules
22 +nushell/plugin.nu
23 +~/.config/nushell/plugin.nu
25 +icc/thinkpad_x230.icc
26 +~/.config/icc/thinkpad_x230.icc
28 +indexa/config.linux.toml
29 +~/.config/indexa/config.toml
31 +topgrade/topgrade.linux.toml
32 +~/.config/topgrade.toml
34 +stackoverflow/so
35 +~/.config/so
37 +wezterm
38 +~/.config/wezterm
40 +wezterm/wezterm.service
41 +~/.config/systemd/user/wezterm.service
43 +helix/config.toml
44 +~/.config/helix/config.toml
46 +helix/languages.toml
47 +~/.config/helix/languages.toml
49 +helix/themes
50 +~/.config/helix/themes
52 +helix/systemd/helix-dark-mode.service
53 +~/.config/systemd/user/helix-dark-mode.service
55 +xplr
56 +~/.config/xplr
58 +river
59 +~/.config/river
61 +ssh/config
62 +~/.ssh/config
64 +neovim
65 +~/.config/nvim

tools/cargo-tools.nu

Modified
6 6 # is not installed yet
7 7 let cargo_crates = [
8 8 [ name bin features];
9 + [ "wiki-tui" "wiki-tui" [] ]
9 10 [ "sccache" "sccache" [] ]
10 11 [ "inferno" "inferno-flamegraph" [] ]
11 12 [ "nu" "nu" [ "--features" "extra" ] ]

wezterm/wezterm.lua

Modified
17 17 enable_wayland = true
18 18 window_decorations = 'RESIZE'
19 19 elseif hostname == 'pop-os' then
20 - font_size = 12
20 + font_size = 16
21 21 elseif hostname == 'PC-00625' then
22 - font_size = 14
22 + font_size = 16
23 23 font = wez.font 'Cascadia Code'
24 24 window_decorations = 'TITLE|RESIZE'
32 32 font = font,
33 33 font_size = font_size,
34 + underline_position = "-2pt",
34 35 warn_about_missing_glyphs = false,
35 36 color_scheme = dark_mode,
36 37 color_schemes = nugu,