Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
ff468e212859de6a94dd39a946ff804df89d2b11
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
- Parent 1: 552ff709766d · Showing diff
- Parent 2: d252b8b015e7 · Diff against parent 2
bugabingas dorkfiles
ff468e212859de6a94dd39a946ff804df89d2b11
Oliver Krylow <o.krylow@isp-insoft.de> ·
unsigned
+3764 / −4530 text lines · all files grouped into 32 bars
+1 / −1 text lines
+1 / −1 text lines
+1 / −1 text lines
+4 / −0 text lines
+2 / −2 text lines
sed -i 's/theme = ".*"/theme = "nugu-light"/' ${HOME}/.config/helix/config.toml sed --in-place --follow-symlinks 's/theme = ".*"/theme = "nugu-light"/' ${HOME}/.config/helix/config.toml+1 / −1 text lines
+1 / −1 text lines
new file mode 100644+80 / −0 text lines
{ "workspace.library": [ "/home/oli/.local/share/nvim/site/pack/paqs/start/lua-dev.nvim/types/nightly", "/home/oli/.local/share/nvim/runtime/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/alpha-nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/boo-colorscheme-nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cinnamon.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp-document-symbol/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/color-picker.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/command-center.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/focus.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/gitsigns.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/hlargs.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/impatient.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/iron.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/keymap-layer.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/lsp-status.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/lua-dev.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/neogen/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nui.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/null-ls.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-autopairs/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lastplace/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lightbulb/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-navic/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-neoclip.lua/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-notify/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-spectre/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-surround/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/nvim-window-picker/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/paq-nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/playground/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/stabilize.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-cheat.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-file-browser.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-project.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope-ui-select.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/toggleterm.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/lua", "/home/oli/.local/share/nvim/site/pack/paqs/start/virt-column.nvim/lua", "/home/oli/Workspace/dotfiles/neovim/lua", "${3rd}/luv/library" ]}No final newline+1 / −1 text lines
deleted file mode 100644+0 / −12 text lines
(("local" @keyword) (#set! conceal "⋅"))(("function" @keyword.function) (#set! conceal "ϝ"))(("end" @keyword.function) (#set! conceal "∎"))(("return" @keyword.return) (#set! conceal "↳"))(("then" @conditional) (#set! conceal "⟶"))((dot_index_expression table: (identifier) @variable (#eq? @variable "vim")) (#set! conceal ""))((function_call name: (identifier) @function (#eq? @function "require")) (#set! conceal "")); ((function_call name: (identifier) @function (#eq? @function "want")) (#set! conceal "ω")); ((local_declaration name: (identifier) @variable (#eq? @variable "want") (#set! conceal "ω"))new file mode 100644+21 / −0 text lines
if vim.g.colors_name == nil then -- Get the current hour local current_hour = tonumber(os.date('%H')) -- Set the background based on the time of day if current_hour >= 9 and current_hour < 21 then vim.opt.background = 'light' else vim.opt.background = 'dark' endendvim.g.colors_name = 'nugu'-- this is necessary to toggle light/dark during runtimepackage.loaded['bugabinga.nugu'] = nilpackage.loaded['bugabinga.nugu.palette'] = nillocal lush = require 'lush'local nugu = require 'bugabinga.nugu'lush(nugu)deleted file mode 100644+0 / −21 text lines
-- use builtin lua filetype detectionvim.g.do_filetype_lua = 1-- disable builtin filetype.vimvim.g.did_load_filetypes = 0vim.filetype.add { extension = { service = 'systemd', mount = 'systemd', timer = 'systemd', socket = 'systemd', network = 'systemd', just = 'just', }, filename = { ['justfile'] = 'just', ['Justfile'] = 'just', ['.justfile'] = 'just', ['.Justfile'] = 'just', },}deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644+0 / −231 text lines
local want = require 'bugabinga.std.want'want { 'jdtls', 'lsp-zero', 'nvim-lsp-installer',}(function(jdtls, zero, installer) local debug_log = true local syntax_server = false local project = require 'bugabinga.std.project' local jdtls_root_dir = project.determine_java_project_root('~') if jdtls_root_dir then vim.notify('eclipse.jdt.ls java project root is ' .. jdtls_root_dir) -- even when a project root as found, it does not necessarily mean it is a -- `classic` java project, in the sense that eclipse.jdt.ls thinks of a "project" if not project.is_java_project_root(jdtls_root_dir, home) then -- support for single file mode syntax_server = true end else vim.notify('no root directory for eclipse.jdt.ls could be found.', 'warning') -- support for single file mode syntax_server = true end if syntax_server then vim.notify 'starting eclipse.jdt.ls in syntaxserver mode' end local installed, jdtls_installer = installer.get_server 'jdtls' if not installed then vim.notify('jdtls is not installed!', error) return end local jdtls_install_dir = jdtls_installer.root_dir local jdtls_config_dir = nil local jdtls_syntax_server_config_dir = nil if vim.fn.has 'mac' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_mac' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_mac' elseif vim.fn.has 'unix' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_linux' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_linux' elseif vim.fn.has 'win32' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_win' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_win' else vim.notify('eclipse.jdt.ls cannot be configured for current system.', 'error') return end local project_directory if jdtls_root_dir ~= nil then project_directory = jdtls_root_dir else project_directory = vim.fn.getcwd() end local project_name = vim.fn.fnamemodify(project_directory, ':p:h:t') local nvim_data = vim.fn.stdpath 'data' local jdtls_workspace_dir = nvim_data .. '/eclipse.jdt.ls.workspace/' .. project_name vim.fn.mkdir(jdtls_workspace_dir, 'p') local shared_configuration if syntax_server then shared_configuration = jdtls_syntax_server_config_dir else shared_configuration = jdtls_config_dir end -- sometimes the jdtls cannot start (code 13). -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls" local jdtls_command = { 'java', '-Dsyntaxserver=' .. tostring(syntax_server), '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultStartLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.protocol=' .. tostring(debug_log), '-Dlog.level=ALL', '-XX:+UnlockExperimentalVMOptions', '-XX:+UseZGC', -- '-XX:+UseParallelGC', -- '-XX:GCTimeRatio=4', -- '-XX:AdaptiveSizePolicyWeight=90', '-Dsun.zip.disableMemoryMapping=true', '-Djava.import.generatesMetadataFilesAtProjectRoot=false', '-Xmx4G', '-Xms100m', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '-jar', vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false), '-configuration', shared_configuration, '-data', jdtls_workspace_dir, } -- FIXME: what's this? necessary? local extendedClientCapabilities = jdtls.extendedClientCapabilities extendedClientCapabilities.resolveAdditionalTextEditsSupport = true local server_trace = 'off' if debug_log then server_trace = 'verbose' end -- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local config = { -- The command that starts the language server -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = jdtls_command, -- This is the default if not provided, you can remove it. Or adjust as needed. -- One dedicated LSP server & client will be started per unique root_dir root_dir = jdtls_root_dir, -- Here you can configure eclipse.jdt.ls specific settings -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request -- for a list of options settings = { java = { autobuild = true, sources = { organizeImports = { starThreshold = 9999, staticStarThreshold = 9999, }, }, codeGeneration = { generateComments = true, hashCodeEquals = { useJava7Objects = true, useInstanceOf = true }, -- insertionLocation = '', toString = { listArrayContents = true, skipNullValues = false, }, useBlocks = true, }, completion = { enabled = true, favoriteStaticMembers = { 'org.hamcrest.MatcherAssert.assertThat', 'org.hamcrest.Matchers.*', 'org.hamcrest.CoreMatchers.*', 'org.junit.jupiter.api.Assertions.*', 'java.util.Objects.requireNonNull', 'java.util.Objects.requireNonNullElse', 'org.mockito.Mockito.*', }, filteredTypes = { 'com.sun.*', 'java.awt.*', 'sun.*', }, guessMethodArguments = false, importOrder = { 'java', 'javax', 'javafx', 'com', 'org', 'de', 'net', }, overwrite = false, }, configuration = { --FIXME: configure platforms per host runtimes = { { name = 'JavaSE-1.8', path = '/usr/lib/jvm/java-8-openjdk-amd64', }, { name = 'JavaSE-11', path = '/usr/lib/jvm/java-11-openjdk-amd64', }, { name = 'JavaSE-17', path = '/usr/lib/jvm/java-17-openjdk-amd64', default = true, }, }, updateBuildConfiguration = 'automatic', }, eclipse = { downloadSources = true }, errors = { incompleteClasspath = { severity = 'warning' } }, foldingRange = false, format = { enabled = true, onType = false, }, implementationsCodeLens = true, inlayhints = { parameterNames = true }, maven = { downloadSources = true, updateSnapshots = false }, maxConcurrentBuilds = 8, referenceCodeLens = true, rename = true, saveActions = { organizeImports = true }, selectionRange = true, signatureHelp = true, trace = { server = server_trace }, }, }, -- Language server `initializationOptions` -- You need to extend the `bundles` with paths to jar files -- if you want to use additional eclipse.jdt.ls plugins. -- -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation -- -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this init_options = { -- TODO: integrate debug and test extensions. can those be installed via paq, even though they are not vim plugins? bundles = {}, extendedClientCapabilities = extendedClientCapabilities, }, flags = { debounce_text_changes = 80, allow_incremental_sync = true, }, } -- This starts a new client & server, -- or attaches to an existing client & server depending on the `root_dir`. local merged_config = zero.build_options('jdtls', config) jdtls.start_or_attach(merged_config)end)new file mode 100644+232 / −0 text lines
local want = require 'std.want'want { 'jdtls', 'lsp-zero', 'nvim-lsp-installer',}(function(jdtls, zero, installer) local debug_log = true local syntax_server = false local project = require 'std.project' local home = os.getenv 'HOME' local jdtls_root_dir = project.determine_java_project_root '~' if jdtls_root_dir then vim.notify('eclipse.jdt.ls java project root is ' .. jdtls_root_dir) -- even when a project root as found, it does not necessarily mean it is a -- `classic` java project, in the sense that eclipse.jdt.ls thinks of a "project" if not project.is_java_project_root(jdtls_root_dir, home) then -- support for single file mode syntax_server = true end else vim.notify('no root directory for eclipse.jdt.ls could be found.', 'warning') -- support for single file mode syntax_server = true end if syntax_server then vim.notify 'starting eclipse.jdt.ls in syntaxserver mode' end local installed, jdtls_installer = installer.get_server 'jdtls' if not installed then vim.notify('jdtls is not installed!', error) return end local jdtls_install_dir = jdtls_installer.root_dir local jdtls_config_dir = nil local jdtls_syntax_server_config_dir = nil if vim.fn.has 'mac' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_mac' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_mac' elseif vim.fn.has 'unix' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_linux' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_linux' elseif vim.fn.has 'win32' == 1 then jdtls_config_dir = jdtls_install_dir .. '/config_win' jdtls_syntax_server_config_dir = jdtls_install_dir .. '/config_ss_win' else vim.notify('eclipse.jdt.ls cannot be configured for current system.', 'error') return end local project_directory if jdtls_root_dir ~= nil then project_directory = jdtls_root_dir else project_directory = vim.fn.getcwd() end local project_name = vim.fn.fnamemodify(project_directory, ':p:h:t') local nvim_data = vim.fn.stdpath 'data' local jdtls_workspace_dir = nvim_data .. '/eclipse.jdt.ls.workspace/' .. project_name vim.fn.mkdir(jdtls_workspace_dir, 'p') local shared_configuration if syntax_server then shared_configuration = jdtls_syntax_server_config_dir else shared_configuration = jdtls_config_dir end -- sometimes the jdtls cannot start (code 13). -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls" local jdtls_command = { 'java', '-Dsyntaxserver=' .. tostring(syntax_server), '-Declipse.application=org.eclipse.jdt.ls.core.id1', '-Dosgi.bundles.defaultStartLevel=4', '-Declipse.product=org.eclipse.jdt.ls.core.product', '-Dlog.protocol=' .. tostring(debug_log), '-Dlog.level=INFO', '-XX:+UnlockExperimentalVMOptions', '-XX:+UseZGC', -- '-XX:+UseParallelGC', -- '-XX:GCTimeRatio=4', -- '-XX:AdaptiveSizePolicyWeight=90', '-Dsun.zip.disableMemoryMapping=true', '-Djava.import.generatesMetadataFilesAtProjectRoot=false', '-Xmx4G', '-Xms100m', '--add-modules=ALL-SYSTEM', '--add-opens', 'java.base/java.util=ALL-UNNAMED', '--add-opens', 'java.base/java.lang=ALL-UNNAMED', '-jar', vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false), '-configuration', shared_configuration, '-data', jdtls_workspace_dir, } -- FIXME: what's this? necessary? local extendedClientCapabilities = jdtls.extendedClientCapabilities extendedClientCapabilities.resolveAdditionalTextEditsSupport = true local server_trace = 'off' if debug_log then server_trace = 'verbose' end -- See `:help vim.lsp.start_client` for an overview of the supported `config` options. local config = { -- The command that starts the language server -- See: https://github.com/eclipse/eclipse.jdt.ls#running-from-the-command-line cmd = jdtls_command, -- This is the default if not provided, you can remove it. Or adjust as needed. -- One dedicated LSP server & client will be started per unique root_dir root_dir = jdtls_root_dir, -- Here you can configure eclipse.jdt.ls specific settings -- See https://github.com/eclipse/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request -- for a list of options settings = { java = { autobuild = true, sources = { organizeImports = { starThreshold = 9999, staticStarThreshold = 9999, }, }, codeGeneration = { generateComments = true, hashCodeEquals = { useJava7Objects = true, useInstanceOf = true }, -- insertionLocation = '', toString = { listArrayContents = true, skipNullValues = false, }, useBlocks = true, }, completion = { enabled = true, favoriteStaticMembers = { 'org.hamcrest.MatcherAssert.assertThat', 'org.hamcrest.Matchers.*', 'org.hamcrest.CoreMatchers.*', 'org.junit.jupiter.api.Assertions.*', 'java.util.Objects.requireNonNull', 'java.util.Objects.requireNonNullElse', 'org.mockito.Mockito.*', }, filteredTypes = { 'com.sun.*', 'java.awt.*', 'sun.*', }, guessMethodArguments = false, importOrder = { 'java', 'javax', 'javafx', 'com', 'org', 'de', 'net', }, overwrite = false, }, configuration = { --FIXME: configure platforms per host runtimes = { { name = 'JavaSE-1.8', path = '/usr/lib/jvm/java-8-openjdk-amd64', }, { name = 'JavaSE-11', path = '/usr/lib/jvm/java-11-openjdk-amd64', }, { name = 'JavaSE-17', path = '/usr/lib/jvm/java-17-openjdk-amd64', default = true, }, }, updateBuildConfiguration = 'automatic', }, eclipse = { downloadSources = true }, errors = { incompleteClasspath = { severity = 'warning' } }, foldingRange = false, format = { enabled = true, onType = false, }, implementationsCodeLens = true, inlayhints = { parameterNames = true }, maven = { downloadSources = true, updateSnapshots = false }, maxConcurrentBuilds = 8, referenceCodeLens = true, rename = true, saveActions = { organizeImports = true }, selectionRange = true, signatureHelp = true, trace = { server = server_trace }, }, }, -- Language server `initializationOptions` -- You need to extend the `bundles` with paths to jar files -- if you want to use additional eclipse.jdt.ls plugins. -- -- See https://github.com/mfussenegger/nvim-jdtls#java-debug-installation -- -- If you don't plan on using the debugger or other eclipse.jdt.ls plugins you can remove this init_options = { -- TODO: integrate debug and test extensions. can those be installed via paq, even though they are not vim plugins? bundles = {}, extendedClientCapabilities = extendedClientCapabilities, }, flags = { debounce_text_changes = 80, allow_incremental_sync = true, }, } -- This starts a new client & server, -- or attaches to an existing client & server depending on the `root_dir`. local merged_config = zero.build_options('jdtls', config) jdtls.start_or_attach(merged_config)end)deleted file mode 100644No text changes.
+7 / −4 text lines
-- conceal some syntax with pretty symbols and show them only in -- insert mode. see after/queries/lua/highlights.scm for more.vim.opt_local.conceallevel = 2vim.opt_local.concealcursor = 'nc'-- Options to add `gf` functionality inside `.lua` files.vim.opt_local.include = [[\v<((do|load)file|require)[^''"]*[''"]\zs[^''"]+]]vim.opt_local.includeexpr = "substitute(v:fname,'\\.','/','g')"for _, path in pairs(vim.api.nvim_list_runtime_paths()) do vim.opt_local.path:append(path .. '/lua')endvim.opt_local.suffixesadd:prepend '.lua'+0 / −30 text lines
-- hide code block fencesvim.opt_local.conceallevel = 2local want = require 'bugabinga.std.want'-- local auto = require 'bugabinga.std.auto'local map = require 'bugabinga.std.keymap'want { 'toggleterm.terminal' }(function(toggleterm) local Terminal = toggleterm.Terminal local file = vim.api.nvim_buf_get_name(0) local markdown_preview_command = 'mdcat ' .. file -- this command only shows the correct preview, if the buffer has been saved -- before. i could not figure out how to use the buffer content instead. local mdcat = Terminal:new { cmd = markdown_preview_command, direction = 'float', start_in_insert = false, close_on_exit = false, hidden = true, } map { description = 'Opens a preview of the current markdown buffer.', category = map.CATEGORY.MARKDOWN, mode = map.MODE.NORMAL, keys = '<LEADER>mp', command = function() mdcat:toggle() end, }end)deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
deleted file mode 100644No text changes.
+13 / −146 text lines
vim.g.profile_config = falselocal profiler = require 'bugabinga.profiler'if vim.g.profile_config then profiler.start() end-- the order of the first module to load is non-obvious.-- we want to load the plugins first, because the config depends on those.-- but we also want to load the module-cache plugin first, in order to benefit from caching most modules.-- for this and other reasons, all modules defined here should use a graceful version `require`, that allows handling the absence of modules.-- use either `bugabinga.std.want` or `pcall`.----that way, we can order the modules here logically, assuming all plugins are installed.--if (some) plugins are not installed, the config gracefully degrades in features, but does not throw errors.---- load this before all other plugins so that they may be cachedrequire 'bugabinga.module-cache'-- install plugin manager and declare plugins to userequire 'bugabinga.plugins'require 'bugabinga.options'-- load ui stuffrequire 'bugabinga.notify'require 'bugabinga.colortheme'require 'bugabinga.devicons'require 'bugabinga.colorcolumn'require 'bugabinga.fuzzy-search-ui'require 'bugabinga.colorizer'require 'bugabinga.smooth-scroll'require 'bugabinga.git-status'require 'bugabinga.start-screen'require 'bugabinga.registers'require 'bugabinga.terminal'require 'bugabinga.file-explorer'require 'bugabinga.indent-lines'require 'bugabinga.search'require 'bugabinga.replace'require 'bugabinga.windows'require 'bugabinga.problems'-- load editor featuresrequire 'bugabinga.move-code'require 'bugabinga.last-known-position'require 'bugabinga.fast-navigation'require 'bugabinga.comments'require 'bugabinga.clipboard'require 'bugabinga.autopairs'require 'bugabinga.todo'require 'bugabinga.markdown'require 'bugabinga.surround'-- treesitterrequire 'bugabinga.treesitter'require 'bugabinga.lsp'-- diagnosticrequire 'bugabinga.diagnostic'if vim.g.profile_config then profiler.stop() end-- TODO: fix gitsigns highights-- TODO: preview multimedia with telescope-- TODO: nugu theme-- TODO: hydra cycle buffers-- TODO: cross platform status bar-- TODO: show winbar-- TODO: show read only files in winbar-- TODO: load plugins/init.lua and sync on write. reload init.lua?-- TODO: use nvim-specific lsp only in neovim config-- TODO: steal filetype settings from shark, astrovim, lunarvim etc-- TODO: is it possible to cache LSP init per project?-- TODO: DAP-- TODO: fix cursor flicker when openinig neotree and other windows stuff in lsp buffers-- require 'bugabinga.lsp'-- [ ] add languiageserver to null-ls-- [ ] undofile not work?-- [ ] why does redo not work?-- [ ] start a toggleterm with: watch <buffer> { clear; mdcat <buffer> }-- [ ] load plugins/init.lua and sync on write. reload init.lua?-- [ ] disable gomove in special buffers-- [ ] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04-- [ ] use languagetool-- [ ] evaluate using nvim-lint, formatter.nvim, hober.nvim and instead of nullls-- [x] JDTLS-- [~] bindings for luadev-- [~] close toogleterms on quit-- [-] LSP diagnostics on save-- [x] make focus handle hybrid linenumbers and less jitter-- [x] disable shade for some buffers-- [~] turn off colorcolumns in certain buffers, only show in active buffer, use focus?-- [~] check for system dependecneis, extend checkhealth?-- [~] illuminate+LSP + treesitter.refactor.highlight.definitions-- [x] LSP-- [~] gf to lua modules-- [x] AUTOCMD-- [x] COMPLETION-- [x] JAVA, RUST, ZIG-- [~] MARKDOWN-- [~] nushell-- [x] XML, TOML, JSON, YAML-- [x] TREESITTER-- [~] ~~SVN~~-- [~] ~~VIM-ENEUCH for nvim~~-- [x] KEYBINDINGS-- [x] PAQ-- [x] impatient-- [x] icons + colorscheme-- [x] TELESCOPE-- [x] TERMINAL-- [x] GIT-- [x] TREE-- [x] restore last cursor position-- [x] bind nohl-- [x] configure Comment---- https://github.com/lukas-reineke/lsp-format.nvim-- https://github.com/windwp/windline.nvim-- https://github.com/hrsh7th/nvim-pasta-- https://github.com/Saecki/crates.nvim-- https://github.com/VonHeikemen/little-wonder-- https://github.com/mfussenegger/nvim-lint-- https://github.com/mhartington/formatter.nvim-- https://github.com/lewis6991/hover.nvim-- https://github.com/VonHeikemen/project-settings.nvim-- https://github.com/jinh0/eyeliner.nvim-- https://github.com/iamcco/markdown-preview.nvim-- https://github.com/jakewvincent/mkdnflow.nvim-- https://github.com/rktjmp/lush.nvim-- https://github.com/jbyuki/venn.nvim-- https://github.com/ziontee113/color-picker.nvim-- https://github.com/sQVe/sort.nvim-- https://github.com/ThePrimeagen/harpoon---- DAP PLUGINS-- https://github.com/mfussenegger/nvim-dap-- https://github.com/nvim-telescope/telescope-dap.nvim-- https://github.com/theHamsta/nvim-dap-virtual-text-- https://github.com/rcarriga/nvim-dap-ui+6 / −13 text lines
# Update neovim plugins via paq sync. Closes itself right after update.update: nvim --headless -u NONE -i NONE --cmd "lua require('bugabinga.plugins.headless')"profile_file := `$"startuptime/(sys | get host | get hostname)_(date now | date format '%Y_%m_%d_%H_%M_%S').txt"`# Profile startuptime of neovim. Depends on vim-startuptime.profile: vim-startuptime -vimpath nvim -count 100 -warmup 10 init.lua | save {{profile_file}} open {{profile_file}}profile_baseline: vim-startuptime -vimpath nvim -count 100 -warmup 10 -- init.lua --noplugin -i NONE -u NONE -n# delete all current neovim state, cache and other ephemeral data.# does NOT delete the configsnuke: rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[data]]' +:q | lines | last) rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[cache]]' +:q | lines | last) rm -r (run-external --redirect-combine nvim "--headless" "-n" "-R" +'lua = vim.fn.stdpath[[state]]' +:q | lines | last)new file mode 100644+47 / −0 text lines
{ "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" }, "better-escape.nvim": { "branch": "master", "commit": "7031dc734add47bb71c010e0551829fa5799375f" }, "cmp-omni": { "branch": "main", "commit": "9436e6cdd7c5dfa24a99a60d9280b24dbdea3649" }, "dressing.nvim": { "branch": "master", "commit": "e6eff7a5a950a853c3903d906dbcea03f778db5f" }, "gitsigns.nvim": { "branch": "main", "commit": "5a04466685008f29c71fa5ec25d421deb1c83fea" }, "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" }, "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" }, "hlargs.nvim": { "branch": "main", "commit": "cfc9beab4e176a13311efe03e38e6b6fed5df4f6" }, "indent-blankline.nvim": { "branch": "master", "commit": "b7aa0aed55887edfaece23f7b46ab22232fc8741" }, "indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" }, "lazy.nvim": { "branch": "main", "commit": "14d76aac4bd3ff07c1fca074c210f28f766a931e" }, "lush.nvim": { "branch": "main", "commit": "b10ef2bfff0647e701b691019ade3edd5e44eb50" }, "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" }, "noice.nvim": { "branch": "main", "commit": "6c87c1d11c38180fb72bf8f45518a0a3e081afc1" }, "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" }, "nui.nvim": { "branch": "main", "commit": "7a524120a7a70761b5a65b602fd235a65cb005aa" }, "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" }, "nvim-cmp": { "branch": "main", "commit": "983453e32cb35533a119725883c04436d16c0120" }, "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" }, "nvim-genghis": { "branch": "main", "commit": "6278a9e05f2daac5578ac043d9372f71a4ddf07c" }, "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" }, "nvim-lastplace": { "branch": "main", "commit": "aeb0e0bd399288092729da89a9e51dda4ccbc9ec" }, "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" }, "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" }, "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" }, "nvim-treesitter": { "branch": "master", "commit": "39f10b0b14184f746a0c9e7475c5ea81a9a812f6" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "52f1f3280d9092bfaee5c45be5962fabee3d9654" }, "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" }, "nvim-web-devicons": { "branch": "master", "commit": "9ab9b0b894b2388a9dbcdee5f00ce72e25d85bf9" }, "oil.nvim": { "branch": "master", "commit": "0138a2e0f9baacd98d5531ebb5078fafc5114fae" }, "playground": { "branch": "master", "commit": "2b81a018a49f8e476341dfcb228b7b808baba68b" }, "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" }, "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" }, "substitute.nvim": { "branch": "main", "commit": "42d09f1e6324d98aa2e5b765b64528e0aefe72b0" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "e03ff55962417b69c85ef41424079bb0580546ba" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "9bc8237565ded606e6c366a71c64c0af25cd7a50" }, "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" }, "telescope.nvim": { "branch": "0.1.x", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }, "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" }, "tokyonight.nvim": { "branch": "main", "commit": "a0a7bfbc4c54348b56880a162afac9d103c618c1" }, "treesj": { "branch": "main", "commit": "3203aa553217921fd4dcb79245f9df07278910b2" }, "twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" }, "virt-column.nvim": { "branch": "master", "commit": "93b40ea038f676f5a72d7d1f2336fe7b051fc0ce" }, "zen-mode.nvim": { "branch": "main", "commit": "68f554702de63f4b7b6b6d4bcb10178f41a0acc7" }}No final newlinedeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −4 text lines
deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −28 text lines
local want = require 'bugabinga.std.want'want { 'colorizer' }(function(colorizer) colorizer.setup { filetypes = { "*" }, user_default_options = { RGB = true, -- #RGB hex codes RRGGBB = true, -- #RRGGBB hex codes names = true, -- "Name" codes like Blue or blue RRGGBBAA = false, -- #RRGGBBAA hex codes AARRGGBB = false, -- 0xAARRGGBB hex codes rgb_fn = false, -- CSS rgb() and rgba() functions hsl_fn = false, -- CSS hsl() and hsla() functions css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn -- Available modes for `mode`: foreground, background, virtualtext mode = "background", -- Set the display mode. -- Available methods are false / true / "normal" / "lsp" / "both" -- True is same as normal tailwind = false, -- Enable tailwind colors -- parsers can contain values used in |user_default_options| sass = { enable = false, parsers = { css }, }, -- Enable sass colors virtualtext = "■", }, -- all the sub-options of filetypes apply to buftypes buftypes = {}, }end)deleted file mode 100644+0 / −17 text lines
local want = require 'bugabinga.std.want'want { 'boo-colorscheme' } (function(boo) local themes = { 'sunset_cloud', 'radioactive_waste', 'forest_stream', 'crimson_moonlight'} local random_theme = themes[(math.floor(math.random() * #themes))] boo.use{ italic = true, theme = random_theme, } vim.api.nvim_set_hl(0, 'LspReferenceText', {}) vim.api.nvim_set_hl(0, 'LspReferenceRead', { standout = true, }) vim.api.nvim_set_hl(0, 'LspReferenceWrite', { standout = true, bold = true, })end)deleted file mode 100644+0 / −60 text lines
local map = require 'bugabinga.std.keymap'local want = require 'bugabinga.std.want'want { 'Comment' } (function(comment) comment.setup { mappings = { basic = false, extra = false, extended = false, }, } -- taken from documentation, not sure why exactly these options are necessary local options = { expr = true, remap = true } map { description = 'Toggle linewise comment', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = 'gcc', command = "v:count == 0 ? '<Plug>(comment_toggle_current_linewise)' : '<Plug>(comment_toggle_linewise_count)'", options = options, } map { description = 'Toggle blockwise comment', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = 'gbc', command = "v:count == 0 ? '<Plug>(comment_toggle_current_blockwise)' : '<Plug>(comment_toggle_blockwise_count)'", options = options, } map { description = 'Toggle motion linewise comment', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = 'gc', command = '<Plug>(comment_toggle_linewise)', } map { description = 'Toggle motion blockwise comment', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = 'gb', command = '<Plug>(comment_toggle_blockwise)', } map { description = 'Toggle visual linewise comment', category = map.CATEGORY.EDITING, mode = map.MODE.VISUAL, keys = 'gc', command = '<Plug>(comment_toggle_linewise_visual)', } map { description = 'Toggle visual blockwise comment', category = map.CATEGORY.EDITING, mode = map.MODE.VISUAL, keys = 'gb', command = '<Plug>(comment_toggle_blockwise_visual)', }end)deleted file mode 100644+0 / −125 text lines
-- TODO: once the colortheme is lushified, use it as a source of colors herelocal want = require 'bugabinga.std.want'want { 'nvim-web-devicons' } (function(devicons) devicons.setup { -- return a default icon when icon query cannot be mapped to existing icon default = true, override = { -- -- FILE sh = { icon = '', color = '#1DC123', cterm_color = '59', name = 'Sh' }, toml = { icon = '', color = '#e24329', cterm_color = '59', name = 'Toml' }, justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, Justfile = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.Justfile'] = { icon = 'ﮧ', color = '#999eff', cterm_color = '59', name = 'Justfile' }, ['.gitattributes'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitAttributes' }, ['.gitconfig'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitConfig' }, ['.gitignore'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitIgnore' }, ['.gitlab-ci.yml'] = { icon = '', color = '#e24329', cterm_color = '166', name = 'GitlabCI' }, ['.gitmodules'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'GitModules' }, ['diff'] = { icon = '', color = '#e24329', cterm_color = '59', name = 'Diff' }, -- -- KIND Text = { icon = '', color = '#949494', cterm_color = '59', name = 'TextSymbol' }, Method = { icon = 'm', color = '#949494', cterm_color = '59', name = 'MethodSymbol' }, Function = { icon = '', color = '#949494', cterm_color = '59', name = 'FunctionSymbol' }, Constructor = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstructorSymbol' }, Field = { icon = '', color = '#949494', cterm_color = '59', name = 'FieldSymbol' }, Variable = { icon = '', color = '#949494', cterm_color = '59', name = 'VariableSymbol' }, Class = { icon = '', color = '#949494', cterm_color = '59', name = 'ClassSymbol' }, Interface = { icon = '', color = '#949494', cterm_color = '59', name = 'InterfaceSymbol' }, Module = { icon = '', color = '#949494', cterm_color = '59', name = 'ModuleSymbol' }, Property = { icon = '', color = '#949494', cterm_color = '59', name = 'PropertySymbol' }, Unit = { icon = '', color = '#949494', cterm_color = '59', name = 'UnitSymbol' }, Value = { icon = '', color = '#949494', cterm_color = '59', name = 'ValueSymbol' }, Enum = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumSymbol' }, Keyword = { icon = '', color = '#949494', cterm_color = '59', name = 'KeywordSymbol' }, Snippet = { icon = '', color = '#949494', cterm_color = '59', name = 'SnippetSymbol' }, Color = { icon = '', color = '#949494', cterm_color = '59', name = 'ColorSymbol' }, File = { icon = '', color = '#949494', cterm_color = '59', name = 'FileSymbol' }, Reference = { icon = '', color = '#949494', cterm_color = '59', name = 'ReferenceSymbol' }, Folder = { icon = '', color = '#949494', cterm_color = '59', name = 'FolderSymbol' }, EnumMember = { icon = '', color = '#949494', cterm_color = '59', name = 'EnumMemberSymbol' }, Constant = { icon = '', color = '#949494', cterm_color = '59', name = 'ConstantSymbol' }, Struct = { icon = '', color = '#949494', cterm_color = '59', name = 'StructSymbol' }, Event = { icon = '', color = '#949494', cterm_color = '59', name = 'EventSymbol' }, Operator = { icon = '', color = '#949494', cterm_color = '59', name = 'OperatorSymbol' }, TypeParameter = { icon = '', color = '#949494', cterm_color = '59', name = 'TypeParameterSymbol' }, -- -- TYPE Array = { icon = '', color = '#949494', cterm_color = '59', name = 'ArraySymbol' }, Number = { icon = '', color = '#949494', cterm_color = '59', name = 'NumberSymbol' }, String = { icon = '', color = '#949494', cterm_color = '59', name = 'StringSymbol' }, Boolean = { icon = '蘒', color = '#949494', cterm_color = '59', name = 'BooleanSymbol' }, Object = { icon = '', color = '#949494', cterm_color = '59', name = 'ObjectSymbol' }, -- -- DOCUMENTS Files = { icon = '', color = '#949494', cterm_color = '59', name = 'FilesSymbol' }, OpenFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'OpenFolderSymbol' }, EmptyFolder = { icon = '', color = '#949494', cterm_color = '59', name = 'EmptyFolderSymbol' }, -- -- VCS VcsAdded = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsAddedSymbol' }, VcsModified = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsModifiedSymbol' }, VcsRemoved = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRemovedSymbol' }, VcsIgnored = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsIgnoredSymbol' }, VcsRenamed = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRenamedSymbol' }, VcsDiff = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsDiffSymbol' }, VcsRepo = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsRepoSymbol' }, VcsUntracked = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUntrackedSymbol' }, VcsUnstaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsUnstagedSymbol' }, VcsStaged = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsStagedSymbol' }, VcsConflicted = { icon = '', color = '#949494', cterm_color = '59', name = 'VcsConflictedSymbol' }, -- --UI ArrowClosed = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowClosedSymbol' }, ArrowOpen = { icon = '', color = '#949494', cterm_color = '59', name = 'ArrowOpenSymbol' }, Lock = { icon = '', color = '#949494', cterm_color = '59', name = 'LockSymbol' }, Circle = { icon = '', color = '#949494', cterm_color = '59', name = 'CircleSymbol' }, BigCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigCircleSymbol' }, BigUnfilledCircle = { icon = '', color = '#949494', cterm_color = '59', name = 'BigUnfilledCircleSymbol' }, Close = { icon = '', color = '#949494', cterm_color = '59', name = 'CloseSymbol' }, NewFile = { icon = '', color = '#949494', cterm_color = '59', name = 'NewFileSymbol' }, Search = { icon = '', color = '#949494', cterm_color = '59', name = 'SearchSymbol' }, Lightbulb = { icon = '', color = '#949494', cterm_color = '59', name = 'LightbulbSymbol' }, Project = { icon = '', color = '#949494', cterm_color = '59', name = 'ProjectSymbol' }, Dashboard = { icon = '', color = '#949494', cterm_color = '59', name = 'DashboardSymbol' }, History = { icon = '', color = '#949494', cterm_color = '59', name = 'HistorySymbol' }, Comment = { icon = '', color = '#949494', cterm_color = '59', name = 'CommentSymbol' }, Bug = { icon = '', color = '#949494', cterm_color = '59', name = 'BugSymbol' }, Code = { icon = '', color = '#949494', cterm_color = '59', name = 'CodeSymbol' }, Telescope = { icon = '', color = '#949494', cterm_color = '59', name = 'TelescopeSymbol' }, Gear = { icon = '', color = '#949494', cterm_color = '59', name = 'GearSymbol' }, Package = { icon = '', color = '#949494', cterm_color = '59', name = 'PackageSymbol' }, List = { icon = '', color = '#949494', cterm_color = '59', name = 'ListSymbol' }, SignIn = { icon = '', color = '#949494', cterm_color = '59', name = 'SignInSymbol' }, SignOut = { icon = '', color = '#949494', cterm_color = '59', name = 'SignOutSymbol' }, Check = { icon = '', color = '#949494', cterm_color = '59', name = 'CheckSymbol' }, Fire = { icon = '', color = '#949494', cterm_color = '59', name = 'FireSymbol' }, Note = { icon = '', color = '#949494', cterm_color = '59', name = 'NoteSymbol' }, BookMark = { icon = '', color = '#949494', cterm_color = '59', name = 'BookMarkSymbol' }, Pencil = { icon = '', color = '#949494', cterm_color = '59', name = 'PencilSymbol' }, ChevronRight = { icon = '', color = '#949494', cterm_color = '59', name = 'ChevronRightSymbol' }, Table = { icon = '', color = '#949494', cterm_color = '59', name = 'TableSymbol' }, Calendar = { icon = '', color = '#949494', cterm_color = '59', name = 'CalendarSymbol' }, CloudDownload = { icon = '', color = '#949494', cterm_color = '59', name = 'CloudDownloadSymbol' }, -- -- DIAGNOSTICS Error = { icon = '', color = '#949494', cterm_color = '59', name = 'ErrorSymbol' }, Warning = { icon = '', color = '#949494', cterm_color = '59', name = 'WarningSymbol' }, Information = { icon = '', color = '#949494', cterm_color = '59', name = 'InformationSymbol' }, Question = { icon = '', color = '#949494', cterm_color = '59', name = 'QuestionSymbol' }, Hint = { icon = '', color = '#949494', cterm_color = '59', name = 'HintSymbol' }, -- -- MISCELLANEOUS Robot = { icon = 'ﮧ', color = '#949494', cterm_color = '59', name = 'RobotSymbol' }, Squirrel = { icon = '', color = '#949494', cterm_color = '59', name = 'SquirrelSymbol' }, Tag = { icon = '', color = '#949494', cterm_color = '59', name = 'TagSymbol' }, Watch = { icon = '', color = '#949494', cterm_color = '59', name = 'WatchSymbol' }, }, } -- devicons will return some default icon, when an icon name could not be mapped. -- in order to quickly notice these cases and debug them, set a noticeable icon as default. devicons.set_default_icon('ﴫ', '#ff00ff')end)+122 / −120 text lines
diagnostic.disable(0) local message = context.message local severity = context.severity local symbol = '' if severity == diagnostic.severity.ERROR then symbol = icon 'Error' elseif severity == diagnostic.severity.WARN then symbol = icon 'Warning' elseif severity == diagnostic.severity.INFO then symbol = icon 'Information' elseif severity == diagnostic.severity.HINT then symbol = icon 'Hint' end return string.format('%s | %s', symbol, message) return string.format('%s: %s', display_name[context.severity], context.message) local source = context.source local severity = context.severity local symbol = '' if severity == diagnostic.severity.ERROR then symbol = icon 'Error' elseif severity == diagnostic.severity.WARN then symbol = icon 'Warning' elseif severity == diagnostic.severity.INFO then symbol = icon 'Information' elseif severity == diagnostic.severity.HINT then symbol = icon 'Hint' end return string.format('%s/%s %s %s ', index, total, source, symbol) return string.format('%s/%s %s %s ', index, total, context.source, icon[context.severity]), 'DiagnosticVirtualText'.. display_name[context.severity] underline = { severity = diagnostic.severity.ERROR, }, virtual_text = { severity = diagnostic.severity.HINT, source = false, spacing = 0, prefix = '', format = diagnostic_format, }, float = { focusable = false, style = 'minimal', border = 'rounded', source = false, header = '', prefix = prefix_format, }, update_in_insert = false, signs = true, severity_sort = true, underline = true, virtual_text = { severity = { min = diagnostic.severity.WARN }, source = false, spacing = 2, prefix = '⦿ ', format = diagnostic_format, }, float = { focusable = false, style = 'minimal', border = 'rounded', source = 'if_many', header = 'Diagnostic', suffix = header_format, prefix = prefix_format, }, update_in_insert = false, signs = true, severity_sort = true,auto 'hide_diagnostics' { description = 'Hide diagnostics by default', events = { 'BufReadPre' }, pattern = '*', command = function() diagnostic.disable(0) end,}local saved_cursor_highlight = vim.api.nvim_get_hl_by_name('Cursor', true)-- TODO: get colors from themelocal noticeable = { foreground = '#ffffff', background = '#ff0000'}auto 'cursor_attention_if_diagnostics' { description = 'Make cursor very noticeable, if diagnostics are present', events = 'DiagnosticChanged', pattern = '*', command = function() local diagnostic_number = #vim.diagnostic.get(0,{severity = vim.diagnostic.severity.ERROR}) if diagnostic_number > 0 then vim.api.nvim_set_hl(0, 'Cursor', noticeable) vim.api.nvim_set_hl(0, 'Cursor', saved_cursor_highlight) diagnostic.disable(0) vim.notify 'Disabling Diagnostics' end end,}local show_diagnostics = function() want'telescope.builtin'( function(builtin) builtin.diagnostics() end, function() -- seems to have bug: https://github.com/neovim/neovim/issues/21949 diagnostic.open_float() end)endmap.normal { name = 'Show diagnostics in float window', category = 'diagnostic', keys = '<F6>', command = function() if #diagnostic.get(0) > 0 then if diagnostic.is_disabled(0) then diagnostic.enable(0) vim.notify 'Enabling Diagnostics' end show_diagnostics() else vim.notify 'No diagnostics to show!'map { description = 'Enable diagnostics', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P, command = function() diagnostic.enable(0) end,}map { description = 'Disable diagnostics', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.P, command = function() diagnostic.disable(0) end,}map { description = 'Show diagnostics in float window', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.F6, command = function() diagnostic.enable(0) diagnostic.open_float() end,}map { description = 'Go to previous diagnostic', category = map.CATEGORY.PROBLEMS, mode = map.MODE.NORMAL, keys = map.KEY.F7,-- a little debug helper to show all kinds of diagnosticslocal dia = function( severity, line ) local ns = vim.api.nvim_create_namespace('test'.. tostring(severity)) local bufnr = vim.api.nvim_get_current_buf() local diagnostic = { bufnr = bufnr, lnum = line, end_lnum = line, col = 0, severity = severity, message = 'This is a test ' .. tostring(severity) .. ' diagnostic', } vim.diagnostic.set(ns, bufnr, {diagnostic}) vim.diagnostic.show(ns, bufnr, {diagnostic}) endlocal send_dia = function() dia(vim.diagnostic.severity.ERROR, 1) dia(vim.diagnostic.severity.WARN, 2) dia(vim.diagnostic.severity.INFO, 3) dia(vim.diagnostic.severity.HINT, 4)endvim.g.send_dia = send_diadeleted file mode 100644+0 / −4 text lines
deleted file mode 100644+0 / −349 text lines
local want = require 'bugabinga.std.want'local map = require 'bugabinga.std.keymap'local fmt = require 'bugabinga.std.fmt'local icon = require 'bugabinga.std.icon'want { 'window-picker', 'neo-tree',} (function(picker, tree) picker.setup { autoselect_one = true, include_current = false, filter_rules = { -- filter using buffer options bo = { -- if the file type is one of following, the window will be ignored filetype = { 'neo-tree', 'neo-tree-popup', 'notify', 'quickfix' }, -- if the buffer type is one of following, the window will be ignored buftype = { 'terminal' }, }, }, --TODO: get this color from colortheme other_win_hl_color = '#7e297e', } -- Unless you are still migrating, remove the deprecated commands from v1.x vim.g.neo_tree_remove_legacy_commands = 1 map { description = 'Open File Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E, command = fmt.cmd 'Neotree filesystem reveal right toggle', } map { description = 'Open Buffer Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.B, command = fmt.cmd 'Neotree buffers reveal float toggle', } map { description = 'Open Git Explorer', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.E .. map.KEY.G, command = fmt.cmd 'Neotree git_status reveal current toggle', } tree.setup { close_if_last_window = false, -- Close Neo-tree if it is the last window left in the tab -- popup_border_style is for input and confirmation dialogs. -- Configurtaion of floating window is done in the individual source sections. -- "NC" is a special style that works well with NormalNC set close_floats_on_escape_key = true, default_source = 'filesystem', enable_diagnostics = true, enable_git_status = true, enable_modified_markers = true, -- Show markers for files with unsaved changes. enable_refresh_on_write = true, -- Refresh the tree when a file is written. Only used if `use_libuv_file_watcher` is false. git_status_async = true, -- These options are for people with VERY large git repos git_status_async_options = { batch_size = 1000, -- how many lines of git status results to process at a time batch_delay = 10, -- delay in ms between batches. Spreads out the workload to let other processes run. max_lines = 10000, -- How many lines of git status results to process. Anything after this will be dropped. -- Anything before this will be used. The last items to be processed are the untracked files. }, log_level = 'info', -- "trace", "debug", "info", "warn", "error", "fatal" log_to_file = false, -- true, false, "/path/to/file.log", use :NeoTreeLogs to show the file open_files_in_last_window = true, -- false = open files in top left window popup_border_style = 'NC', -- "double", "none", "rounded", "shadow", "single" or "solid" resize_timer_interval = 500, -- in ms, needed for containers to redraw right aligned and faded content sort_case_insensitive = false, -- used when sorting files and directories in the tree sort_function = nil, -- uses a custom function for sorting files and directories in the tree use_popups_for_input = true, -- If false, inputs will use vim.ui.input() instead of custom floats. use_default_mappings = true, default_component_configs = { container = { enable_character_fade = true, }, indent = { indent_size = 2, padding = 1, -- indent guides with_markers = true, indent_marker = '│', last_indent_marker = '└', highlight = 'NeoTreeIndentMarker', -- expander config, needed for nesting files with_expanders = nil, -- if nil and file nesting is enabled, will enable expanders expander_collapsed = icon 'ArrowClosed', expander_expanded = icon 'ArrowOpen', expander_highlight = 'NeoTreeExpander', }, icon = { folder_closed = icon 'Folder', folder_open = icon 'OpenFolder', folder_empty = icon 'EmptyFolder', }, modified = { symbol = icon 'VcsModified', highlight = 'NeoTreeModified', }, name = { trailing_slash = false, use_git_status_colors = true, highlight = 'NeoTreeFileName', }, git_status = { symbols = { -- Change type added = icon 'VcsAdded', deleted = icon 'VcsRemoved', modified = icon 'VcsModified', renamed = icon 'VcsRenamed', -- Status type untracked = icon 'VcsUntracked', ignored = icon 'VcsIgnored', unstaged = icon 'VcsUnstaged', staged = icon 'VcsStaged', conflict = icon 'VcsConflicted', }, align = 'right', }, }, renderers = { directory = { { 'indent' }, { 'icon' }, { 'current_filter' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', zindex = 10 }, { 'clipboard', zindex = 10 }, { 'diagnostics', errors_only = true, zindex = 20, align = 'right' }, }, }, }, file = { { 'indent' }, { 'icon' }, { 'container', width = '100%', right_padding = 1, --max_width = 60, content = { { 'name', use_git_status_colors = true, zindex = 10, }, { 'clipboard', zindex = 10 }, { 'bufnr', zindex = 10 }, { 'modified', zindex = 20, align = 'right' }, { 'diagnostics', zindex = 20, align = 'right' }, { 'git_status', zindex = 20, align = 'right' }, }, }, }, message = { { 'indent', with_markers = false }, { 'name', highlight = 'NeoTreeMessage' }, }, terminal = { { 'indent' }, { 'icon' }, { 'name' }, { 'bufnr' }, }, }, nesting_rules = {}, window = { -- see https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/popup for -- possible options. These can also be functions that return these options. position = 'left', -- left, right, float, current width = 40, -- applies to left and right positions popup = { -- settings that apply to float position only size = { height = '80%', width = '50%', }, position = '50%', -- 50% means center it -- you can also specify border here, if you want a different setting from -- the global popup_border_style. }, -- Mappings for tree window. See `:h neo-tree-mappings` for a list of built-in commands. -- You can also create your own commands by providing a function instead of a string. mapping_options = { noremap = true, nowait = true, }, mappings = { ['<space>'] = { 'toggle_node', nowait = false, -- disable `nowait` if you have existing combos starting with this char that you want to use }, ['<2-LeftMouse>'] = 'open', ['<cr>'] = 'open', ['S'] = 'split_with_window_picker', ['s'] = 'vsplit_with_window_picker', ['t'] = 'open_tabnew', ['w'] = 'open_with_window_picker', ['C'] = 'close_node', ['z'] = 'close_all_nodes', ['R'] = 'refresh', ['a'] = { 'add', -- some commands may take optional config options, see `:h neo-tree-mappings` for details config = { show_path = 'none', -- "none", "relative", "absolute" }, }, ['A'] = 'add_directory', -- also accepts the config.show_path option. ['d'] = 'delete', ['<F2>'] = 'rename', ['y'] = 'copy_to_clipboard', ['x'] = 'cut_to_clipboard', ['p'] = 'paste_from_clipboard', ['c'] = 'copy', -- takes text input for destination, also accepts the config.show_path option ['m'] = 'move', -- takes text input for destination, also accepts the config.show_path option ['q'] = 'close_window', ['?'] = 'show_help', }, }, filesystem = { window = { mappings = { ['H'] = 'toggle_hidden', ['/'] = 'fuzzy_finder', ['f'] = 'filter_on_submit', ['<C-x>'] = 'clear_filter', ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['[g'] = 'prev_git_modified', [']g'] = 'next_git_modified', }, }, async_directory_scan = 'auto', -- "auto" means refreshes are async, but it's synchronous when called from the Neotree commands. -- "always" means directory scans are always async. -- "never" means directory scans are never async. bind_to_cwd = true, -- true creates a 2-way binding between vim's cwd and neo-tree's root -- The renderer section provides the renderers that will be used to render the tree. -- The first level is the node type. -- For each node type, you can specify a list of components to render. -- Components are rendered in the order they are specified. -- The first field in each component is the name of the function to call. -- The rest of the fields are passed to the function as the "config" argument. filtered_items = { visible = true, -- when true, they will just be displayed differently than normal items force_visible_in_empty_folder = false, -- when true, hidden files will be shown if the root folder is otherwise empty show_hidden_count = false, -- when true, the number of hidden items in each folder will be shown as the last entry hide_dotfiles = true, hide_gitignored = true, hide_hidden = true, -- only works on Windows for hidden files/directories hide_by_name = { '.DS_Store', 'thumbs.db', 'node_modules', 'zig-cache', 'target', }, hide_by_pattern = { -- uses glob style patterns --"*.meta" }, never_show = { -- remains hidden even if visible is toggled to true --".DS_Store", --"thumbs.db" }, }, find_by_full_path_words = false, -- `false` means it only searches the tail of a path. -- `true` will change the filter into a full path -- search with space as an implicit ".*", so -- `fi init` -- will match: `./sources/filesystem/init.lua --find_command = "fd", -- this is determined automatically, you probably don't need to set it --find_args = { -- you can specify extra args to pass to the find command. -- fd = { -- "--exclude", ".git", -- "--exclude", "node_modules" -- } --}, ---- or use a function instead of list of strings --find_args = function(cmd, path, search_term, args) -- if cmd ~= "fd" then -- return args -- end -- --maybe you want to force the filter to always include hidden files: -- table.insert(args, "--hidden") -- -- but no one ever wants to see .git files -- table.insert(args, "--exclude") -- table.insert(args, ".git") -- -- or node_modules -- table.insert(args, "--exclude") -- table.insert(args, "node_modules") -- --here is where it pays to use the function, you can exclude more for -- --short search terms, or vary based on the directory -- if string.len(search_term) < 4 and path == "/home/cseickel" then -- table.insert(args, "--exclude") -- table.insert(args, "Library") -- end -- return args --end, group_empty_dirs = false, -- when true, empty folders will be grouped together search_limit = 50, -- max number of search results when using filters follow_current_file = false, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. hijack_netrw_behavior = 'open_default', -- netrw disabled, opening a directory opens neo-tree -- in whatever position is specified in window.position -- "open_current",-- netrw disabled, opening a directory opens within the -- window like netrw would, regardless of window.position -- "disabled", -- netrw left alone, neo-tree does not handle opening dirs use_libuv_file_watcher = true, -- This will use the OS level file watchers to detect changes -- instead of relying on nvim autocmd events. }, buffers = { bind_to_cwd = true, follow_current_file = true, -- This will find and focus the file in the active buffer every time -- the current file is changed while the tree is open. group_empty_dirs = true, -- when true, empty directories will be grouped together window = { mappings = { ['<bs>'] = 'navigate_up', ['.'] = 'set_root', ['bd'] = 'buffer_delete', }, }, }, git_status = { window = { mappings = { ['A'] = 'git_add_all', ['gu'] = 'git_unstage_file', ['ga'] = 'git_add_file', ['gr'] = 'git_revert_file', ['gc'] = 'git_commit', ['gp'] = 'git_push', ['gg'] = 'git_commit_and_push', }, }, }, }end)deleted file mode 100644+0 / −66 text lines
local map = require 'bugabinga.std.keymap'local want = require 'bugabinga.std.want'want { 'telescope', 'command_center', 'dressing' } (function(telescope, command_center, dressing) -- Command Center gets loaded here to configure it in the context of Telescope. -- DO NOT use it to add keybindings. -- Instead, use the `bugabinga.std.keymap` facade. map { name = 'Open Command Center', description = 'Opens the Command Center with Telescope to show all available keybound commands.', mode = map.MODE.NORMAL, keys = '<C-p>', command = function() telescope.extensions.command_center.command_center() end, } telescope.setup { extensions = { command_center = { -- Change what to show on telescope prompt and in which order -- Currently support the following three components -- Components may repeat components = { command_center.component.DESCRIPTION, command_center.component.KEYBINDINGS, -- command_center.component.COMMAND, }, -- Change the separator used to separate each component separator = ' ', -- When set to false, -- The description compoenent will be empty if it is not specified auto_replace_desc_with_cmd = false, }, }, } local extensions = { -- Plug Command Center into Telescope 'command_center', -- show history of notifications 'notify', -- save yank history 'neoclip', -- telescope for vim.ui.select 'ui-select', -- cheat sheet 'cheat', -- file browser 'file_browser', -- manage projects 'project', } for _, extension in pairs(extensions) do if not pcall(telescope.load_extension, extension) then vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error') end end dressing.setup { input = { enable = true }, -- vim.ui.select is already handled by telescope extension select = { enable = false }, }end)deleted file mode 100644+0 / −71 text lines
local fmt = require 'bugabinga.std.fmt'local map = require 'bugabinga.std.keymap'local want = require 'bugabinga.std.want'want { 'gitsigns' } (function(gitsigns) map { description = 'toogle git status line highlight', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.L, command = fmt.cmd'gitsigns toggle_linehl', } map { description = 'toogle git status signs', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.S, command = fmt.cmd'gitsigns toggle_signs', } map { description = 'Toogle Git Blame Line', category = map.CATEGORY.VERSION_CONTROL, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.V .. map.KEY.B, command = fmt.cmd'Gitsigns toggle_current_line_blame', } gitsigns.setup { signs = { add = { hl = 'GitSignsAdd', text = '│', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' }, change = { hl = 'GitSignsChange', text = '│', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, delete = { hl = 'GitSignsDelete', text = '_', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, topdelete = { hl = 'GitSignsDelete', text = '‾', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, changedelete = { hl = 'GitSignsChange', text = '~', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, }, signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` numhl = false, -- Toggle with `:Gitsigns toggle_numhl` linehl = false, -- Toggle with `:Gitsigns toggle_linehl` word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` diff_opts = { internal = true, }, watch_gitdir = { interval = 1000, follow_files = true, }, attach_to_untracked = true, current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame_opts = { virt_text = true, virt_text_pos = 'right_align', -- 'eol' | 'overlay' | 'right_align' delay = 866, ignore_whitespace = true, }, current_line_blame_formatter = '<author>, <author_time:%d/%m/%Y> - <summary>', sign_priority = 6, update_debounce = 100, status_formatter = nil, -- Use default max_file_length = 40000, preview_config = { -- Options passed to nvim_open_win border = 'rounded', style = 'minimal', relative = 'cursor', row = 0, col = 1, }, yadm = { enable = false, }, }end)+26 / −12 text lines
return (vim.fn.executable(name_of_executable) ~= 0) return (vim.fn.executable(name_of_executable) ~= 0) vim.health.report_start(name .. ' report') if program_installed(name_of_executable) then vim.health.report_ok(name_of_executable .. ' found on system') else vim.health.report_error(name .. ' is not installed on the system') end local display_name = name and (name .. '(' .. name_of_executable .. ')') or name_of_executable vim.health.start(display_name .. ' report') if program_installed(name_of_executable) then vim.health.ok(display_name .. ' found on system') else vim.health.error(display_name .. ' is not installed on the system') endendlocal programs_to_check = {}_.add_dependency = function(program) check_parameter(program, 'add_program', 'program', 'table') check_parameter(program.name_of_executable, 'add_program', 'program.name_of_executable', 'string') programs_to_check[program.name_of_executable] = program -- returns itself so that multiple programs can be chain-added return _.add_dependencydeleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −8 text lines
new file mode 100644+89 / −0 text lines
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'if not vim.loop.fs_stat(lazypath) then vim.fn.system { 'git', 'clone', '--filter=blob:none', 'https://github.com/folke/lazy.nvim.git', '--branch=stable', -- latest stable release lazypath, }endvim.opt.rtp:prepend(lazypath)-- prevents lazy from setting up its highlights.-- those will be setup manually later.require('lazy.view.colors').did_setup = truelocal lazy = require 'lazy'lazy.setup('bugabinga.plugins', { defaults = { lazy = true, version = '*', }, install = { missing = true, colorthemes = { 'lunaperche' }, }, checker = { enabled = true, }, ui = { size = { width = 0.69 , heigth = 0.69 }, border = 'shadow', }, performance = { rtp = { disabled_plugins = { 'netrw', 'netrwPlugin', 'netrwSettings', 'netrwFileHandlers', 'gzip', 'zip', 'zipPlugin', 'tar', 'tarPlugin', 'getscript', 'getscriptPlugin', 'vimball', 'vimballPlugin', '2html_plugin', 'logipat', 'rrhelper', 'spellfile_plugin', 'matchit', 'matchparen', 'tohtml', 'tutor', }, }, },})local map = require 'std.keymap'local lazy_cmds = vim.iter { { 'Show', '' , lazy.show } , { 'Install', 'i', lazy.install }, { 'Update', 'u', lazy.update }, { 'Sync', 's', lazy.sync }, { 'Clean', 'x', lazy.clean }, { 'Check', 'c', lazy.check }, { 'Log', 'l', lazy.log }, { 'Restore', 'r', lazy.restore }, { 'Profile', 'p', lazy.profile }, { 'Debug', 'd', lazy.debug },}local base_key = '<leader>z'lazy_cmds:each(function(cmd) map.normal { name = cmd[1] .. ' plugins via Lazy.nvim', category = 'plugins', keys = base_key .. cmd[2], command = cmd[3], }end)+245 / −280 text lines
-- run diagnostics on save local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE } null_ls.setup { on_attach = null_opts.on_attach, sources = { formatting.stylua, formatting.clang_format, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, -- run diagnostics on save local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE } null_ls.setup { on_attach = null_opts.on_attach, sources = { formatting.stylua, formatting.clang_format, formatting.jq, formatting.protolint, formatting.shellharden, formatting.shfmt, formatting.taplo, diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.gitlint.with(diagnostics_on_save), diagnostics.protoc_gen_lint.with(diagnostics_on_save), diagnostics.protolint.with(diagnostics_on_save), diagnostics.selene.with(diagnostics_on_save).with { -- null-ls determines the root in a too simplistic manner. -- since my neovim configuration live inside my dotfiles, the dotfiles root -- was taken. but i want the neovim config folder as root. cwd = function(parameters) local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root) return root or parameters.root end, }, diagnostics.shellcheck.with(diagnostics_on_save), diagnostics.tidy.with(diagnostics_on_save), diagnostics.actionlint.with(diagnostics_on_save), diagnostics.checkmake.with(diagnostics_on_save), diagnostics.gitlint.with(diagnostics_on_save), diagnostics.protoc_gen_lint.with(diagnostics_on_save), diagnostics.protolint.with(diagnostics_on_save), diagnostics.selene.with(diagnostics_on_save).with { -- null-ls determines the root in a too simplistic manner. -- since my neovim configuration live inside my dotfiles, the dotfiles root -- was taken. but i want the neovim config folder as root. cwd = function(parameters) local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root) return root or parameters.root end, }, diagnostics.shellcheck.with(diagnostics_on_save), diagnostics.tidy.with(diagnostics_on_save),local function setup_keybinds_and_actions(client, buffer_number) -- TODO: make format changed lines command local capabilities = client.server_capabilities if capabilities.document_formatting then map { description = 'Format buffer using LSP', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.F, command = function() vim.lsp.buf.format { bufnr = buffer_number } vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end if capabilities.document_range_formatting then map { description = 'Format range using LSP', category = map.CATEGORY.EDITING, mode = map.MODE.VISUAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.F, command = function() vim.lsp.buf.range_formatting { bufnr = buffer_number } vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end --TODO: change some of these commands to telescoped versions if capabilities.hover then map { description = 'Show Hover', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.K, command = function() vim.lsp.buf.hover() end, } end if capabilities.goto_definition then map { description = 'Go to Definition', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.D, command = function() vim.lsp.buf.definition() end, } end if capabilities.declaration then map { description = 'Go to Declaration', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.D .. map.KEY.D, command = function() vim.lsp.buf.declaration() end, } end if capabilities.implementation then map { description = 'Go to Implementation', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.I, command = function() vim.lsp.buf.implementation() end, } end if capabilities.type_definition then map { description = 'Go to Type Definition', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.T, command = function() vim.lsp.buf.type_definition() end, } end if capabilities.find_references then map { description = 'Go to References', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.R, command = function() vim.lsp.buf.references() end, } end if capabilities.call_hierarchy then map { description = 'Go to Incoming Call', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.C, command = function() vim.lsp.buf.incoming_calls() end, } map { description = 'Go to Outgoing Call', category = map.CATEGORY.NAVIGATION, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.L .. map.KEY.C .. map.KEY.C, command = function() vim.lsp.buf.outgoing_calls() end, } end if capabilities.rename then map { description = 'Rename symbol', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.F2, command = function() vim.lsp.buf.rename() end, } end if capabilities.code_action then map { description = 'Show code actions', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.F4, command = function() vim.lsp.buf.code_action() end, } map { description = 'Show code actions in range', category = map.CATEGORY.VIEW, mode = map.MODE.VISUAL, keys = map.KEY.F4, command = function() vim.lsp.buf.range_code_action() end, } end if capabilities.document_highlight then -- this variable should technically be scoped to the current buffer. -- how to do that? local highlight_timer = nil auto 'highlight_reference_under_cursor' { { description = 'Automatically highlight a symbol under cursor', events = 'CursorHold', pattern = '<buffer>', command = function() if not highlight_timer then highlight_timer = vim.defer_fn(function() vim.lsp.buf.document_highlight() highlight_timer = nil end, 866) end end, }, { description = 'Clear highlighted symbol under cursor', events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' }, pattern = '<buffer>', command = function() if highlight_timer then highlight_timer:close() highlight_timer = nil end vim.lsp.buf.clear_references() end, }, } end end local function setup_keybinds_and_actions(client, buffer_number) -- TODO: use buffer number in keymaps -- TODO: make format changed lines command local capabilities = client.server_capabilities if capabilities.document_formatting then map.normal { name = 'Format buffer using LSP', category = "editing", keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.format { bufnr = buffer_number } vim.notify('Formatted ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end if capabilities.document_range_formatting then map.visual { name = 'Format range using LSP', category = 'editing', keys = '<leader>' .. 'l' .. 'f', command = function() vim.lsp.buf.range_formatting { bufnr = buffer_number } vim.notify('Formatted range in ' .. vim.api.nvim_buf_get_name(buffer_number)) end, } end --TODO: change some of these commands to telescoped versions if capabilities.hover then map.normal { name = 'Show Hover', category = 'view', keys = '<leader>' .. 'l' .. 'k', command = vim.lsp.buf.hover, } end if capabilities.goto_definition then map.normal { name = 'Go to Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 'd', command = vim.lsp.buf.definition, } end if capabilities.declaration then map.normal { name = 'Go to Declaration', category = 'navigation', keys = '<leader>' .. 'l' .. 'd' .. 'd', command = vim.lsp.buf.declaration, } end if capabilities.implementation then map.normal { name = 'Go to Implementation', category = 'navigation', keys = '<leader>' .. 'l' .. 'i', command = vim.lsp.buf.implementation, } end if capabilities.type_definition then map.normal { name = 'Go to Type Definition', category = 'navigation', keys = '<leader>' .. 'l' .. 't', command = vim.lsp.buf.type_definition, } end if capabilities.find_references then map.normal { name = 'Go to References', category = 'navigation', keys = '<leader>' .. 'l' .. 'r', command = vim.lsp.buf.references } end if capabilities.call_hierarchy then map.normal { name = 'Go to Incoming Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c', command = vim.lsp.buf.incoming_calls, } map.normal { name = 'Go to Outgoing Call', category = 'navigation', keys = '<leader>' .. 'l' .. 'c' .. 'c', command = vim.lsp.buf.outgoing_calls, } end if capabilities.rename then map.normal { name = 'Rename symbol', category = 'editing', keys = 'f'2, command = vim.lsp.buf.rename, } end if capabilities.code_action then map.normal { name = 'Show code actions', category = 'view', keys = 'f'4, command = vim.lsp.buf.code_action, } map.visual { name = 'Show code actions in range', category = 'view', keys = 'f'4, command = vim.lsp.buf.range_code_action, } end if capabilities.document_highlight then -- this variable should technically be scoped to the current buffer. -- how to do that? local highlight_timer = nil auto 'highlight_reference_under_cursor' { { description = 'Automatically highlight a symbol under cursor', events = 'CursorHold', pattern = '<buffer>', command = function() if not highlight_timer then highlight_timer = vim.defer_fn(function() vim.lsp.buf.document_highlight() highlight_timer = nil end, 866) end end, }, { description = 'Clear highlighted symbol under cursor', events = { 'CursorMoved', 'CursorMovedI', 'InsertEnter' }, pattern = '<buffer>', command = function() if highlight_timer then highlight_timer:close() highlight_timer = nil end vim.lsp.buf.clear_references() end, }, } end enddeleted file mode 100644+0 / −1 text lines
-- local want = require 'bugabinga.std.want'deleted file mode 100644+0 / −12 text lines
-- usually i would use the `want` function here.-- but impatient wants to override the require function as soon as possible-- to get most out of the cache.local ok, impatient = pcall(require, 'impatient')if not ok then vim.notify('modules will not be cached, because `impatient` could not be found.', 'error') returnend-- FIXME: enable profile only when global vim.g.profile_mode is true if vim.g.profile_mode then impatient.enable_profile() enddeleted file mode 100644+0 / −159 text lines
local want = require 'bugabinga.std.want'local map = require 'bugabinga.std.keymap'want { 'gomove' }(function(move) move.setup { -- whether or not to map default key bindings, (true/false) map_defaults = false, -- whether or not to reindent lines moved vertically (true/false) reindent = true, -- whether or not to undojoin same direction moves (true/false) undojoin = true, -- whether to not to move past end column when moving blocks horizontally, (true/false) move_past_end_col = false, } -- default mappings in gomove set no options, but use old keymap api. -- recreating old defaults here: local options = { remap = true } -- i have tried using the lua functions directly for the commands below. -- the behaviour was slightly buggy in respects to block selections though. -- unsure why that is. -- NORMAL MOVE map { description = 'Move character left', category = map.CATEGORY.EDITING, command = '<Plug>GoNSMLeft', mode = map.MODE.NORMAL, keys = map.KEY.ALT_H, options = options, } map { description = 'Move line down', category = map.CATEGORY.EDITING, command = '<Plug>GoNSMDown', mode = map.MODE.NORMAL, keys = map.KEY.ALT_J, options = options, } map { description = 'Move line up', category = map.CATEGORY.EDITING, command = '<Plug>GoNSMUp', mode = map.MODE.NORMAL, keys = map.KEY.ALT_K, options = options, } map { description = 'Move character right', category = map.CATEGORY.EDITING, command = '<Plug>GoNSMRight', mode = map.MODE.NORMAL, keys = map.KEY.ALT_L, options = options, } -- VISUAL MOVE map { description = 'Move block left', category = map.CATEGORY.EDITING, command = '<Plug>GoVSMLeft', mode = map.MODE.VISUAL, keys = map.KEY.ALT_H, options = options, } map { description = 'Move block down', category = map.CATEGORY.EDITING, command = '<Plug>GoVSMDown', mode = map.MODE.VISUAL, keys = map.KEY.ALT_J, options = options, } map { description = 'Move block up', command = '<Plug>GoVSMUp', category = map.CATEGORY.EDITING, mode = map.MODE.VISUAL, keys = map.KEY.ALT_K, options = options, } map { description = 'Move block right', category = map.CATEGORY.EDITING, command = '<Plug>GoVSMRight', mode = map.MODE.VISUAL, keys = map.KEY.ALT_L, options = options, } -- NORMAL DUPLICATE map { description = 'Duplicate character left', category = map.CATEGORY.EDITING, command = '<Plug>GoNSDLeft', mode = map.MODE.NORMAL, keys = map.KEY.ALT_SHIFT_H, options = options, } map { description = 'Duplicate line down', category = map.CATEGORY.EDITING, command = '<Plug>GoNSDDown', mode = map.MODE.NORMAL, keys = map.KEY.ALT_SHIFT_J, options = options, } map { description = 'Duplicate line up', category = map.CATEGORY.EDITING, command = '<Plug>GoNSDUp', mode = map.MODE.NORMAL, keys = map.KEY.ALT_SHIFT_K, options = options, } map { description = 'Duplicate character right', category = map.CATEGORY.EDITING, command = '<Plug>GoNSDRight', mode = map.MODE.NORMAL, keys = map.KEY.ALT_SHIFT_L, options = options, } -- VISUAL DUPLICATE map { description = 'Duplicate block left', category = map.CATEGORY.EDITING, command = '<Plug>GoVSDLeft', mode = map.MODE.VISUAL, keys = map.KEY.ALT_SHIFT_H, options = options, } map { description = 'Duplicate block down', category = map.CATEGORY.EDITING, command = '<Plug>GoVSDDown', mode = map.MODE.VISUAL, keys = map.KEY.ALT_SHIFT_J, options = options, } map { description = 'Duplicate block up', category = map.CATEGORY.EDITING, command = '<Plug>GoVSDUp', mode = map.MODE.VISUAL, keys = map.KEY.ALT_SHIFT_K, options = options, } map { description = 'Duplicate block right', category = map.CATEGORY.EDITING, command = '<Plug>GoVSDRight', mode = map.MODE.VISUAL, keys = map.KEY.ALT_SHIFT_L, options = options, }end)deleted file mode 100644+0 / −4 text lines
new file mode 100644+404 / −0 text lines
local palette = require'bugabinga.nugu.palette'local lush = require 'lush'local hsl = lush.hsluvlocal flux = function(color, number) if vim.opt.background:get() == 'dark' then return color.li(-number) else return color.li(number) endendlocal debug = hsl ( palette.debug )local error = hsl ( palette.error )local info = hsl ( palette.info )local warning = hsl ( palette.warning )local content_normal = hsl ( palette.content_normal )local content_backdrop = hsl ( palette.content_backdrop )local content_accent = hsl ( palette.content_accent )local content_minor = hsl ( palette.content_minor )local content_focus = hsl ( palette.content_focus )local content_unfocus = hsl ( palette.content_unfocus )local content_important_global = hsl ( palette.content_important_global )local content_important_local = hsl ( palette.content_important_local )local ui_normal = hsl ( palette.ui_normal )local ui_backdrop = hsl ( palette.ui_backdrop )local ui_accent = hsl ( palette.ui_accent )local ui_minor = hsl ( palette.ui_minor )local ui_focus = hsl ( palette.ui_focus )local ui_unfocus = hsl ( palette.ui_unfocus )local ui_important_global = hsl ( palette.ui_important_global )local ui_important_local = hsl ( palette.ui_important_local )local nugu = lush(function(injects) local sym = injects.sym return { Debug { fg = debug.readable(), bg = debug, gui = 'bold' }, -- debugging statements Normal { fg = content_normal, bg = content_backdrop }, NotifyBackground { bg = ui_backdrop }, Comment { fg = content_important_global, gui = 'bold italic' }, LineNr { fg = ui_minor, bg = ui_backdrop }, CursorLineNr { fg = ui_focus, bg = ui_backdrop }, Search { fg = content_important_global.readable(), bg = content_important_global }, IncSearch { fg = content_important_local.readable(), bg = content_important_local }, NormalFloat { fg = ui_normal, bg = ui_backdrop }, -- Normal text in floating windows. FloatBorder { fg = ui_accent, bg = NormalFloat.bg }, ColorColumn { fg = ui_important_global, bg = content_backdrop }, -- used for the columns set with 'colorcolumn' Conceal { fg = content_normal, bg = ui_unfocus, gui = 'italic' }, -- placeholder characters substituted for concealed text (see 'conceallevel') Cursor { bg = ui_accent }, -- character under the cursor lCursor { bg = ui_accent }, -- the character under the cursor when |language-mapping| is used (see 'guicursor') CursorIM { bg = ui_accent }, -- like Cursor, but used when in IME mode |CursorIM| Directory { fg = Normal.fg }, -- directory names (and other special names in listings) DiffAdd { fg = content_focus }, -- diff mode: Added line |diff.txt| DiffDelete { fg = content_focus, gui = "strikethrough" }, -- diff mode: Deleted line |diff.txt| DiffChange { fg = content_important_global }, -- diff mode: Changed line |diff.txt| DiffText { fg = content_important_local.readable(), bg = content_important_local }, -- diff mode: Changed text within a changed line |diff.txt| EndOfBuffer { LineNr }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. TermCursor { lCursor }, -- cursor in a focused terminal TermCursorNC { Cursor }, -- cursor in an unfocused terminal ErrorMsg { fg = error.readable(), bg = error }, -- error messages on the command line VertSplit { fg = ui_important_global, bg = content_backdrop }, -- the column separating vertically split windows Folded { Conceal }, -- line used for closed folds FoldColumn { Conceal }, -- 'foldcolumn' SignColumn { bg = ui_backdrop }, -- column where |signs| are displayed ModeMsg { gui = 'bold' }, -- 'showmode' message (e.g., "-- INSERT -- ") MsgArea { Normal }, -- Area for messages and cmdline MsgSeparator { fg = ui_accent }, -- Separator for scrolled messages, `msgsep` flag of 'display' MoreMsg { Normal }, -- |more-prompt| 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|. NormalNC {}, -- normal text in non-current windows Pmenu { NormalFloat }, -- Popup menu: normal item. PmenuSel { fg = ui_focus.readable(), sp = ui_focus.readable(), bg = ui_focus, gui = 'underline' }, -- Popup menu: selected item. PmenuSbar { bg = ui_unfocus }, -- Popup menu: scrollbar. PmenuThumb { bg = ui_minor }, -- Popup menu: Thumb of the scrollbar. Question { fg = ui_important_global, gui = 'bold' }, -- |hit-enter| prompt and yes/no questions QuickFixLine { PmenuSel }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. SpecialKey { fg = error, bg = content_unfocus, gui = 'bold' }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpellBad { fg = error, gui = 'undercurl' }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. SpellCap { SpellBad }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. SpellLocal { SpellBad }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. SpellRare { SpellBad }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine { fg = ui_normal, bg = ui_backdrop }, -- status line of current window 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. Winbar { StatusLine }, WinbarNC { StatusLineNC }, IndentBlanklineContextChar{ fg = content_accent, gui = "nocombine" }, IndentBlanklineContextStart { sp = IndentBlanklineContextChar.fg, gui = "underline" }, Title { fg = content_important_global, sp = content_important_global, gui = 'bold underline' }, -- titles for output from ":set all", ":autocmd" etc. TabLine { StatusLine }, -- tab pages line, not active tab page label TabLineFill { bg = TabLine.bg }, -- tab pages line, where there are no labels TabLineSel { fg = ui_accent.readable(), bg = ui_accent, gui = 'underline bold' }, -- tab pages line, active tab page label Visual { fg = content_focus.readable(), bg = content_focus }, -- Visual mode selection VisualNOS { fg = Visual.fg, bg = flux(Visual.bg, -42) }, -- Visual mode selection when vim is "Not Owning the Selection". WarningMsg { fg = warning, gui = 'bold' }, -- warning messages WhiteSpace { fg = ui_unfocus }, -- "nbsp", "space", "tab" and "trail" in 'listchars' WildMenu { fg = ui_accent, gui = 'bold' }, -- current match in 'wildmenu' completion String { fg = content_important_local, gui = 'italic' }, Constant { String }, -- (preferred) any constant Character { String }, -- a character constant: 'c', '\n' Number { String }, -- a number constant: 234, 0xff Boolean { String }, -- a boolean constant: TRUE, false Float { String }, -- a floating point constant: 2.3e10 Identifier { Normal }, -- (preferred) any variable name Function { Normal }, -- function name (also: methods for classes) Statement { fg = content_minor }, -- (preferred) any statement Conditional { Statement }, -- if, then, else, endif, switch, etc. Repeat { Statement }, -- for, do, while, etc. Label { Statement }, -- case, default, etc. Operator { Statement }, -- "sizeof", "+", "*", etc. Keyword { Statement }, -- any other keyword Exception { Statement }, -- try, catch, throw PreProc { fg = content_important_global, bg = content_unfocus, gui = 'bold' }, -- (preferred) generic Preprocessor Include { PreProc }, -- preprocessor #include Define { PreProc }, -- preprocessor #define Macro { PreProc }, -- same as Define PreCondit { PreProc }, -- preprocessor #if, #else, #endif, etc. Type { Statement }, -- (preferred) int, long, char, etc. StorageClass { Statement }, -- static, register, volatile, etc. Structure { Statement }, -- struct, union, enum, etc. Typedef { Statement }, -- A typedef Special { fg = content_normal, gui = 'italic bold' }, -- (preferred) any special symbol SpecialChar { Special }, -- special character in a constant Tag { Special }, -- you can use CTRL-] on this Delimiter { fg = content_minor }, -- character that needs attention SpecialComment { Special }, -- special things inside a comment Underlined { sp = content_normal, gui = 'underline' }, -- (preferred) text that stands out, HTML links Bold { gui = 'bold' }, Italic { gui = 'italic' }, -- ("Ignore", below, may be invisible...) Ignore { fg = Normal.bg, bg = Normal.bg }, -- (preferred) left blank, hidden |hl-Ignore| Error { fg = error }, -- (preferred) any erroneous construct Todo { fg = content_important_global, sp = content_important_global, gui = 'bold underdouble' }, DiagnosticUnnecessary { fg = ui_focus }, DiagnosticDeprecated { fg = ui_important_global, sp = ui_important_global, gui = 'strikethrough' }, DiagnosticError { fg = error }, DiagnosticWarn { fg = warning }, DiagnosticInfo { fg = info }, DiagnosticHint { fg = ui_important_local }, DiagnosticOk { fg = ui_minor }, DiagnosticVirtualTextError { DiagnosticError }, DiagnosticVirtualTextWarn { DiagnosticWarn }, DiagnosticVirtualTextInfo { DiagnosticInfo }, DiagnosticVirtualTextHint { DiagnosticHint }, DiagnosticVirtualOkHint { DiagnosticOk }, DiagnosticUnderlineError { fg = DiagnosticError.fg, sp = DiagnosticError.fg, gui = 'underdouble' }, DiagnosticUnderlineWarn { fg = DiagnosticWarn.fg, sp = DiagnosticWarn.fg, gui = 'underline' }, DiagnosticUnderlineInfo { fg = DiagnosticInfo.fg, sp = DiagnosticInfo.fg, gui = 'underdashed' }, DiagnosticUnderlineHint { fg = DiagnosticHint.fg, sp = DiagnosticHint.fg, gui = 'italic underdotted' }, DiagnosticUnderlineOk { fg = DiagnosticOk.fg, gui = 'italic' }, DiagnosticSignError { DiagnosticError }, DiagnosticSignWarn { DiagnosticWarn }, DiagnosticSignInfo { DiagnosticInfo }, DiagnosticSignHint { DiagnosticHint }, DiagnosticSignOk { DiagnosticOk }, LspReferenceText { Search }, LspReferenceRead { Search }, LspReferenceWrite { IncSearch }, -- hlargs.nvim Hlargs { fg = ui_important_local, gui = 'bold underdotted' }, -- Tree-Sitter syntax groups. -- -- See :h treesitter-highlight-groups, some groups may not be listed, -- submit a PR fix to lush-template! -- -- Tree-Sitter groups are defined with an "@" symbol, which must be -- specially handled to be valid lua code, we do this via the special -- sym function. The following are all valid ways to call the sym function, -- for more details see https://www.lua.org/pil/5.html -- -- sym("@text.literal") -- sym('@text.literal') -- sym"@text.literal" -- sym'@text.literal' -- -- For more information see https://github.com/rktjmp/lush.nvim/issues/109 -- sym"@text.literal" { }, -- Comment -- sym"@text.reference" { }, -- Identifier -- sym"@text.title" { }, -- Title -- sym"@text.uri" { }, -- Underlined -- sym"@text.underline" { }, -- Underlined -- sym"@text.todo" { }, -- Todo -- sym"@comment" { }, -- Comment -- sym"@punctuation" { }, -- Delimiter -- sym"@constant" { }, -- Constant -- sym"@constant.builtin" { }, -- Special -- sym"@constant.macro" { }, -- Define -- sym"@define" { }, -- Define -- sym"@macro" { }, -- Macro -- sym"@string" { }, -- String -- sym"@string.escape" { }, -- SpecialChar -- sym"@string.special" { }, -- SpecialChar -- sym"@character" { }, -- Character -- sym"@character.special" { }, -- SpecialChar -- sym"@number" { }, -- Number -- sym"@boolean" { }, -- Boolean -- sym"@float" { }, -- Float -- sym"@function" { }, -- Function -- sym"@function.builtin" { }, -- Special -- sym"@function.macro" { }, -- Macro -- sym"@parameter" { }, -- Identifier -- sym"@method" { }, -- Function -- sym"@field" { }, -- Identifier -- sym"@property" { }, -- Identifier -- sym"@constructor" { }, -- Special -- sym"@conditional" { }, -- Conditional -- sym"@repeat" { }, -- Repeat -- sym"@label" { }, -- Label -- sym"@operator" { }, -- Operator -- sym"@keyword" { }, -- Keyword -- sym"@exception" { }, -- Exception -- sym"@variable" { }, -- Identifier -- sym"@type" { }, -- Type -- sym"@type.definition" { }, -- Typedef -- sym"@storageclass" { }, -- StorageClass -- sym"@structure" { }, -- Structure -- sym"@namespace" { }, -- Identifier -- sym"@include" { }, -- Include -- sym"@preproc" { }, -- PreProc -- sym"@debug" { }, -- Debug -- sym"@tag" { }, -- Tag -- lazy.nvim LazyButton { NormalFloat, sp = NormalFloat.fg, gui = 'bold' }, LazyButtonActive { fg = ui_important_local.readable(), sp = NormalFloat.fg, bg = ui_important_local, gui = LazyButton.gui }, LazyComment { Keyword }, LazyCommit { LazyComment }, LazyCommitIssue { LazyComment }, LazyCommitScope { LazyComment, gui = 'italic' }, LazyCommitType { LazyCommitScope }, LazyDimmed { fg = NormalFloat.fg }, LazyDir { N.fgormalFloat }, LazyH1 { Bold }, LazyH2 { LazyH1 }, LazyLocal {}, LazyNoCond { WarningMsg }, LazyNormal { NormalFloat }, LazyProgressDone { fg = Search.bg, bg = Cursor.bg, gui = 'bold' }, LazyProgressTodo { fg = LazyProgressDone.bg, bg = LazyProgressDone.fg, gui = LazyProgressDone.gui }, LazyProp { LazyComment }, LazyReasonCmd { N.fgormalFloat }, LazyReasonEvent { N.fgormalFloat }, LazyReasonFt { N.fgormalFloat }, LazyReasonImport { N.fgormalFloat }, LazyReasonKeys { N.fgormalFloat }, LazyReasonPlugin { N.fgormalFloat }, LazyReasonRuntime { N.fgormalFloat }, LazyReasonSource { N.fgormalFloat }, LazyReasonStart { N.fgormalFloat }, LazySpecial { fg = ColorColumn.fg }, LazyTaskError { ErrorMsg }, LazyTaskOutput { Debug }, LazyUrl { sp = NormalFloat.fg, gui = 'italic underline' }, LazyValue { gui = 'italic' }, -- Noice NoiceCmdline { fg = ui_focus, bg = ui_backdrop }, NoiceCmdlineIcon { fg = ui_accent, bg = NoiceCmdline.bg, gui = 'bold' }, NoiceCmdlineIconCalculator { NoiceCmdlineIcon }, NoiceCmdlineIconCmdline { fg = ui_accent, bg = NoiceCmdlineIcon.bg, gui = NoiceCmdlineIcon.gui }, NoiceCmdlineIconFilter { NoiceCmdlineIcon }, NoiceCmdlineIconHelp { NoiceCmdlineIcon }, NoiceCmdlineIconIncRename { NoiceCmdlineIcon }, NoiceCmdlineIconInput { NoiceCmdlineIcon }, NoiceCmdlineIconLua { NoiceCmdlineIcon }, NoiceCmdlineIconSearch { NoiceCmdlineIcon }, NoiceCmdlinePopup { NormalFloat }, NoiceCmdlinePopupBorder { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderCalculator { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderCmdline { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderFilter { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderHelp { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderIncRename { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderInput { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderLua { NoiceCmdlinePopup }, NoiceCmdlinePopupBorderSearch { NoiceCmdlinePopup }, NoiceCmdlinePopupTitle { NoiceCmdlinePopup }, NoiceCmdlinePrompt { fg = ui_important_global, bg = ui_backdrop, gui = 'bold' }, NoiceCompletionItemKindDefault { fg = ui_normal }, NoiceCompletionItemKindClass { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindColor { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindConstant { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindConstructor { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindEnum { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindEnumMember { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindField { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindFile { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindFolder { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindFunction { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindInterface { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindKeyword { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindMethod { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindModule { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindProperty { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindSnippet { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindStruct { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindText { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindUnit { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindValue { NoiceCompletionItemKindDefault }, NoiceCompletionItemKindVariable { NoiceCompletionItemKindDefault }, NoiceCompletionItemMenu { NoiceCompletionItemKindDefault }, NoiceCompletionItemWord { NoiceCompletionItemKindDefault }, NoiceConfirm { NormalFloat }, NoiceConfirmBorder { fg = ui_accent, bg = NormalFloat.bg }, NoiceFormatConfirm { LazyButton }, NoiceFormatConfirmDefault { LazyButtonActive }, NoiceCursor { Cursor }, NoiceFormatDate { NonText }, NoiceFormatEvent { NonText }, NoiceFormatKind { NonText }, NoiceFormatLevelDebug { fg = Debug.bg }, NoiceFormatLevelError { DiagnosticError }, NoiceFormatLevelInfo { DiagnosticInfo }, NoiceFormatLevelOff { fg = content_minor }, NoiceFormatLevelTrace { DiagnosticHint }, NoiceFormatLevelWarn { DiagnosticWarn }, NoiceFormatProgressDone { LazyProgressDone }, NoiceFormatProgressTodo { LazyProgressTodo }, NoiceFormatTitle { Title }, NoiceLspProgressClient { Debug }, NoiceLspProgressSpinner { Debug }, NoiceLspProgressTitle { Debug }, NoiceMini { DiagnosticInfo }, NoicePopup { NormalFloat }, NoicePopupBorder { fg = ui_accent, bg = NormalFloat.bg }, NoicePopupmenu { Pmenu }, NoicePopupmenuBorder { fg = ui_accent , bg = NormalFloat.bg }, NoicePopupmenuMatch { Bold }, NoicePopupmenuSelected { PmenuSel }, NoiceScrollbar { PmenuSbar }, NoiceScrollbarThumb { PmenuThumb }, NoiceSplit { NormalFloat }, NoiceSplitBorder { NoiceConfirmBorder , bg = NormalFloat.bg}, NoiceVirtualText { fg = ui_important_local, bg = ui_backdrop, gui = 'bold' }, -- Notify NotifyERRORBorder { DiagnosticError , bg = NormalFloat.bg }, NotifyWARNBorder { DiagnosticWarn, bg = NormalFloat.bg }, NotifyINFOBorder { DiagnosticInfo, bg = NormalFloat.bg }, NotifyDEBUGBorder { fg = Debug.bg, bg = NormalFloat.bg }, NotifyTRACEBorder { DiagnosticHint, bg = NormalFloat.bg }, NotifyERRORIcon { NotifyERRORBorder }, NotifyWARNIcon { NotifyWARNBorder }, NotifyINFOIcon { NotifyINFOBorder }, NotifyDEBUGIcon { NotifyDEBUGBorder }, NotifyTRACEIcon { NotifyTRACEBorder }, NotifyERRORTitle { NotifyERRORBorder }, NotifyWARNTitle { NotifyWARNBorder }, NotifyINFOTitle { NotifyINFOBorder }, NotifyDEBUGTitle { NotifyDEBUGBorder }, NotifyTRACETitle { NotifyTRACEBorder }, NotifyERRORBody { NormalFloat }, NotifyWARNBody { NormalFloat }, NotifyINFOBody { NormalFloat }, NotifyDEBUGBody { NormalFloat }, NotifyTRACEBody { NormalFloat }, TelescopeSelectionCaret { PmenuSel }, TelescopeSelection { PmenuSel }, TelescopeMultiSelection { fg = PmenuSel.fg, bg = ui_important_local }, }end)return nugunew file mode 100644+32 / −0 text lines
local choose = function ( variants ) if vim.opt.background:get() == 'dark' then return variants.dark else return variants.light endendreturn { debug = choose { light = '#3dd45d', dark = '#3dd45d' }, error = choose { light = '#740523', dark = '#f27a9a' }, info = choose { light = '#4187a7', dark = '#e7f0f3' }, warning = choose { light = '#a7802d', dark = '#f1e8d6' }, content_normal = choose { light = '#494949', dark = '#cfcfcf' }, content_backdrop = choose { light = '#e3e3e3', dark = '#131313' }, content_accent = choose { light = '#800080', dark = '#800080' }, content_minor = choose { light = '#878787', dark = '#727272' }, content_focus = choose { light = '#646464', dark = '#a5bdb6' }, content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543' }, content_important_global = choose { light = '#48256e', dark = '#8e58cc' }, content_important_local = choose { light = '#643398', dark = '#7a3bc3' }, ui_normal = choose { light = '#929292', dark = '#e2e2e2' }, ui_backdrop = choose { light = '#f9f9f9', dark = '#000000' }, ui_accent = choose { light = '#d43dd4', dark = '#7a067a' }, ui_minor = choose { light = '#d0d0d0', dark = '#424242' }, ui_focus = choose { light = '#646464', dark = '#788984' }, ui_unfocus = choose { light = '#c9c9c9', dark = '#121212' }, ui_important_global = choose { light = '#9170b5', dark = '#5f368d' }, ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72' },}+13 / −13 text lines
+9 / −2 text lines
vim.opt.splitkeep = 'screen'+0 / −26 text lines
-- Disable some in built plugins completelylocal disabled_built_ins = { 'netrw', 'netrwPlugin', 'netrwSettings', 'netrwFileHandlers', 'gzip', 'zip', 'zipPlugin', 'tar', 'tarPlugin', 'getscript', 'getscriptPlugin', 'vimball', 'vimballPlugin', '2html_plugin', 'logipat', 'rrhelper', 'spellfile_plugin', 'matchit', 'matchparen',}for _, plugin in pairs(disabled_built_ins) do vim.g['loaded_' .. plugin] = 1end+151 / −50 text lines
local map = require 'bugabinga.std.keymap' keys = '<enter>', command = '<NOP>',}-- insert newline under or above in normal modemap.normal { name = 'Insert newline under cursor', category = 'editing', keys = '<C-enter>', command = function() local current_buffer = 0 local current_line = vim.api.nvim_win_get_cursor(current_buffer)[1] local strict_indexing = false local newline = { '' } vim.api.nvim_buf_set_lines(current_buffer, current_line, current_line, strict_indexing, newline) end,}map.normal { name = 'Insert newline above cursor', category = 'editing', keys = '<C-S-enter>', command = function() local current_buffer = 0 local current_line = vim.api.nvim_win_get_cursor(current_buffer)[1] - 1 local strict_indexing = false local newline = { '' } vim.api.nvim_buf_set_lines(current_buffer, current_line, current_line, strict_indexing, newline) end, mode = map.MODE.ALL, mode = map.MODE.ALL, mode = map.MODE.ALL, keys = '<right>', command = '<NOP>',}-- system clipboard copy and pastemap.normal.visual { name = 'yank into system clipboard', category = 'editing', keys = '<leader>y', command = '"+y',}map.normal.visual { name = 'yank line into system clipboard', category = 'editing', keys = '<leader>yy', command = '"+Y',}map.normal.visual { name = 'paste before from system clipboard', category = 'editing', keys = '<leader>p', command = '"+p',}map.normal.visual { name = 'paste after from system clipboard', category = 'editing', keys = '<leader>P', command = '"+P',}map.insert { name = 'Cycle through autocomplete popup', category = 'editing', keys = '<tab>', options = { expr = true }, command = function() return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end,map.normal { name = 'Dismiss current search highlight', category = 'search', keys = '<esc><esc>', command = function() vim.cmd [[ nohlsearch ]] end,}map.normal { description = 'Toggle dark/light theme variant', category = 'ui', keys = '<leader>tt', command = function() if vim.opt.background:get() == 'dark' then vim.opt.background = 'light' else vim.opt.background = 'dark' end vim.notify('Toggled background to ' .. vim.opt.background:get() .. '.') end,}map.insert { name = 'Exit normal mode', category = 'vim', keys = 'jj', command = '<C-c>',}map.normal { name = 'Goto matching bracket', category = 'navigation', keys = 'mm', command = '%',}map.normal { name = 'Redo undone operation', category = 'history', keys = 'U', command = vim.cmd.redo,}new file mode 100644+67 / −0 text lines
local _ = {}local toggle_on_icon = '蘒'local toggle_off_icon = '﨡'local get_option = function(name) return vim.api.nvim_get_option_value(name, {}) endlocal set_option = function(name, value) vim.api.nvim_set_option_value(name, value, {}) endlocal toggle = function(self) vim.iter(self.options) :each(function(option) local current_value = get_option(option.name) if current_value == option.default then set_option(option.name, option.alternative) vim.notify( self.display_name .. ' ' .. toggle_on_icon ) else set_option(option.name, option.default) vim.notify( self.display_name .. ' ' .. toggle_off_icon ) end end)endlocal toggler_tostring = function(self) local all_default = vim.iter(self.options) :all(function(option) return get_option(option.name) == option.default end) return self.display_name .. ' ' .. ( all_default and toggle_off_icon or toggle_on_icon )endlocal make_toggler = function( display_name, options) return { display_name = display_name, options = options, toggle = toggle, tostring = toggler_tostring, }endlocal make_option = function (name, alternative) local option_value = get_option(name) alternative = alternative or not option_value return { name = name, default = option_value, alternative = alternative, }endlocal add_toggler = function( display_name, togglers ) table.insert(_, make_toggler(display_name, togglers ))endadd_toggler('暈', { make_option'spell' } )add_toggler(' ', { make_option'number', make_option'relativenumber'})add_toggler('―', { make_option'cursorline'} ) local tostring = function(self) return vim.iter(self) :map(toggler_tostring) :fold('', function(buffer, text) return buffer .. (buffer == '' and '' or ' ') .. text end)endreturn setmetatable(_,{ __tostring = tostring,})+24 / −20 text lines
vim.g.neovide_floating_blur_amount_x = 4.0 vim.g.neovide_floating_blur_amount_y = 4.0 vim.g.neovide_scroll_animation_length = 0.33 vim.g.neovide_fullscreen = true vim.g.neovide_profiler = false vim.g.neovide_cursor_animation_length = 0.11 vim.g.neovide_cursor_trail_length = 0.666 vim.g.neovide_cursor_vfx_mode = 'pixiedust' vim.g.neovide_floating_blur_amount_x = 4.0 vim.g.neovide_floating_blur_amount_y = 4.0 vim.g.neovide_scroll_animation_length = 0.33 vim.g.neovide_fullscreen = true vim.g.neovide_profiler = false vim.g.neovide_cursor_animation_length = 0.11 vim.g.neovide_cursor_trail_length = 0.666 vim.g.neovide_cursor_vfx_mode = 'pixiedust'new file mode 100644+5 / −0 text lines
new file mode 100644+5 / −0 text lines
new file mode 100644+38 / −0 text lines
return { { 'NvChad/nvim-colorizer.lua', event = 'VeryLazy', opts = { filetypes = { '*' }, user_default_options = { RGB = true, -- #RGB hex codes RRGGBB = true, -- #RRGGBB hex codes names = false, -- "Name" codes like Blue or blue RRGGBBAA = true, -- #RRGGBBAA hex codes AARRGGBB = true, -- 0xAARRGGBB hex codes rgb_fn = true, -- CSS rgb() and rgba() functions hsl_fn = true, -- CSS hsl() and hsla() functions css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn -- Available modes for `mode`: foreground, background, virtualtext mode = 'virtualtext', -- Set the display mode. -- Available methods are false / true / "normal" / "lsp" / "both" -- True is same as normal tailwind = false, -- Enable tailwind colors -- parsers can contain values used in |user_default_options| sass = { enable = false, parsers = { 'css' } }, -- Enable sass colors virtualtext = '██', -- update color values even if buffer is not focused -- example use: cmp_menu, cmp_docs always_update = false, }, -- all the sub-options of filetypes apply to buftypes buftypes = { '*', '!prompt', '!popup', '!nofile', }, }, },}new file mode 100644+14 / −0 text lines
return {{ 'numToStr/Comment.nvim', keys = { { "gc", mode = { "n", "v" }, desc = "Comment toggle linewise" }, { "gb", mode = { "n", "v" }, desc = "Comment toggle blockwise" }, }, dependencies = { "JoosepAlviste/nvim-ts-context-commentstring", }, opts = function() local commentstring_avail, commentstring = pcall(require, "ts_context_commentstring.integrations.comment_nvim") return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook() } or {} end,}}new file mode 100644+8 / −0 text lines
new file mode 100644+37 / −0 text lines
return { { 'chrisgrieser/nvim-genghis', cmd = { 'New', 'Duplicate', 'NewFromSelection', 'Rename', 'Move', 'Trash', 'CopyFilename', 'CopyFilepath', 'Chmodx', }, config = function() -- TODO: setup cmp integration -- TODO: setup keymaps -- local keymap = vim.keymap.set -- local genghis = require("genghis") -- keymap("n", "<leader>yp", genghis.copyFilepath) -- keymap("n", "<leader>yn", genghis.copyFilename) -- keymap("n", "<leader>cx", genghis.chmodx) -- keymap("n", "<leader>rf", genghis.renameFile) -- keymap("n", "<leader>mf", genghis.moveAndRenameFile) -- keymap("n", "<leader>nf", genghis.createNewFile) -- keymap("n", "<leader>yf", genghis.duplicateFile) -- keymap("n", "<leader>df", function () genghis.trashFile{trashLocation = "your/path"} end) -- default: "$HOME/.Trash". -- keymap("x", "<leader>x", genghis.moveSelectionToNewFile) end, dependencies = { 'stevearc/dressing.nvim', 'hrsh7th/nvim-cmp', 'hrsh7th/cmp-omni', }, },}new file mode 100644+6 / −0 text lines
new file mode 100644+18 / −0 text lines
new file mode 100644+160 / −0 text lines
local map = require 'std.keymap'return { { 'booperlv/nvim-gomove', keys = { { '<A-h>', nil, mode = { 'n', 'x' } }, { '<A-j>', nil, mode = { 'n', 'x' } }, { '<A-k>', nil, mode = { 'n', 'x' } }, { '<A-l>', nil, mode = { 'n', 'x' } }, { '<A-H>', nil, mode = { 'n', 'x' } }, { '<A-J>', nil, mode = { 'n', 'x' } }, { '<A-K>', nil, mode = { 'n', 'x' } }, { '<A-L>', nil, mode = { 'n', 'x' } }, }, config = function() local move = require 'gomove' move.setup { -- whether or not to map default key bindings, (true/false) map_defaults = false, -- whether or not to reindent lines moved vertically (true/false) reindent = true, -- whether or not to undojoin same direction moves (true/false) undojoin = true, -- whether to not to move past end column when moving blocks horizontally, (true/false) move_past_end_col = false, } -- default mappings in gomove set no options, but use old keymap api. -- recreating old defaults here: local options = { remap = true } -- i have tried using the lua functions directly for the commands below. -- the behaviour was slightly buggy in respects to block selections though. -- unsure why that is. -- NORMAL MOVE map.normal { name = 'Move character left', category = 'editing', keys = '<A-h>', options = options, command = '<Plug>GoNSMLeft', } map.normal { name = 'Move line down', category = 'editing', keys = '<A-j>', options = options, command = '<Plug>GoNSMDown', } map.normal { name = 'Move line up', category = 'editing', keys = '<A-k>', options = options, command = '<Plug>GoNSMUp', } map.normal { name = 'Move character right', category = 'editing', keys = '<A-l>', options = options, command = '<Plug>GoNSMRight', } -- VISUAL MOVE map.visual { name = 'Move block left', category = 'editing', keys = '<A-h>', options = options, command = '<Plug>GoVSMLeft', } map.visual { name = 'Move block down', category = 'editing', keys = '<A-j>', options = options, command = '<Plug>GoVSMDown', } map.visual { name = 'Move block up', category = 'editing', keys = '<A-k>', options = options, command = '<Plug>GoVSMUp', } map.visual { name = 'Move block right', category = 'editing', keys = '<A-l>', options = options, command = '<Plug>GoVSMRight', } -- NORMAL DUPLICATE map.normal { name = 'Duplicate character left', category = 'editing', keys = '<A-H>', options = options, command = '<Plug>GoNSDLeft', } map.normal { name = 'Duplicate line down', category = 'editing', keys = '<A-J>', options = options, command = '<Plug>GoNSDDown', } map.normal { name = 'Duplicate line up', category = 'editing', keys = '<A-K>', options = options, command = '<Plug>GoNSDUp', } map.normal { name = 'Duplicate character right', category = 'editing', keys = '<A-L>', options = options, command = '<Plug>GoNSDRight', } -- VISUAL DUPLICATE map.visual { name = 'Duplicate block left', category = 'editing', keys = '<A-H>', options = options, command = '<Plug>GoVSDLeft', } map.visual { name = 'Duplicate block down', category = 'editing', keys = '<A-J>', options = options, command = '<Plug>GoVSDDown', } map.visual { name = 'Duplicate block up', category = 'editing', keys = '<A-K>', options = options, command = '<Plug>GoVSDUp', } map.visual { name = 'Duplicate block right', category = 'editing', keys = '<A-L>', options = options, command = '<Plug>GoVSDRight', } end, },}deleted file mode 100644+0 / −11 text lines
new file mode 100644+562 / −0 text lines
local auto = require'std.auto'return { { 'rebelot/heirline.nvim', event = 'BufEnter', config = function() local heirline = require'heirline' local conditions = require("heirline.conditions") local utils = require("heirline.utils") local nugu = require'bugabinga.nugu.palette' heirline.load_colors(nugu) auto 'ReloadHeirlineColors' { description = 'Reload dark/light nugu colors for Heirline', events = 'ColorScheme', command = function() utils.on_colorscheme(nugu) end, } local vi_mode = { init = function(self) self.mode = vim.fn.mode(1) -- :h mode() end, static = { mode_names = { n = "Ν", no = "Ν?", nov = "Ν?", noV = "Ν?", ["no\22"] = "Ν?", niI = "Νi", niR = "Νr", niV = "Νv", nt = "Νt", v = "𝗩 ", vs = "𝗩 s", V = "𝗩 _", Vs = "𝗩 s", ["\22"] = "^V", ["\22s"] = "^V", s = "S", S = "S_", ["\19"] = "^S", i = "Ι", ic = "Ιc", ix = "Ιx", R = "𝐑 ", Rc = "𝐑c", Rx = "𝐑x", Rv = "𝐑v", Rvc = "𝐑v", Rvx = "𝐑v", c = "𝐂 ", cv = "𝐄x", r = " ", rm = "M", ["r?"] = "?", ["!"] = "!", t = " ", }, mode_colors = { n = "ui_normal" , i = "ui_accent", v = "ui_important_global", V = "ui_important_global", ["\22"] = "ui_important_global", c = "ui_important_global", s = "ui_important_global", S = "ui_important_global", ["\19"] = "ui_important_global", R = "ui_important_global", r = "ui_important_global", ["!"] = "ui_important_global", t = "ui_important_global", } }, provider = function(self) return " %3(" .. self.mode_names[self.mode] .. "%) " end, hl = function(self) local mode = self.mode:sub(1, 1) -- get only the first mode character return { fg = self.mode_colors[mode], bold = true } end, update = { "ModeChanged", pattern = "*:*", callback = vim.schedule_wrap( function() vim.cmd.redrawstatus() end), }, } local file_icon = { init = function(self) local filename = self.filename local extension = vim.fn.fnamemodify(filename, ":e") self.icon = require("nvim-web-devicons").get_icon_color(filename, extension, { default = true }) end, provider = function(self) return self.icon and (self.icon .. " ") end, hl = 'DefaultIcon', } local file_name = { init = function(self) self.lfilename = vim.fn.fnamemodify(self.filename, ":.") if self.lfilename == "" then self.lfilename = " scratch " end end, flexible = 2, { provider = function(self) return self.lfilename end, }, { provider = function(self) return vim.fn.pathshorten(self.lfilename) end, }, } local file_flags = { { condition = function() return vim.bo.modified end, provider = " ", hl = 'Comment', }, { condition = function() return not vim.bo.modifiable or vim.bo.readonly end, provider = "", hl = 'ErrorMsg', }, } local file_name_block = { init = function(self) self.filename = vim.api.nvim_buf_get_name(0) end, file_name, file_flags, { provider = ' ' }, file_icon, { provider = '%<'} -- this means that the statusline is cut here when there's not enough space } local file_type = { provider = function() return ' ' .. string.upper(vim.bo.filetype) end, } local file_encoding = { provider = function() local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc' return enc ~= 'utf-8' and enc:upper() end, } local file_format = { static = { dos = '␍', unix = '', mac = '␍', }, provider = function(self) local fileformat = vim.bo.fileformat return self[fileformat] end } local file_size = { provider = function() -- stackoverflow, compute human readable file size -- i want to see vim opening a 1EiB file local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' } local fsize = vim.fn.getfsize(vim.api.nvim_buf_get_name(0)) fsize = (fsize < 0 and 0) or fsize if fsize < 1024 then return fsize..suffix[1] end local i = math.floor((math.log(fsize) / math.log(1024))) return string.format("%.2g%s", fsize / math.pow(1024, i), suffix[i + 1]) end, } local file_last_modified = { provider = function() local ftime = vim.fn.getftime(vim.api.nvim_buf_get_name(0)) if ftime > 0 then local timeago = require'std.timeago' return timeago.format(ftime) end end, } local lsp_active = { condition = conditions.lsp_attached, update = {'LspAttach', 'LspDetach'}, provider = function() local names = {} for i, server in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do table.insert(names, server.name) end return " [" .. table.concat(names, " ") .. "]" end, } local diagnostic_enabled = { init = function(self) self.icon = vim.diagnostic.is_disabled() and '﨡' or '蘒' end, provider = function(self) return ' ' .. self.icon end, } local diagnostic = { condition = conditions.has_diagnostics, static = { error_icon = vim.fn.sign_getdefined("DiagnosticSignError")[1].text, warn_icon = vim.fn.sign_getdefined("DiagnosticSignWarn")[1].text, info_icon = vim.fn.sign_getdefined("DiagnosticSignInfo")[1].text, hint_icon = vim.fn.sign_getdefined("DiagnosticSignHint")[1].text, }, init = function(self) self.errors = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.ERROR }) self.warnings = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.WARN }) self.hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT }) self.info = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.INFO }) end, update = { "DiagnosticChanged", "BufEnter" }, { provider = function(self) -- 0 is just another output, we can decide to print it or not! return self.errors > 0 and (self.error_icon .. self.errors .. " ") end, hl = 'DiagnosticError', }, { provider = function(self) return self.warnings > 0 and (self.warn_icon .. self.warnings .. " ") end, hl = 'DiagnosticWarn', }, { provider = function(self) return self.info > 0 and (self.info_icon .. self.info .. " ") end, hl = 'DiagnosticInfo', }, { provider = function(self) return self.hints > 0 and (self.hint_icon .. self.hints) end, hl = 'DiagnosticHint', }, } local is_svn_repo = function() local svn_dir = vim.fs.find('.svn', { upward = true, stop = vim.uv.os_homedir(), path = vim.fs.dirname(vim.api.nvim_buf_get_name(0)), type = 'directory', }) return not vim.tbl_isempty(svn_dir) end local svn_get_relative_url = function() local job = require'plenary.job' local relative_url = '[ERR]' job:new{ command = 'svn', args = { 'info', '--show-item', 'relative-url', '--no-newline' }, on_exit = function(current_job, exit_code) if exit_code == 0 then relative_url = current_job:result() end end, }:sync() return relative_url[1] end local svn = { condition = is_svn_repo, init = function(self) self.relative_url = svn_get_relative_url() end, { provider = function(self) return '🐢 ' .. self.relative_url end, }, } local git = { condition = conditions.is_git_repo, init = function(self) self.status_dict = vim.b.gitsigns_status_dict end, { provider = function(self) return " " .. self.status_dict.head .. ' ' end, }, { provider = function(self) local count = self.status_dict.added or 0 return count > 0 and (" " .. count .. ' ') end, hl = 'DiffAdd', }, { provider = function(self) local count = self.status_dict.removed or 0 return count > 0 and (" " .. count .. ' ') end, hl = 'DiffDelete', }, { provider = function(self) local count = self.status_dict.changed or 0 return count > 0 and (" " .. count .. ' ') end, hl = 'DiffChange', }, } local work_dir = { init = function(self) self.icon = (vim.fn.haslocaldir(0) == 1 and "local" or "") .. " " .. " " local cwd = vim.fn.getcwd(0) self.cwd = vim.fn.fnamemodify(cwd, ":~") end, flexible = 1, { -- evaluates to the full-length path provider = function(self) local trail = self.cwd:sub(-1) == "/" and "" or "/" return self.icon .. self.cwd .. trail end, }, { -- evaluates to the shortened path provider = function(self) local cwd = vim.fn.pathshorten(self.cwd) local trail = self.cwd:sub(-1) == "/" and "" or "/" return self.icon .. cwd .. trail end, }, { -- evaluates to "", hiding the component provider = "", } } local help_file_name = { condition = function() return vim.bo.filetype == "help" end, provider = function() local filename = vim.api.nvim_buf_get_name(0) return vim.fn.fnamemodify(filename, ":t") end, hl = 'Question', } local terminal_name = { -- we could add a condition to check that buftype == 'terminal' -- or we could do that later (see #conditional-statuslines below) provider = function() local tname, _ = vim.api.nvim_buf_get_name(0):gsub(".*:", "") tname = vim.fs.basename(tname) return " " .. tname end, hl = 'Bold', } local togglers = { provider = function(self) local togglers = require'bugabinga.options.togglers' return tostring(togglers) end, } local macro_recording = { condition = function() return vim.fn.reg_recording() ~= "" and vim.o.cmdheight == 0 end, provider = " ", hl = 'PreProc', utils.surround({ "░▒▓ ", " ▓▒░" }, nil, { provider = function() return vim.fn.reg_recording() end, hl = 'Bold', }), update = { "RecordingEnter", "RecordingLeave", } } local lazy = { condition = function() local ok, lazy_status = pcall(require, "lazy.status") return ok and lazy_status.has_updates() end, update = { "User", pattern = "LazyUpdate" }, provider = function() return ' ' .. require'lazy.status'.updates() .. ' ' end, on_click = { callback = function() require'lazy'.update() end, name = "update_plugins", }, hl = 'LazyProgressTodo', } local align = { provider = "%=" } local space = { provider = " " } local default_statusline = { vi_mode, macro_recording, align, work_dir, space, git, svn, align, diagnostic_enabled, space, diagnostic, space, lsp_active, align, togglers, align, lazy, space, file_encoding, space, file_format, space ,file_type, space, file_size, space, file_last_modified, } local special_statusline = { condition = function() return conditions.buffer_matches({ buftype = { "nofile", "prompt", "help", "quickfix", "noice", "Trouble" }, filetype = { "^git.*", "fugitive" }, }) end, file_type, space, help_file_name, align } local terminal_statusline = { condition = function() return conditions.buffer_matches({ buftype = { "terminal" } }) end, { condition = conditions.is_active, vi_mode, space }, file_type, space, terminal_name, align, } local inactive_statusline = { condition = conditions.is_not_active, file_type, space, file_name, align, } local statuslines = { hl = function() if conditions.is_active() then return "StatusLine" else return "StatusLineNC" end end, fallthrough = false, special_statusline, terminal_statusline, inactive_statusline, default_statusline, } local winbars = { hl = function() if conditions.is_active() then return "Winbar" else return "WinbarNC" end end, fallthrough = false, { condition = function() return conditions.buffer_matches({ buftype = { "terminal" } }) end, file_type, space, terminal_name, }, file_name_block, } local tabpage = { provider = function(self) return "%" .. self.tabnr .. "T " .. self.tabpage .. " %T" end, hl = function(self) if not self.is_active then return "TabLine" else return "TabLineSel" end end, } local tab_pages = { -- only show this component if there's 2 or more tabpages condition = function() return #vim.api.nvim_list_tabpages() >= 2 end, { provider = "%=" }, utils.make_tablist(tabpage), } local tabline = { tab_pages } -- local statuscolumn = {} heirline.setup { statusline = statuslines, winbar = winbars, tabline = tabline, -- statuscolumn = statuscolumn, opts = { colors = nugu, disable_winbar_cb = function(args) return conditions.buffer_matches({ buftype = { "nofile", "prompt", "help", "quickfix" }, filetype = { "^git.*", "noice", "Trouble" }, }, args.buf) end, }, } end, dependencies = { 'nvim-tree/nvim-web-devicons', 'lewis6991/gitsigns.nvim', }, },}new file mode 100644+20 / −0 text lines
return {{ 'm-demare/hlargs.nvim', event = 'VeryLazy', opts = { paint_arg_declarations = true, paint_arg_usages = true, paint_catch_blocks = { declarations = true, usages = true, }, extras = { named_parameter = true }, excluded_argnames = { declarations = {}, usages = { lua = {} }, }, }, dependencies = { -- 'nvim-treesitter/nvim-treesitter' },}}new file mode 100644+5 / −0 text lines
new file mode 100644+14 / −0 text lines
return {{ "lukas-reineke/indent-blankline.nvim" , lazy = false, config = function() local indent_blankline = require'indent_blankline' indent_blankline.setup { space_char_blankline = " ", show_current_context = true, show_current_context_start = true, show_trailing_blankline_indent = false, } end,}}deleted file mode 100644+0 / −171 text lines
local paq = require 'bugabinga.plugins.install'paq { -- allow paq to manage itself 'savq/paq-nvim', -- caches other plugins for faster startup 'lewis6991/impatient.nvim', -- faster implementation of filetypes.vim 'nathom/filetype.nvim', -- Utilities used by some plugins, e.g. telescope 'nvim-lua/plenary.nvim', -- collection of icons used by other plugins. needs a nerd font 'kyazdani42/nvim-web-devicons', -- fuzzy search ui over many parts of neovim and other plugins 'nvim-telescope/telescope.nvim', -- use telescope as `vim.ui.select` 'nvim-telescope/telescope-ui-select.nvim', -- use telescope as `vim.ui.input` 'stevearc/dressing.nvim', -- display cheat sheet with telesope 'nvim-telescope/telescope-cheat.nvim', -- show file browser in telescope 'nvim-telescope/telescope-file-browser.nvim', -- manage projects via telescope 'nvim-telescope/telescope-project.nvim', -- pick a symbol (emoji, icon, kaomoji,...) via telescope 'nvim-telescope/telescope-symbols.nvim', -- visual indicator if code actions are available 'kosayoda/nvim-lightbulb', -- some bug fix for LSP 'antoinemadec/FixCursorHold.nvim', -- allows statusbar plugins to query LSP 'nvim-lua/lsp-status.nvim', -- keybindings api that integrates into telescope to make keymaps searchable 'gfeiyou/command-center.nvim', -- search and replace 'nvim-pack/nvim-spectre', -- automatically manage window sizes based on focus 'beauwilliams/focus.nvim', -- avoid jitter in buffers when windows change 'luukvbaal/stabilize.nvim', -- keybindings that require a persistent chain 'anuvyklack/hydra.nvim', -- extends hydra with pink heads 'anuvyklack/keymap-layer.nvim', -- configure some editor settings according to editorconfig file, if present 'gpanders/editorconfig.nvim', -- highlight words under cursor -- "RRethy/vim-illuminate", -- highlight matched wors more clearly 'kevinhwang91/nvim-hlslens', -- draw lines to indicate indentation levels 'lukas-reineke/indent-blankline.nvim', -- move blocks of code around 'booperlv/nvim-gomove', -- theme with colors i like 'rockerBOO/boo-colorscheme-nvim', -- display the colorcolumn as a virtual character 'lukas-reineke/virt-column.nvim', -- jump cursor to last known position on neovim start 'ethanholz/nvim-lastplace', -- smooth scrolling for movement 'declancm/cinnamon.nvim', -- fast navigation in buffer via shortcut labels 'ggandor/leap.nvim', -- breadcrumbs in window bar 'SmiteshP/nvim-navic', -- show color values inline -- this plugins seems a little unmaintained right now. -- using some forks for now 'NvChad/nvim-colorizer.lua', -- intelligent commenting 'numToStr/Comment.nvim', -- show git status in ui 'lewis6991/gitsigns.nvim', -- sexy start page 'goolord/alpha-nvim', -- extend vim.notify with fancy ui 'rcarriga/nvim-notify', -- show registers ui 'tversteeg/registers.nvim', -- markdown editor -- 'jakewvincent/mkdnflow.nvim', -- highlight TODOs and collect them 'folke/todo-comments.nvim', -- centralized view for code issues 'folke/trouble.nvim', -- faster access to terminal 'akinsho/toggleterm.nvim', -- File Browser { 'nvim-neo-tree/neo-tree.nvim', branch = 'v2.x', }, -- ui elements for other plugins 'MunifTanjim/nui.nvim', -- window picker component for other plugins { 's1n7ax/nvim-window-picker', branch = 'v1.3', }, -- clipboard/yank history 'AckslD/nvim-neoclip.lua', -- the treesitter parser is not compatible with current nushell for now -- { -- 'LhKipp/nvim-nu', -- run = function() require'nvim-treesitter.install'.ensure_installed('nu') end, -- }, -- smart parser for syntax { 'nvim-treesitter/nvim-treesitter', run = function() require('nvim-treesitter.install').update() end, }, -- extend treesittier with light refactorings 'nvim-treesitter/nvim-treesitter-refactor', -- add movement around structural syntax elements 'nvim-treesitter/nvim-treesitter-textobjects', -- expand selection based on structure 'RRethy/nvim-treesitter-textsubjects', -- highlight function arguments 'm-demare/hlargs.nvim', -- inspect treesitter queries and get helpful functions 'nvim-treesitter/playground', -- set commentstring when in polyglot files 'JoosepAlviste/nvim-ts-context-commentstring', -- generate doc comment boilerplate 'danymat/neogen', -- automatically change corresponding tag, when editing markup (xml/html) 'windwp/nvim-ts-autotag', -- autoclose pairs on enter and completion 'windwp/nvim-autopairs', -- glue, that binds all the neovim lsp crap 'VonHeikemen/lsp-zero.nvim', -- LSP Support 'neovim/nvim-lspconfig', 'williamboman/nvim-lsp-installer', 'simrat39/symbols-outline.nvim', -- Autocompletion 'hrsh7th/nvim-cmp', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path', 'hrsh7th/cmp-nvim-lsp-document-symbol', 'saadparwaiz1/cmp_luasnip', 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-nvim-lua', -- Snippets 'L3MON4D3/LuaSnip', 'rafamadriz/friendly-snippets', -- rust development 'simrat39/rust-tools.nvim', -- java development 'mfussenegger/nvim-jdtls', -- lua neovim config development 'folke/lua-dev.nvim', -- fake lsp to pipe in non-lsp tools, like formatters, into lsp api 'jose-elias-alvarez/null-ls.nvim', -- Special Java LSP integration sauce 'mfussenegger/nvim-jdtls', -- debug adapter protocol 'mfussenegger/nvim-dap', -- repls in neovim 'hkupty/iron.nvim', -- color picker 'ziontee113/color-picker.nvim', -- motions around object 'kylechui/nvim-surround',}-- local plugins. they may override plugins from abovevim.opt.runtimepath:append '~/Workspace/lsp-zero.nvim'return paqdeleted file mode 100644+0 / −12 text lines
new file mode 100644+11 / −0 text lines
new file mode 100644+11 / −0 text lines
new file mode 100644+39 / −0 text lines
return { 'danymat/neogen', keys = {'<A-enter>'}, dependencies = {'nvim-treesitter/nvim-treesitter'}, config = function() local neogen = require'neogen' neogen.setup { } map.normal { name = 'Generate doc comment for outer element', category = 'editing', keys = '<A-enter>', command = neogen.generate, } map.normal { name = 'Generate Doc Comment for Function', category = "editing", keys = '<A-enter>' .. 'f', command = function() neogen.generate { type = 'func' } end, } map.normal { name = 'Generate Doc Comment for File', category = "editing", keys = '<A-enter>' .. 'F', command = function() neogen.generate { type = 'file' } end, } map.normal { name = 'Generate Doc Comment for Class', category = "editing", keys = '<A-enter>' .. 'c', command = function() neogen.generate { type = 'class' } end, } end,}new file mode 100644+63 / −0 text lines
return { { 'folke/noice.nvim', event = 'VeryLazy', branch = 'main', opts = { cmdline = { view = 'cmdline', -- cmdline on bottom }, lsp = { -- override markdown rendering so that **cmp** and other plugins use **Treesitter** override = { ['vim.lsp.util.convert_input_to_markdown_lines'] = true, ['vim.lsp.util.stylize_markdown'] = true, ['cmp.entry.get_documentation'] = true, }, }, -- you can enable a preset for easier configuration presets = { bottom_search = true, -- use a classic bottom cmdline for search command_palette = false, -- position the cmdline and popupmenu together long_message_to_split = true, -- long messages will be sent to a split inc_rename = true, -- enables an input dialog for inc-rename.nvim lsp_doc_border = true, -- add a border to hover docs and signature help }, views = { popupmenu = { border = { style = "shadow" } }, popup = { border = { style = "shadow" } }, hover = { border = { style = "shadow" } }, -- does not seem to play well with other popups -- cmdline = { relative = "cursor", position = { row = 0, col = 0 }, border = { style = "shadow" } }, }, }, dependencies = { 'MunifTanjim/nui.nvim', 'rcarriga/nvim-notify', }, }, { 'rcarriga/nvim-notify', config = function() local notify = require'notify' local fade = require'notify.stages.fade' 'bottom_up' local shadow_fade = function(...) local opts = fade[1](...) if opts then opts.border = 'shadow' opts.row = opts.row - 1 end return opts end notify.setup { stages = { shadow_fade, unpack(fade, 2) }, render = 'compact', timeout = 10000, fps = 140, top_down = false, } end, },}new file mode 100644+9 / −0 text lines
new file mode 100644+33 / −0 text lines
local map = require'std.keymap'return { 'stevearc/oil.nvim', lazy = false, lazy = false, dependencies = { "nvim-tree/nvim-web-devicons" }, config = function() local oil = require'oil' oil.setup{ colums = { "icon", "permissions", "size", }, keymaps = { ["q"] = "actions.close", }, float = { border = 'shadow', padding = 2, win_options = { winblend = 10 }, }, } map.normal { name = 'Open parent directory in buffer.', category = 'files', keys = '-', command = oil.open_float, } end,}new file mode 100644+35 / −0 text lines
local map = require'std.keymap'return {{ 'edluffy/specs.nvim', keys = '<leader><leader>', config = function() local specs = require'specs' specs.setup{ show_jumps = true, min_jump = 30, popup = { delay_ms = 0, -- delay before popup displays inc_ms = 10, -- time increments used for fade/resize effects blend = 10, -- starting blend, between 0-100 (fully transparent), see :h winblend width = 10, winhl = "Cursor", fader = specs.exp_fader, resizer = specs.shrink_resizer }, -- TODO: API for commonly ignored file and buf types? ignore_filetypes = {}, ignore_buftypes = { nofile = true, }, } map.normal { name = 'Find cursor!', category = 'fun', keys = '<leader><leader>', command = specs.show_specs, } end,}}new file mode 100644+38 / −0 text lines
local map = require'std.keymap'return {{ "gbprod/substitute.nvim", keys = { 's', 'S' }, config = function() local substitute = require'substitute' substitute.setup{} map.normal { name = 'substitution motion', category = 'editing', keys = 's', command = substitute.operator, } map.normal { name = 'substitution of current line', category = 'editing', keys = 'ss', command = substitute.line, } map.normal { name = 'substitution until end of line', category = 'editing', keys = 'S', command = substitute.eol, } map.visual { description = 'substitution motion (visual mode)', category = 'editing', keys = 's', command = substitute.visual, } end,}}new file mode 100644+25 / −0 text lines
return { { 'kylechui/nvim-surround', event = 'VeryLazy', opts = { keymaps = { insert = '<C-g>s', insert_line = '<C-g>S', normal = 'ms', normal_cur = 'mss', normal_line = 'mS', normal_cur_line = 'mSS', visual = 'S', visual_line = 'gS', delete = 'md', change = 'mr', change_line = 'mR', }, }, -- dependencies = { -- 'nvim-treesitter/nvim-treesitter', -- 'nvim-treesitter/nvim-treesitter-textobjects', -- }, }}new file mode 100644+187 / −0 text lines
local map = require 'std.keymap'require'bugabinga.health'.add_dependency{ name = 'ripgrep', name_of_executable = 'rg'}{ name = 'find-fd', name_of_executable = 'fd'}return { { 'nvim-telescope/telescope.nvim', branch = '0.1.x', cmd = 'Telescope', event = 'VeryLazy', config = function() local telescope = require 'telescope' local builtin = require 'telescope.builtin' local actions = require 'telescope.actions' local themes = require 'telescope.themes' local ivy = themes.get_ivy { layout_config = { preview_width = 0.69 } } local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } } local cursor = themes.get_cursor { layout_config = { preview_width = 0.42, width = 0.69 } } telescope.setup { defaults = { path_display = { 'truncate' }, sorting_strategy = 'ascending', layout_config = { horizontal = { prompt_position = 'top', preview_width = 0.69 }, vertical = { mirror = false }, width = 0.88, height = 0.69, preview_cutoff = 124, }, mappings = { i = { ['<C-j>'] = actions.cycle_history_next, ['<C-k>'] = actions.cycle_history_prev, ['<C-n>'] = actions.move_selection_next, ['<C-p>'] = actions.move_selection_previous, }, n = { q = actions.close }, }, extensions = { file_browser = { theme = 'ivy', -- cwd_to_path = true, -- select_buffer = true, -- collapse_dirs = true, git_status = false, -- auto_depth = true, -- grouped = true, }, }, }, } require'neoclip'.setup{} local extensions = { 'fzf', 'noice', 'file_browser', 'neoclip', } for _, extension in pairs(extensions) do if not pcall(telescope.load_extension, extension) then vim.notify('Telescope extension ' .. extension .. ' could not be loaded!', 'error') end end map.normal { name = 'Open file explorer...', category = 'telescope', keys = '<C-b>', command = function() telescope.extensions.file_browser.file_browser() end, } map.normal.visual.terminal { name = 'Search help files', category = 'help', keys = '<F1>', command = function() builtin.help_tags(dropdown) end, } map.normal { name = 'Open file explorer with current file...', category = 'telescope', keys = '<C-b><C-b>', command = function() local path = vim.api.nvim_buf_get_name(0) telescope.extensions.file_browser.file_browser{ path = vim.fs.dirname(path), select_buffer = true } end, } map.normal { name = 'Open clipboard history...', category = 'history', keys = '<C-p><C-v>', command = function() telescope.extensions.neoclip.default(cursor) end, } map.normal { name = 'Open macro history...', category = 'history', keys = '<C-p><C-m>', command = function() telescope.extensions.macroscope.default(dropdown) end, } map.normal { name = 'Open global search...', category = 'plugins', keys = '<C-p>', command = function() builtin.builtin() end, } map.normal { name = 'Open search for all files...', category = 'search', keys = '<C-p><C-p>', command = function() builtin.find_files(ivy) end, } map.normal { name = 'Open search for keymaps...', category = 'search', keys = '<C-p><C-k>', command = function() builtin.keymaps(dropdown) end, } map.normal { name = 'Open search for symbols...', category = 'search', keys = '<C-p><C-s>', command = function() builtin.symbols(cursor) end, } map.normal { name = 'Open search for all file contents...', category = 'search', keys = '<C-p><C-g>', command = function() builtin.live_grep(ivy) end, } map.normal { name = 'Open search for current buffer content...', category = 'search', keys = '<C-p><C-b>', command = function() builtin.current_buffer_fuzzy_find(ivy) end, } map.normal { name = 'Open search for buffers...', category = 'search', keys = '<C-e>', command = function() builtin.buffers(cursor) end, } map.normal { name = 'Open search for notifications...', category = 'search', keys = '<C-p><C-n>', command = function() telescope.extensions.noice.noice() end, } end, dependencies = { 'nvim-telescope/telescope-file-browser.nvim', 'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-symbols.nvim', 'AckslD/nvim-neoclip.lua', 'nvim-tree/nvim-web-devicons', { 'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build', }, }, },}new file mode 100644+19 / −0 text lines
return { "akinsho/toggleterm.nvim", keys = '<F7>', cmd = { "ToggleTerm", "TermExec" }, opts = { size = 10, on_create = function() vim.opt.foldcolumn = "0" vim.opt.signcolumn = "no" end, open_mapping = [[<F7>]], shading_factor = 2, direction = "float", float_opts = { border = "shadow", highlights = { border = "Normal", background = "Normal" }, }, },}new file mode 100644+8 / −0 text lines
new file mode 100644+234 / −0 text lines
local map = require 'std.keymap'local auto = require 'std.auto'local want = require 'std.want'require'bugabinga.health'.add_dependency{ name = 'CMake', name_of_executable = 'cmake'}{ name_of_executable = 'make'}{ name_of_executable = 'zig'}{ name = 'TreeSitter CLI', name_of_executable = 'tree-sitter'}return { 'nvim-treesitter/nvim-treesitter', branch = "master", event = {"BufReadPost", "BufNewFile"}, cmd = { "TSBufDisable", "TSBufEnable", "TSBufToggle", "TSDisable", "TSEnable", "TSToggle", "TSInstall", "TSInstallInfo", "TSInstallSync", "TSModuleInfo", "TSUninstall", "TSUpdate", "TSUpdateSync", 'TSPlaygroundToggle', 'TSHighlightCapturesUnderCursor', 'TSNodeUnderCursor', }, build = function() require'nvim-treesitter.install'.update{ with_sync = true } end, dependencies = { "JoosepAlviste/nvim-ts-context-commentstring", "nvim-treesitter/nvim-treesitter-textobjects", "windwp/nvim-ts-autotag", 'nvim-treesitter/playground', }, config = function() local install = require'nvim-treesitter.install' local configs = require'nvim-treesitter.configs' local parsers = require'nvim-treesitter.parsers' install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' } configs.setup { ensure_installed = { 'bash', "c", 'comment', 'diff', 'dot', 'git_config', 'gitcommit', 'gitignore', 'java', 'jsonc', 'markdown', 'markdown_inline', "lua", 'luap', 'luadoc', 'regex', "vim", "vimdoc", "query", 'zig', }, auto_install = true, autotag = { enable = true }, refactor = 'all', context_commentstring = { enable = true, enable_autocmd = false }, highlight = { enable = true, disable = function(lang, buf) local max_filesize = 1000 * 1024 -- 1000 KiB local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > max_filesize then return true end end, additional_vim_regex_highlighting = false, }, -- TODO what does this do? incremental_selection = { enable = true }, indent = { enable = true }, lsp_interop = { enable = true, border = 'rounded', peek_definition_code = { ['<leader>df'] = '@function.outer', ['<leader>dc'] = '@class.outer', }, }, textsubjects = { enable = true, prev_selection = '<Down>', -- (Optional) keymap to select the previous selection keymaps = { ['<Up>'] = 'textsubjects-smart', ['<Right>'] = 'textsubjects-container-outer', ['<Left>'] = 'textsubjects-container-inner', }, }, -- TODO how to learn those? textobjects = { select = { enable = true, lookahead = true, keymaps = { ["ak"] = { query = "@block.outer", desc = "around block" }, ["ik"] = { query = "@block.inner", desc = "inside block" }, ["ac"] = { query = "@class.outer", desc = "around class" }, ["ic"] = { query = "@class.inner", desc = "inside class" }, ["a?"] = { query = "@conditional.outer", desc = "around conditional" }, ["i?"] = { query = "@conditional.inner", desc = "inside conditional" }, ["af"] = { query = "@function.outer", desc = "around function " }, ["if"] = { query = "@function.inner", desc = "inside function " }, ["al"] = { query = "@loop.outer", desc = "around loop" }, ["il"] = { query = "@loop.inner", desc = "inside loop" }, ["aa"] = { query = "@parameter.outer", desc = "around argument" }, ["ia"] = { query = "@parameter.inner", desc = "inside argument" }, }, }, --TODO learn to use move and swap move = { enable = true, set_jumps = true, goto_next_start = { ["]k"] = { query = "@block.outer", desc = "Next block start" }, ["]f"] = { query = "@function.outer", desc = "Next function start" }, ["]a"] = { query = "@parameter.inner", desc = "Next argument start" }, }, goto_next_end = { ["]K"] = { query = "@block.outer", desc = "Next block end" }, ["]F"] = { query = "@function.outer", desc = "Next function end" }, ["]A"] = { query = "@parameter.inner", desc = "Next argument end" }, }, goto_previous_start = { ["[k"] = { query = "@block.outer", desc = "Previous block start" }, ["[f"] = { query = "@function.outer", desc = "Previous function start" }, ["[a"] = { query = "@parameter.inner", desc = "Previous argument start" }, }, goto_previous_end = { ["[K"] = { query = "@block.outer", desc = "Previous block end" }, ["[F"] = { query = "@function.outer", desc = "Previous function end" }, ["[A"] = { query = "@parameter.inner", desc = "Previous argument end" }, }, }, swap = { enable = true, swap_next = { [">K"] = { query = "@block.outer", desc = "Swap next block" }, [">F"] = { query = "@function.outer", desc = "Swap next function" }, [">A"] = { query = "@parameter.inner", desc = "Swap next argument" }, }, swap_previous = { ["<K"] = { query = "@block.outer", desc = "Swap previous block" }, ["<F"] = { query = "@function.outer", desc = "Swap previous function" }, ["<A"] = { query = "@parameter.inner", desc = "Swap previous argument" }, }, }, }, playground = { enable = true, disable = {}, updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code persist_queries = false, -- Whether the query persists across vim sessions keybindings = { toggle_query_editor = 'o', toggle_hl_groups = 'i', toggle_injected_languages = 't', toggle_anonymous_nodes = 'a', toggle_language_display = 'I', focus_language = 'f', unfocus_language = 'F', update = 'R', goto_node = '<cr>', show_help = '?', }, }, } parsers.get_parser_configs().just = { install_info = { url = 'https://github.com/IndianBoy42/tree-sitter-just', -- local path or git repo files = { 'src/parser.c', 'src/scanner.cc' }, branch = 'main', }, maintainers = { '@IndianBoy42' }, } -- FIXME: this aucmd needs to be restricted to buffers where treesitter is loaded -- Treesitter highlights tend to highlight syntax errors immediately. -- But that i find distracting while typing. -- Disable the error highlight while typing, but keep it in normal mode. auto 'disable_error_highlight_while_typing' { { description = 'Disable the @error highlight while in Insert mode', events = 'InsertEnter', pattern = '*', command = function() local highlight = require'nvim-treesitter.highlight' pcall(highlight.detach) pcall(highlight.set_custom_captures, { error = 'None' }) pcall(highlight.attach) end, }, { description = 'Enable the @error highlight while in Normal mode', events = 'InsertLeave', pattern = '*', command = function() local highlight = require'nvim-treesitter.highlight' pcall(highlight.detach) pcall(highlight.set_custom_captures, { error = 'TSError' }) pcall(highlight.attach) end, }, } end,}new file mode 100644+20 / −0 text lines
local map = require'std.keymap'return { 'Wansmer/treesj', keys = '<leader-j>', -- dependencies = { 'nvim-treesitter/nvim-treesitter' }, config = function() local treesj = require'treesj' treesj.setup { use_default_keymaps = false, } map.normal { name = 'Toggle Tree Join/Split', category = 'editing', keys = '<leader-j>', command = treesj.toggle, } end,}new file mode 100644+9 / −0 text lines
deleted file mode 100644+0 / −4 text lines
deleted file mode 100644+0 / −23 text lines
local plenary_profile_ok, plenary_profile = pcall(require, 'plenary.profile')local profile_file = 'profile.log'-- return a profiler facade, that delegates to plenary.profile if it exists.-- also, if vim.g.profile_mode is false, these methods to nothing.return { start = function() if plenary_profile_ok and vim.g.profile_mode then plenary_profile.start(profile_file, {flame = true}) elseif not plenary_profile_ok then vim.notify'profiler could not be loaded' end end, stop = function() if plenary_profile_ok and vim.g.profile_mode then plenary_profile.stop() convert_to_svg(profile_file) if vim.fn.executable"inferno-flamegraph" then vim.fn.system("inferno-flamegraph " .. profile_file .. " | save profile.svg") end end end,}deleted file mode 100644+0 / −15 text lines
local ok, profiler = pcall(require, 'plenary.profile')if not ok then returnend--FIXME: fix file paths into stdpath datalocal file = 'profile.log'return { start = function() profiler.start(file, { flame = true }) end, stop = function() profiler.stop() vim.fn.system('inferno-flamegraph ' .. file .. ' | save profile.svg') end,}deleted file mode 100644+0 / −94 text lines
local want = require 'bugabinga.std.want'want{ 'registers' } (function(registers) registers.setup { -- Show these registers in the order of the string show = "*+\"-/_=#%.0123456789abcdefghijklmnopqrstuvwxyz:", -- Show a line at the bottom with registers that aren't filled show_empty = true, -- Expose the :Registers user command register_user_command = true, -- Always transfer all selected registers to the system clipboard system_clipboard = true, -- Don't show whitespace at the begin and end of the register's content trim_whitespace = true, -- Don't show registers which are exclusively filled with whitespace hide_only_whitespace = true, -- Show a character next to the register name indicating how the register will be applied show_register_types = true, bind_keys = { -- Show the window when pressing " in normal mode, applying the selected register as part of a motion, which is the default behavior of Neovim normal = registers.show_window({ mode = "motion" }), -- Show the window when pressing " in visual mode, applying the selected register as part of a motion, which is the default behavior of Neovim visual = registers.show_window({ mode = "motion" }), -- Show the window when pressing <C-R> in insert mode, inserting the selected register, which is the default behavior of Neovim insert = registers.show_window({ mode = "insert" }), -- When pressing the key of a register, apply it with a very small delay, which will also highlight the selected register registers = registers.apply_register({ delay = 0.1 }), -- Immediately apply the selected register line when pressing the return key return_key = registers.apply_register(), -- Close the registers window when pressing the Esc key escape = registers.close_window(), -- Move the cursor in the registers window down when pressing <C-N> ctrl_n = registers.move_cursor_down(), -- Move the cursor in the registers window up when pressing <C-P> ctrl_p = registers.move_cursor_up(), -- Move the cursor in the registers window down when pressing <C-J> ctrl_j = registers.move_cursor_down(), -- Move the cursor in the registers window up when pressing <C-K> ctrl_k = registers.move_cursor_up(), }, events = { -- 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 on_register_highlighted = registers.preview_highlighted_register({ if_mode = { "insert", "paste" } }), }, symbols = { -- Show a special character for line breaks newline = "⏎", -- Show space characters without changes space = " ", -- Show a special character for tabs tab = "·", -- The character to show when a register will be applied in a char-wise fashion register_type_charwise = "ᶜ", -- The character to show when a register will be applied in a line-wise fashion register_type_linewise = "ˡ", -- The character to show when a register will be applied in a block-wise fashion register_type_blockwise = "ᵇ", }, window = { -- The window can't be wider than 100 characters max_width = 100, -- Show a small highlight in the sign column for the line the cursor is on highlight_cursorline = true, -- Don't draw a border around the registers window border = "rounded", -- Apply a tiny bit of transparency to the the window, letting some characters behind it bleed through transparency = 10, }, -- Highlight the sign registers as regular Neovim highlights sign_highlights = { cursorline = "Visual", selection = "Constant", default = "Function", unnamed = "Statement", read_only = "Type", expression = "Exception", black_hole = "Error", alternate_buffer = "Operator", last_search = "Tag", delete = "Special", yank = "Delimiter", history = "Number", named = "Todo", }, }end)deleted file mode 100644+0 / −6 text lines
deleted file mode 100644+0 / −62 text lines
local map = require 'bugabinga.std.keymap'local want = require 'bugabinga.std.want'want { 'hlslens' } (function(lens) lens.setup() -- this highlight links by default to WildMenu, which is to offensive vim.api.nvim_set_hl(0, 'HlSearchLens', { link = 'Search' }) map { description = 'Go to next highlighted search match', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.N, command = function() vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.N) lens.start() end, } map { description = 'Go to previous highlighted search match', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.SHIFT_N, command = function() vim.fn.execute('normal! ' .. vim.v.count1 .. map.KEY.SHIFT_N) lens.start() end, } map { description = 'Search next word under cursor', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.MULTIPLY, command = function() vim.api.nvim_feedkeys(map.KEY.MULTIPLY, map.MODE.NORMAL, true) lens.start() end, } map { description = 'Search previous word under cursor', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.HASHTAG, command = function() vim.api.nvim_feedkeys(map.KEY.HASHTAG, map.MODE.NORMAL, true) lens.start() end, } map { description = 'Clear search highlights', category = map.CATEGORY.SEARCH, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.LEADER, command = function() vim.cmd 'nohlsearch' end, }end)deleted file mode 100644+0 / −151 text lines
local map = require'bugabinga.std.keymap'local fmt = require'bugabinga.std.fmt'local want = require 'bugabinga.std.want'want { 'cinnamon' } (function(cinnamon) cinnamon.setup { default_keymaps = false, hide_cursor = true, } -- weird. when using the Scroll function via lua directly, it does seemingly nothing... -- -- Half-window movements: map { description = 'Scroll half window up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_U, command = fmt.cmd'lua Scroll("<C-u>", 1, 1)', } map { description = 'Scroll half window down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_D, command = fmt.cmd'lua Scroll("<C-d>", 1, 1)', } -- -- Page movements: map { description = 'Scroll half page up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_B, command = fmt.cmd'lua Scroll("<C-b>", 1, 1)', } map { description = 'Scroll half page down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CONTROL_F, command = fmt.cmd'lua Scroll("<C-f>", 1, 1)', } map { description = 'Scroll half page up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.PAGE_UP, command = fmt.cmd'lua Scroll("<PageUp>", 1, 1)', } map { description = 'Scroll half page down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.PAGE_DOWN, command = fmt.cmd'lua Scroll("<PageDown>", 1, 1)', }-- Start/end of file and line number movements: map { description = 'Scroll to start of buffer', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.G .. map.KEY.G, command = fmt.cmd'lua Scroll("gg")', } map { description = 'Scroll to end of buffer', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SHIFT_G, command = fmt.cmd'lua Scroll("G", 0, 1)', }-- Start/end of line: map { description = 'Scroll to start of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.ZERO, command = fmt.cmd'lua Scroll("0")', } map { description = 'Scroll to first word of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CARET, command = fmt.cmd'lua Scroll("^")', } map { description = 'Scroll to end of line', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.DOLLAR, command = fmt.cmd'lua Scroll("$", 0 ,1)', }-- Paragraph movements:vim.keymap.set({ 'n', 'x' }, '{', "<Cmd>lua Scroll('{')<CR>") map { description = 'Scroll to previous paragraph', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.OPEN_CURLY_BRACKET, command = fmt.cmd'lua Scroll("{")', }vim.keymap.set({ 'n', 'x' }, '}', "<Cmd>lua Scroll('}')<CR>") map { description = 'Scroll to next paragraph', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.CLOSE_CURLY_BRACKET, command = fmt.cmd'lua Scroll("}")', } ---- Up/down movements:vim.keymap.set({ 'n', 'x' }, 'k', "<Cmd>lua Scroll('k', 0, 1)<CR>") map { description = 'Scroll line up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.K, command = fmt.cmd'lua Scroll("k", 0, 1)', }vim.keymap.set({ 'n', 'x' }, 'j', "<Cmd>lua Scroll('j', 0, 1)<CR>") map { description = 'Scroll line down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.J, command = fmt.cmd'lua Scroll("j", 0, 1)', }-- SCROLL_WHEEL_KEYMAPS: map { description = 'Scroll wheel up', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SCROLL_WHEEL_UP, command = fmt.cmd'lua Scroll("<ScrollWheelUp>")', } map { description = 'Scroll wheel down', category = map.CATEGORY.SCROLL, mode = { map.MODE.NORMAL, map.MODE.VISUAL }, keys = map.KEY.SCROLL_WHEEL_DOWN, command = fmt.cmd'lua Scroll("<ScrollWheelDown>")', }end)deleted file mode 100644+0 / −45 text lines
local map = require 'bugabinga.std.keymap'local fmt = require 'bugabinga.std.fmt'local want = require 'bugabinga.std.want'want { 'alpha', 'alpha.themes.startify', 'nvim-web-devicons',} (function(alpha, theme, devicons) theme.section.header.val = { [[ ▄▄▄▄ █ ██ ▄████ ▄▄▄ ▄▄▄▄ ██▓███▄ █ ▄████ ▄▄▄ ]], [[▓█████▄ ██ ▓██▒██▒ ▀█▒████▄ ▓█████▄▓██▒██ ▀█ █ ██▒ ▀█▒████▄ ]], [[▒██▒ ▄█▓██ ▒██▒██░▄▄▄▒██ ▀█▄ ▒██▒ ▄█▒██▓██ ▀█ ██▒██░▄▄▄▒██ ▀█▄ ]], [[▒██░█▀ ▓▓█ ░██░▓█ ██░██▄▄▄▄██▒██░█▀ ░██▓██▒ ▐▌██░▓█ ██░██▄▄▄▄██ ]], [[░▓█ ▀█▒▒█████▓░▒▓███▀▒▓█ ▓██░▓█ ▀█░██▒██░ ▓██░▒▓███▀▒▓█ ▓██▒]], [[░▒▓███▀░▒▓▒ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░▒▓███▀░▓ ░ ▒░ ▒ ▒ ░▒ ▒ ▒▒ ▓▒█░]], [[▒░▒ ░░░▒░ ░ ░ ░ ░ ▒ ▒▒ ▒░▒ ░ ▒ ░ ░░ ░ ▒░ ░ ░ ▒ ▒▒ ░]], [[ ░ ░ ░░░ ░ ░░ ░ ░ ░ ▒ ░ ░ ▒ ░ ░ ░ ░░ ░ ░ ░ ▒ ]], [[ ░ ░ ░ ░ ░░ ░ ░ ░ ░ ░]], [[ ░ ░ ]], } theme.section.top_buttons.val = { theme.button('e', devicons.get_icon 'NewFile' .. ' New file', fmt.cmd 'new | startinsert'), } theme.section.bottom_buttons.val = { theme.button('q', devicons.get_icon 'SignOut' .. ' Quit Neovim', fmt.cmd 'qa'), } -- hides the mru section theme.section.mru.val = { { type = 'padding', val = 0 } } theme.section.footer = { { type = 'text', val = devicons.get_icon 'Bug' .. ' bugabinga.net' }, } theme.mru_opts.ignore = function(path, _) return string.find(path, 'COMMIT_EDITMSG') end alpha.setup(theme.config) map { description = 'Toggle Start Screen', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.F12, command = fmt.cmd 'Alpha', }end)deleted file mode 100644+0 / −27 text lines
-- Wrapper over `vim.api.nvim_create_autocmd` for automatic grouping and idempotency.return function(group_name) local group = vim.api.nvim_create_augroup(group_name, { clear = true }) return function(list_of_autocommands) if list_of_autocommands.events then list_of_autocommands = { list_of_autocommands } end for _, autocommand in pairs(list_of_autocommands) do -- command and callback are mutually exclusive. -- one of them has to be nil local command = nil local callback = nil if type(autocommand.command) == 'function' then callback = autocommand.command else command = autocommand.command end vim.api.nvim_create_autocmd(autocommand.events, { desc = autocommand.description, group = group, pattern = autocommand.pattern, command = command, callback = callback, }) end endenddeleted file mode 100644+0 / −8 text lines
deleted file mode 100644+0 / −19 text lines
local want = require 'bugabinga.std.want'local function get_icon(icon_name) return want { 'nvim-web-devicons' } (function(devicons) return devicons.get_icon(icon_name) end)end --TODO: fill up those iconsreturn setmetatable({ FILE = {}, UI = {}, DOCUMENT = {}, MISC = {},}, { __call = function(_, ...) return get_icon(...) end,})deleted file mode 100644+0 / −116 text lines
local want = require 'bugabinga.std.want'local bind = want { 'command_center' } (function(command_center) return function(map) map.visible = map.visible == nil or map.visible map.options = map.options or {} local options = vim.tbl_extend('keep', map.options, { silent = true, desc = map.description, }) if map.visible then local keybindings = {} if type(map.mode) == 'table' then for _, mode in ipairs(map.mode) do table.insert(keybindings, { mode, map.keys }) end else keybindings = { map.mode, map.keys } end command_center.add({ { description = map.description, category = map.category, cmd = map.command, keybindings = keybindings, }, }, command_center.mode.ADD_ONLY) end -- use neovim api to add keybind instead of command_center, because it has -- nicer defaults. vim.keymap.set(map.mode, map.keys, map.command, options) endend)return setmetatable({ MODE = { NORMAL = 'n', VISUAL = 'x', ALL = '', }, KEY = { LEADER = '<LEADER>', SPACE = '<SPACE>', ENTER = '<CR>', ESCAPE = '<ESC>', UP = '<Up>', DOWN = '<Down>', LEFT = '<Left>', RIGHT = '<Right>', PAGE_UP = '<PageUp>', PAGE_DOWN = '<PageDown>', SCROLL_WHEEL_UP = '<ScrollWheelUp>', SCROLL_WHEEL_DOWN = '<ScrollWheelDown>', CONTROL_B = '<C-b>', CONTROL_D = '<C-d>', CONTROL_F = '<C-f>', CONTROL_U = '<C-u>', SHIFT_G = 'G', SHIFT_N = 'N', CONTROL_SHIFT_F = '<C-F>', ALT_H = '<A-h>', ALT_J = '<A-j>', ALT_K = '<A-k>', ALT_L = '<A-l>', ALT_SHIFT_H = '<A-H>', ALT_SHIFT_J = '<A-J>', ALT_SHIFT_K = '<A-K>', ALT_SHIFT_L = '<A-L>', F2 = '<F2>', F4 = '<F4>', F6 = '<F6>', F7 = '<F7>', F8 = '<F8>', F12 = '<F12>', CARET = '^', DOLLAR = '$', MULTIPLY = '*', HASHTAG = '#', OPEN_CURLY_BRACKET = '{', CLOSE_CURLY_BRACKET = '}', ZERO = '0', B = 'b', C = 'c', D = 'd', E = 'e', F = 'f', G = 'g', I = 'i', J = 'j', L = 'l', N = 'n', K = 'k', P = 'p', R = 'r', S = 's', T = 't', V = 'v', }, COMMAND = { NOP = function() end, }, CATEGORY = { NAVIGATION = 'navigation', EDITING = 'editing', NOTIFY = 'notify', VIEW = 'view', SEARCH = 'search', SCROLL = 'scroll', PROBLEMS = 'problems', LSP = 'lsp', VERSION_CONTROL = 'vcs', },}, { __call = function(_, ...) return bind(...) end,})deleted file mode 100644+0 / −149 text lines
--- Determines the path to a root directory, starting from the given directory.-- Markers have a name and weight.-- Each name is checked for existence in all directories up to the root.-- The sum of all markers and their weight determines a directories score.-- The directory with the highest score will be returned.---- ## Example-- Assuming you want to determine the root of your current buffer, that is part-- of some project.-- Buffer: `/home/user/workspace/some\_project/a/b/c/d/the\_buffer.c`-- Project root: `/home/user/workspace/some\_project`-- -> contains `.git`, `README` and `Makefile`---- ```lua-- local project = require'bugabinga.std.project'-- local current_buffer = vim.api.nvim_buf_get_name(0)-- local markers = {-- { name = ".git", weight = 1 },-- { name = "README", weight = 2 },-- { naem = "Makefile", weight = 3 },-- }-- local root = project.determine_root(current_buffer, markers, "~")-- print(root) -- /home/user/workspace/some_project-- ```---@param directory string The starting directory, from where to begin the search.---@param markers table<string,number> List of markers, that define the root, that is searched for.---@param root string The last directory on the path to root, when to stop searching. Usually '/' or '~'.---@return string? #A directory, that contains the `markers` and lies on the path from `directory` to `root`.local function determine_root(directory, markers, root) local dirname = function(path) return vim.fn.fnamemodify(path, ':h') end local exists = function(path) return vim.loop.fs_stat(path) end local directory_scores = {} local current_distance_to_buffer = 0 --traverse the path to root and check every directory on the way for files --that are named like the given markers. if markers exist, add those to the --score of the directory. scores of all directories with markers will be --processes later. --the root itself never gets checked for markers! -- stop if we reached the user defined root instead of the file system root while directory ~= root do local score = { path = directory, marker_count = 0, distance_to_buffer_file = current_distance_to_buffer, markers = {}, } for _, marker in ipairs(markers) do local marker_path = directory .. '/' .. marker.name if exists(marker_path) then score.marker_count = score.marker_count + marker.weight table.insert(score.markers, marker_path) end end if score.marker_count > 0 then table.insert(directory_scores, score) end directory = dirname(directory) current_distance_to_buffer = current_distance_to_buffer + 1 end local project_root = nil local max_likelyhood = 0 -- the project root is most likely the directory with the highest marker count -- and distance to current buffer. -- because if there are markers further away from the buffer than other markers, -- then it is most likely a nested project structure (multi-module). -- in those cases we are looking for the root project folder, instead the nearest -- child project root folder. for _, score in ipairs(directory_scores) do local likelihood = score.marker_count + score.distance_to_buffer_file if likelihood > max_likelyhood then max_likelyhood = likelihood project_root = score.path end end return project_rootend--- 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.---@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`.---@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!---@return string|nil project_root The project root of the current buffer, or `nil`, if none could be determined.local function determine_project_root(custom_markers, custom_root) -- glob expands user defined root and checks, that it exists ---@diagnostic disable-next-line: missing-parameter local root = vim.fn.glob(custom_root) if root == '' then vim.notify('the custom root ' .. custom_root .. ' does not exist!', 'error') return nil end -- define some language-independent markers local markers = { { name = '.git', weight = 1 }, { name = '.gitignore', weight = 1 }, { name = '.svn', weight = 1 }, { name = 'justfile', weight = 1 }, { name = 'Jenkinsfile', weight = 1 }, { name = '.editorconfig', weight = 1 }, { name = 'LICENSE', weight = 1 }, { name = 'LICENSE.txt', weight = 1 }, { name = 'COPYING', weight = 1 }, { name = 'README', weight = 1 }, { name = 'README.md', weight = 1 }, } markers = vim.tbl_deep_extend('force', markers, custom_markers) local buffer_name = vim.api.nvim_buf_get_name(0) local directory_name = vim.fn.fnamemodify(buffer_name, ':p:h') return determine_root(directory_name, markers, root)endlocal java_markers = { { name = '.idea', weight = 2 }, { name = '.classpath', weight = 2 }, { name = '.settings', weight = 2 }, { name = '.project', weight = 2 }, { name = 'target', weight = 2 }, { name = 'pom.xml', weight = 2 }, { name = 'mvnw', weight = 3 }, { name = '.mvn', weight = 3 }, { name = 'mvnw.cmd', weight = 3 }, { name = 'build.gradle', weight = 2 }, { name = 'gradle.properties', weight = 3 }, { name = 'settings.gradle', weight = 3 }, { name = 'gradlew', weight = 3 }, { name = 'gradlew.bat', weight = 3 },}local function determine_java_project_root(user_root) return determine_project_root(java_markers, user_root)endlocal function is_java_project_root(directory, user_root) -- avoid determine_project_root to __not__ check non-java markers return determine_root(directory, java_markers, user_root) ~= nilendreturn { is_java_project_root = is_java_project_root, determine_root = determine_root, determine_project_root = determine_project_root, determine_java_project_root = determine_java_project_root,}deleted file mode 100644+0 / −7 text lines
deleted file mode 100644+0 / −24 text lines
--- attempts to import modules with the given names.---@param module_names table name or list of names, or a function that returns those---@return function function that takes a function that takes in the modules listed by `module_names`return function(module_names) return function(block) local loaded_modules = {} local failed_modules = {} for _, name in pairs(module_names) do local status_ok, module = pcall(require, name) if status_ok then table.insert(loaded_modules, module) else table.insert(failed_modules, module) end end for _, module in pairs(failed_modules) do vim.notify('the required module ' .. module .. ' could not be found', 'error') end if #failed_modules > 0 then return end return block(unpack(loaded_modules)) endenddeleted file mode 100644+0 / −11 text lines
deleted file mode 100644+0 / −43 text lines
local auto = require 'bugabinga.std.auto'local want = require 'bugabinga.std.want'--FIXME use keymap facadewant { 'toggleterm' } (function(toggleterm) toggleterm.setup { size = 20, open_mapping = [[<LEADER>t]], hide_numbers = true, shade_filetypes = {}, shade_terminals = true, shading_factor = 2, start_in_insert = true, insert_mappings = false, persist_size = true, direction = 'float', close_on_exit = true, shell = vim.o.shell, float_opts = { border = 'curved', winblend = 0, highlights = { border = 'Normal', background = 'Normal', }, }, } local function set_terminal_keymaps() local opts = { noremap = true } vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-h>', [[<C-\><C-n><C-W>h]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-j>', [[<C-\><C-n><C-W>j]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-k>', [[<C-\><C-n><C-W>k]], opts) vim.api.nvim_buf_set_keymap(0, 't', '<C-l>', [[<C-\><C-n><C-W>l]], opts) end auto 'set_terminal_keymaps' { description = 'Set more natural keybindings in terminal', events = 'TermOpen', pattern = 'term://*', command = set_terminal_keymaps, }end)deleted file mode 100644+0 / −42 text lines
local map = require 'bugabinga.std.keymap'local project = require 'bugabinga.std.project'local want = require 'bugabinga.std.want'want { 'todo-comments' }(function(todo) -- HACK: #104 Invalid in command-line window local hl = require 'todo-comments.highlight' local highlight_win = hl.highlight_win hl.highlight_win = function(win, force) pcall(highlight_win, win, force) end todo.setup {} map{ description = 'Show all To-Dos in the current project', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.T, command = function() local root = project.determine_project_root({},'~') local cwd = '' if root then cwd = ' cwd=' .. root end vim.cmd ('TodoTrouble' .. cwd) end, } map{ description = 'Search all To-Dos in the current project', category = map.CATEGORY.VIEW, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.T .. map.KEY.T, command = function() local root = project.determine_project_root({},'~') local cwd = '' if root then cwd = ' cwd=' .. root end vim.cmd ('TodoTelescope' .. cwd) end, }end)deleted file mode 100644+0 / −211 text lines
local map = require 'bugabinga.std.keymap'local auto = require 'bugabinga.std.auto'local want = require 'bugabinga.std.want'want { 'nvim-treesitter.install', 'nvim-treesitter.configs', 'nvim-treesitter.parsers', 'hlargs', 'neogen',} (function(install, configs, parsers, hlargs, neogen) install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' } install.prefer_git = true configs.setup { -- A list of parser names, or "all" ensure_installed = 'all', -- Install parsers asynchronously (only applied to `ensure_installed`) -- The synchronous install method seems to rely on a posix shell, which i -- do not use. sync_install = false, -- Automatically install missing parsers when entering buffer auto_install = true, highlight = { -- `false` will disable the whole extension enable = true, disable = {}, -- Setting this to true will run `:h syntax` and tree-sitter at the same time. -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). -- Using this option may slow down your editor, and you may see some duplicate highlights. -- Instead of true it can also be a list of languages additional_vim_regex_highlighting = false, }, incremental_selection = { enable = true, keymaps = { init_selection = 'gnn', node_incremental = 'grn', scope_incremental = 'grc', node_decremental = 'grm', }, }, -- indent on = with TS indent = { enable = true, }, -- These features are mostly useful when there is treesitter parser, but no -- LSP. -- FIXME: harmonize the keybinds with LSP equivalents refactor = 'all', textsubjects = { enable = true, prev_selection = '<Down>', -- (Optional) keymap to select the previous selection keymaps = { ['<Up>'] = 'textsubjects-smart', ['<Right>'] = 'textsubjects-container-outer', ['<Left>'] = 'textsubjects-container-inner', }, }, textobjects = { select = { enable = true, -- Automatically jump forward to textobj, similar to targets.vim lookahead = true, keymaps = { -- You can use the capture groups defined in textobjects.scm ['af'] = '@function.outer', ['if'] = '@function.inner', ['ac'] = '@class.outer', ['ic'] = '@class.inner', }, }, swap = { enable = true, swap_next = { ['<leader>a'] = '@parameter.inner', }, swap_previous = { ['<leader>A'] = '@parameter.inner', }, }, move = { enable = true, set_jumps = true, -- whether to set jumps in the jumplist goto_next_start = { [']m'] = '@function.outer', [']]'] = '@class.outer', }, goto_next_end = { [']M'] = '@function.outer', [']['] = '@class.outer', }, goto_previous_start = { ['[m'] = '@function.outer', ['[['] = '@class.outer', }, goto_previous_end = { ['[M'] = '@function.outer', ['[]'] = '@class.outer', }, }, lsp_interop = { enable = true, border = 'rounded', peek_definition_code = { ['<leader>df'] = '@function.outer', ['<leader>dc'] = '@class.outer', }, }, }, playground = { enable = true, disable = {}, updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code persist_queries = false, -- Whether the query persists across vim sessions keybindings = { toggle_query_editor = 'o', toggle_hl_groups = 'i', toggle_injected_languages = 't', toggle_anonymous_nodes = 'a', toggle_language_display = 'I', focus_language = 'f', unfocus_language = 'F', update = 'R', goto_node = '<cr>', show_help = '?', }, }, context_commentstring = { enable = true, }, -- autoclose and rename tags autotag = { enable = true, }, } parsers.get_parser_configs().just = { install_info = { url = 'https://github.com/IndianBoy42/tree-sitter-just', -- local path or git repo files = { 'src/parser.c', 'src/scanner.cc' }, branch = 'main', }, maintainers = { '@IndianBoy42' }, } -- highlight function arguments -- TODO: define color hlargs.setup() -- generate doc comment annotations -- TODO: setup keybind neogen.setup{ snippet_engine = 'luasnip', } map { description = 'Generate Doc Comment for Function', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.F, command = function() neogen.generate{ type = 'func'} end, } map { description = 'Generate Doc Comment for File', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.F .. map.KEY.F, command = function() neogen.generate{ type = 'file'} end, } map { description = 'Generate Doc Comment for Class', category = map.CATEGORY.EDITING, mode = map.MODE.NORMAL, keys = map.KEY.LEADER .. map.KEY.N .. map.KEY.C, command = function() neogen.generate{ type = 'class'} end, } -- FIXME: this aucmd needs to be restricted to buffers where treesitter is loaded -- Treesitter highlights tend to highlight syntax errors immediately. -- But that i find distracting while typing. -- Disable the error highlight while typing, but keep it in normal mode. auto 'disable_error_highlight_while_typing' { { description = 'Disable the @error highlight while in Insert mode', events = 'InsertEnter', pattern = '*', command = function() want { 'nvim-treesitter.highlight' } (function(highlight) pcall(highlight.stop) pcall(highlight.set_custom_captures, { error = 'None' }) pcall(highlight.start) end) end, }, { description = 'Enable the @error highlight while in Normal mode', events = 'InsertLeave', pattern = '*', command = function() want { 'nvim-treesitter.highlight' } (function(highlight) pcall(highlight.stop) pcall(highlight.set_custom_captures, { error = 'TSError' }) pcall(highlight.start) end) end, }, }end)new file mode 100644+65 / −0 text lines
-- If invoked as a preview callback, performs 'inccommand' preview by-- highlighting trailing whitespace in the current buffer.local function trim_space_preview(opts, preview_ns, preview_buf) vim.cmd('hi clear Whitespace') local line1 = opts.line1 local line2 = opts.line2 local buf = vim.api.nvim_get_current_buf() local lines = vim.api.nvim_buf_get_lines(buf, line1 - 1, line2, false) local preview_buf_line = 0 for i, line in ipairs(lines) do local start_idx, end_idx = string.find(line, '%s+$') if start_idx then -- Highlight the match vim.api.nvim_buf_add_highlight( buf, preview_ns, 'Substitute', line1 + i - 2, start_idx - 1, end_idx ) -- Add lines and set highlights in the preview buffer -- if inccommand=split if preview_buf then local prefix = string.format('|%d| ', line1 + i - 1) vim.api.nvim_buf_set_lines( preview_buf, preview_buf_line, preview_buf_line, false, { prefix .. line } ) vim.api.nvim_buf_add_highlight( preview_buf, preview_ns, 'Substitute', preview_buf_line, #prefix + start_idx - 1, #prefix + end_idx ) preview_buf_line = preview_buf_line + 1 end end end -- Return the value of the preview type return 2end-- Trims all trailing whitespace in the current buffer.local function trim_space(opts) local line1 = opts.line1 local line2 = opts.line2 local buf = vim.api.nvim_get_current_buf() local lines = vim.api.nvim_buf_get_lines(buf, line1 - 1, line2, false) local new_lines = {} for i, line in ipairs(lines) do new_lines[i] = string.gsub(line, '%s+$', '') end vim.api.nvim_buf_set_lines(buf, line1 - 1, line2, false, new_lines)end-- Create the user commandvim.api.nvim_create_user_command( 'TrimTrailingWhitespace', trim_space, { nargs = '?', range = '%', addr = 'lines', preview = trim_space_preview })deleted file mode 100644+0 / −17 text lines
local want = require 'bugabinga.std.want'want { 'focus', 'stabilize',} (function(focus, stabilize) local excluded_filetypes = { 'lsp-installer', 'toggleterm', 'qf', 'help', 'Trouble', 'neo-tree' } focus.setup { excluded_filetypes = excluded_filetypes, excluded_buftypes = { 'nofile', 'prompt', 'popup', 'help', 'terminal' }, compatible_filetrees = { 'neo-tree' }, cursorline = false, signcolumn = false, } stabilize.setup()end)new file mode 100644+27 / −0 text lines
-- Wrapper over `vim.api.nvim_create_autocmd` for automatic grouping and idempotency.return function(group_name) local group = vim.api.nvim_create_augroup(group_name, { clear = true }) return function(list_of_autocommands) if list_of_autocommands.events then list_of_autocommands = { list_of_autocommands } end for _, autocommand in pairs(list_of_autocommands) do -- command and callback are mutually exclusive. -- one of them has to be nil local command = nil local callback = nil if type(autocommand.command) == 'function' then callback = autocommand.command else command = autocommand.command end vim.api.nvim_create_autocmd(autocommand.events, { desc = autocommand.description, group = group, pattern = autocommand.pattern, command = command, callback = callback, }) end endendnew file mode 100644+33 / −0 text lines
-- asserts if given value is of given typesreturn function(value, function_name, parameter_name, ...) assert( type(function_name) == 'string', 'the parameter function_name to function check_parameter cannot be nil and must be string' ) assert( type(parameter_name) == 'string', 'the parameter parameter_name to function check_parameter cannot be nil and must be string' ) local prelude = 'the parameter ' .. parameter_name .. ' to function ' .. function_name assert(value, prelude .. ' cannot be nil!') local actual_type = type(value) local type_check = false local arg = { ... } -- we are still lua version 5.1 in here... -- if no types are given, we pass if vim.tbl_isempty(arg) then return value end for _, expected_type in ipairs(arg) do local same_type = actual_type == expected_type type_check = type_check or same_type end assert(type_check, prelude .. ' must be one of ' .. vim.inspect(arg) .. ', but is ' .. actual_type .. '.') return valueendnew file mode 100644+74 / −0 text lines
local want = require 'std.want'local check_parameter = require 'std.check_parameter'local available_modes = { normal_visual_select_operator_pending = '', normal = 'n', n = 'n', insert = 'i', i = 'i', visual = 'x', x = 'x', visual_select = 'v', v = 'v', select = 's', s = 's', operator_pending = 'o', o = 'o', ['!'] = '!', insert_command_line = '!', command_line = 'c', c = 'c', terminal = 't', t = 't',}local bind = function(self, map) local keys = check_parameter(map.keys, 'bind', 'map.keys', 'string') local command = check_parameter(map.command, 'bind', 'map.command', 'function', 'string') map.visible = map.visible == nil or map.visible map.options = map.options or {} if map.category and map.description then map.description = map.category .. ': ' .. map.description end local options = vim.tbl_extend('keep', map.options, { silent = true, desc = map.description, -- our custom option to be filtered by some time later visible = visible, }) if vim.tbl_isempty(self.mode) then self.mode[1] = available_modes.normal_visual_select_operator_pending end vim.keymap.set(self.mode, keys, command, options) self.mode = {}endlocal add_mode = function(self, key) local new_mode = available_modes[key] if new_mode == nil then error('unknown keymap mode requested: ' .. key) end if not self.mode[new_mode] then table.insert(self.mode, new_mode) end return selfendreturn setmetatable({ mode = {},},{ __index = add_mode, __call = bind,})new file mode 100644+149 / −0 text lines
--- Determines the path to a root directory, starting from the given directory.-- Markers have a name and weight.-- Each name is checked for existence in all directories up to the root.-- The sum of all markers and their weight determines a directories score.-- The directory with the highest score will be returned.---- ## Example-- Assuming you want to determine the root of your current buffer, that is part-- of some project.-- Buffer: `/home/user/workspace/some\_project/a/b/c/d/the\_buffer.c`-- Project root: `/home/user/workspace/some\_project`-- -> contains `.git`, `README` and `Makefile`---- ```lua-- local project = require'std.project'-- local current_buffer = vim.api.nvim_buf_get_name(0)-- local markers = {-- { name = ".git", weight = 1 },-- { name = "README", weight = 2 },-- { naem = "Makefile", weight = 3 },-- }-- local root = project.determine_root(current_buffer, markers, "~")-- print(root) -- /home/user/workspace/some_project-- ```---@param directory string The starting directory, from where to begin the search.---@param markers table<string,number> List of markers, that define the root, that is searched for.---@param root string The last directory on the path to root, when to stop searching. Usually '/' or '~'.---@return string? #A directory, that contains the `markers` and lies on the path from `directory` to `root`.local function determine_root(directory, markers, root) local dirname = function(path) return vim.fn.fnamemodify(path, ':h') end local exists = function(path) return vim.loop.fs_stat(path) end local directory_scores = {} local current_distance_to_buffer = 0 --traverse the path to root and check every directory on the way for files --that are named like the given markers. if markers exist, add those to the --score of the directory. scores of all directories with markers will be --processes later. --the root itself never gets checked for markers! -- stop if we reached the user defined root instead of the file system root while directory ~= root do local score = { path = directory, marker_count = 0, distance_to_buffer_file = current_distance_to_buffer, markers = {}, } for _, marker in ipairs(markers) do local marker_path = directory .. '/' .. marker.name if exists(marker_path) then score.marker_count = score.marker_count + marker.weight table.insert(score.markers, marker_path) end end if score.marker_count > 0 then table.insert(directory_scores, score) end directory = dirname(directory) current_distance_to_buffer = current_distance_to_buffer + 1 end local project_root = nil local max_likelyhood = 0 -- the project root is most likely the directory with the highest marker count -- and distance to current buffer. -- because if there are markers further away from the buffer than other markers, -- then it is most likely a nested project structure (multi-module). -- in those cases we are looking for the root project folder, instead the nearest -- child project root folder. for _, score in ipairs(directory_scores) do local likelihood = score.marker_count + score.distance_to_buffer_file if likelihood > max_likelyhood then max_likelyhood = likelihood project_root = score.path end end return project_rootend--- 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.---@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`.---@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!---@return string|nil project_root The project root of the current buffer, or `nil`, if none could be determined.local function determine_project_root(custom_markers, custom_root) -- glob expands user defined root and checks, that it exists ---@diagnostic disable-next-line: missing-parameter local root = vim.fn.glob(custom_root) if root == '' then vim.notify('the custom root ' .. custom_root .. ' does not exist!', 'error') return nil end -- define some language-independent markers local markers = { { name = '.git', weight = 1 }, { name = '.gitignore', weight = 1 }, { name = '.svn', weight = 1 }, { name = 'justfile', weight = 1 }, { name = 'Jenkinsfile', weight = 1 }, { name = '.editorconfig', weight = 1 }, { name = 'LICENSE', weight = 1 }, { name = 'LICENSE.txt', weight = 1 }, { name = 'COPYING', weight = 1 }, { name = 'README', weight = 1 }, { name = 'README.md', weight = 1 }, } markers = vim.tbl_deep_extend('force', markers, custom_markers) local buffer_name = vim.api.nvim_buf_get_name(0) local directory_name = vim.fn.fnamemodify(buffer_name, ':p:h') return determine_root(directory_name, markers, root)endlocal java_markers = { { name = '.idea', weight = 2 }, { name = '.classpath', weight = 2 }, { name = '.settings', weight = 2 }, { name = '.project', weight = 2 }, { name = 'target', weight = 2 }, { name = 'pom.xml', weight = 2 }, { name = 'mvnw', weight = 3 }, { name = '.mvn', weight = 3 }, { name = 'mvnw.cmd', weight = 3 }, { name = 'build.gradle', weight = 2 }, { name = 'gradle.properties', weight = 3 }, { name = 'settings.gradle', weight = 3 }, { name = 'gradlew', weight = 3 }, { name = 'gradlew.bat', weight = 3 },}local function determine_java_project_root(user_root) return determine_project_root(java_markers, user_root)endlocal function is_java_project_root(directory, user_root) -- avoid determine_project_root to __not__ check non-java markers return determine_root(directory, java_markers, user_root) ~= nilendreturn { is_java_project_root = is_java_project_root, determine_root = determine_root, determine_project_root = determine_project_root, determine_java_project_root = determine_java_project_root,}new file mode 100644+7 / −0 text lines
new file mode 100644+60 / −0 text lines
--- credit goes to https://github.com/f-person/lua-timeagolocal _ = {}local words = { justnow = 'just now', minute = {singular = 'a minute ago', plural = 'minutes ago'}, hour = {singular = 'an hour ago', plural = 'hours ago'}, day = {singular = 'a day ago', plural = 'days ago'}, week = {singular = 'a week ago', plural = 'weeks ago'}, month = {singular = 'a month ago', plural = 'months ago'}, year = {singular = 'a year ago', plural = 'years ago'}}---@param num number---@return numberlocal function round(num) return math.floor(num + 0.5) end---@param time osdate---@return stringfunction _.format(time) local now = os.time() local diff_seconds = os.difftime(now, time) if diff_seconds < 45 then return words.justnow end local diff_minutes = diff_seconds / 60 if diff_minutes < 1.5 then return words.minute.singular end if diff_minutes < 59.5 then return round(diff_minutes) .. ' ' .. words.minute.plural end local diff_hours = diff_minutes / 60 if diff_hours < 1.5 then return words.hour.singular end if diff_hours < 23.5 then return round(diff_hours) .. ' ' .. words.hour.plural end local diff_days = diff_hours / 24 if diff_days < 1.5 then return words.day.singular end if diff_days < 7.5 then return round(diff_days) .. ' ' .. words.day.plural end local diff_weeks = diff_days / 7 if diff_weeks < 1.5 then return words.week.singular end if diff_weeks < 4.5 then return round(diff_weeks) .. ' ' .. words.week.plural end local diff_months = diff_days / 30 if diff_months < 1.5 then return words.month.singular end if diff_months < 11.5 then return round(diff_months) .. ' ' .. words.month.plural end local diff_years = diff_days / 365.25 if diff_years < 1.5 then return words.year.singular end return round(diff_years) .. ' ' .. words.year.pluralendreturn _new file mode 100644+27 / −0 text lines
--- attempts to import modules with the given names.---@param module_names table name or list of names, or a function that returns those---@return function function that takes a function that takes in the modules listed by `module_names`return function(module_names) return function(block, error_handler) local loaded_modules = {} local failed_modules = {} if type(module_names) == "string" then module_names = { module_names } end for _, name in pairs(module_names) do local status_ok, module = pcall(require, name) if status_ok then table.insert(loaded_modules, module) else table.insert(failed_modules, module) end end for _, module in pairs(failed_modules) do vim.notify('A wanted module failed to load: ' .. module, 'error') end if #failed_modules > 0 then return error_handler and error_handler(unpack(failed_modules)) end return block and block(unpack(loaded_modules)) endenddeleted file mode 100644+0 / −93 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 562.496460 msecTotal Max: 1585.781000 msecTotal Min: 519.953000 msec AVERAGE MAX MIN----------------------------------355.504310 393.805000 349.452000: C:\Users\okr\AppData\Local\nvim\init.lua 47.755390 54.639000 46.358000: loading packages 30.665520 1026.239000 0.025000: clearing screen 30.275560 34.237000 29.354000: loading after plugins 23.631680 26.871000 22.959000: loading rtp plugins 18.165780 20.652000 17.514000: sourcing vimrc file(s) 14.961400 18.276000 14.618000: locale set 3.883240 26.743000 3.024000: X:\nvim-win64\share\nvim\runtime\syntax\syntax.vim 3.756000 4.246000 3.509000: reading ShaDa 2.691210 4.113000 1.621000: opening buffers 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 2.251260 4.354000 1.395000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\symbols-outline.nvim\plugin\symbols-outline.vim 2.119760 3.331000 2.027000: init lua interpreter 1.726640 2.923000 1.207000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-treesitter\plugin\nvim-treesitter.lua 1.632390 2.462000 1.513000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-gomove\plugin\gomove.lua 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 1.177240 1.903000 0.707000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-buffer\after\plugin\cmp_buffer.lua 1.020150 1.724000 0.574000: BufEnter autocommands 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 0.833230 1.424000 0.659000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-cmp\plugin\cmp.lua 0.820050 2.227000 0.482000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\playground\plugin\nvim-treesitter-playground.lua 0.809010 1.121000 0.751000: X:\nvim-win64\share\nvim\runtime\plugin\rplugin.vim 0.764190 0.920000 0.738000: inits 1 0.752970 3.076000 0.653000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\indent-blankline.nvim\plugin\indent_blankline.vim 0.743320 1.212000 0.707000: init highlight 0.729510 1.498000 0.524000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\Comment.nvim\after\plugin\Comment.lua 0.703870 1.462000 0.363000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\telescope.nvim\plugin\telescope.lua 0.594040 0.744000 0.567000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\LuaSnip\plugin\luasnip.vim 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 0.504390 1.412000 0.300000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp_luasnip\after\plugin\cmp_luasnip.lua 0.496140 1.048000 0.296000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\cmp-path\after\plugin\cmp_path.lua 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 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 0.349820 0.496000 0.334000: X:\nvim-win64\share\nvim\runtime\plugin\matchparen.vim 0.329620 1.157000 0.272000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-lspconfig\plugin\lspconfig.vim 0.324080 0.486000 0.258000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\leap.nvim\plugin\init.lua 0.314960 0.517000 0.297000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\registers.nvim\plugin\registers.vim 0.268890 0.316000 0.253000: parsing arguments 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 0.256090 0.481000 0.219000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-dap\plugin\dap.lua 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 0.225040 0.344000 0.201000: X:\nvim-win64\share\nvim\runtime\syntax\synload.vim 0.221280 0.321000 0.203000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\trouble.nvim\plugin\trouble.vim 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 0.202700 0.318000 0.181000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-hlslens\plugin\hlslens.vim 0.200650 0.336000 0.183000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\plenary.nvim\plugin\plenary.vim 0.193350 0.263000 0.175000: X:\nvim-win64\share\nvim\runtime\ftplugin.vim 0.191050 0.282000 0.158000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\dressing.nvim\plugin\dressing.lua 0.190790 0.304000 0.154000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\hydra.nvim\plugin\hydra.lua 0.188280 0.272000 0.166000: X:\nvim-win64\share\nvim\runtime\plugin\shada.vim 0.181660 0.247000 0.167000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-colorizer.lua\plugin\colorizer.vim 0.171450 0.265000 0.156000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\todo-comments.nvim\plugin\todo.vim 0.162920 0.242000 0.132000: X:\nvim-win64\share\nvim\runtime\filetype.lua 0.162760 0.209000 0.151000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\FixCursorHold.nvim\plugin\fix_cursorhold_nvim.vim 0.159750 0.227000 0.149000: X:\nvim-win64\share\nvim\runtime\plugin\man.vim 0.153340 0.224000 0.139000: early init 0.149940 0.181000 0.134000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\editorconfig.nvim\plugin\editorconfig.vim 0.138090 0.216000 0.128000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\neo-tree.nvim\plugin\neo-tree.vim 0.134970 0.183000 0.124000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\nvim-jdtls\plugin\nvim_jdtls.vim 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 0.125430 0.174000 0.112000: expanding arguments 0.121850 0.171000 0.112000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\lsp-zero.nvim\plugin\lsp-zero.vim 0.115350 0.174000 0.103000: X:\nvim-win64\share\nvim\runtime\indent.vim 0.114840 0.145000 0.097000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\filetype.nvim\filetype.vim 0.110730 0.175000 0.100000: C:\Users\okr\AppData\Local\nvim-data\site\pack\paqs\start\rust-tools.nvim\plugin\rust-tools.vim 0.110520 0.152000 0.098000: event init 0.099530 0.133000 0.090000: X:\nvim-win64\share\nvim\runtime\plugin\tutor.vim 0.096090 0.124000 0.083000: X:\nvim-win64\share\nvim\runtime\plugin\gzip.vim 0.088080 0.114000 0.080000: X:\nvim-win64\share\nvim\runtime\plugin\matchit.vim 0.085650 0.121000 0.075000: X:\nvim-win64\share\nvim\runtime\plugin\netrwPlugin.vim 0.081660 0.097000 0.075000: X:\nvim-win64\share\nvim\runtime\plugin\health.vim 0.080480 0.107000 0.073000: X:\nvim-win64\share\nvim\runtime\plugin\zipPlugin.vim 0.075930 0.118000 0.063000: inits 2 0.075870 0.098000 0.069000: X:\nvim-win64\share\nvim\runtime\plugin\tarPlugin.vim 0.075490 0.089000 0.070000: init first window 0.073230 0.111000 0.066000: X:\nvim-win64\share\nvim\runtime\plugin\tohtml.vim 0.073170 0.090000 0.063000: X:\nvim-win64\share\nvim\runtime\filetype.vim 0.069790 0.091000 0.064000: X:\nvim-win64\share\nvim\runtime\plugin\spellfile.vim 0.053930 0.084000 0.052000: inits 3 0.046200 0.075000 0.042000: init default mappings 0.040760 0.057000 0.033000: window checked 0.029110 0.044000 0.024000: init default autocommands 0.024520 0.038000 0.019000: --- NVIM STARTING --- 0.009840 0.015000 0.007000: editing files in windowsdeleted file mode 100644+0 / −94 text lines
Extra options: []Measured: 100 timesTotal Average: 331.172950 msecTotal Max: 352.149000 msecTotal Min: 306.252000 msec AVERAGE MAX MIN---------------------------------307.521190 330.974000 284.884000: /home/oli/.config/nvim/init.lua 3.422020 3.642000 3.276000: loading packages 2.369060 2.458000 2.306000: reading ShaDa 2.077570 2.180000 2.017000: loading after plugins 2.012750 2.855000 1.453000: sourcing vimrc file(s) 1.737830 1.806000 1.679000: loading rtp plugins 1.126530 3.355000 0.622000: BufEnter autocommands 1.070670 3.343000 0.555000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.004860 2.905000 0.531000: opening buffers 0.856200 1.747000 0.468000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.625880 1.865000 0.317000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.554460 0.777000 0.359000: init lua interpreter 0.482870 2.511000 0.221000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.478990 0.907000 0.285000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.465800 0.697000 0.309000: init highlight 0.389180 0.719000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.349130 0.454000 0.331000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.328630 2.387000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.296410 0.474000 0.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.274270 0.382000 0.177000: inits 1 0.263810 0.517000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.229890 0.545000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.202600 0.389000 0.115000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.201010 0.367000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.193030 0.258000 0.124000: locale set 0.187260 0.372000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.168260 0.358000 0.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.153220 0.238000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.150440 0.426000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.140270 0.461000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 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 0.114560 0.285000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.114290 2.125000 0.054000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.099120 0.112000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.094840 0.102000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.092760 0.104000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.067260 0.159000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.062900 0.149000 0.056000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.062610 0.075000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.057590 0.134000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.051430 0.128000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.051260 0.150000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.046760 0.060000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.043600 0.140000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.042590 0.071000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.042170 0.050000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.041530 0.050000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.038980 0.056000 0.027000: expanding arguments 0.037830 0.050000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.037140 0.105000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.036810 0.047000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.035760 0.048000 0.026000: inits 2 0.032930 0.053000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.031470 0.059000 0.021000: init default autocommands 0.026690 0.036000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.026600 0.036000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.025910 0.034000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.025600 0.047000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim 0.024870 0.034000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.024690 0.047000 0.017000: init default mappings 0.023230 0.035000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.021890 0.028000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.018360 0.023000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.018290 0.022000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim 0.017450 0.020000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.017320 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.015020 0.024000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.013280 0.014000 0.012000: clearing screen 0.011600 0.027000 0.007000: window checked 0.011560 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.011090 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.011090 0.016000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.010850 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.010170 0.023000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010040 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.010020 0.013000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.008590 0.010000 0.008000: inits 3 0.007350 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007160 0.020000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.007110 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.006290 0.012000 0.003000: --- NVIM STARTING --- 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.006030 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.003740 0.005000 0.002000: parsing arguments 0.002520 0.004000 0.002000: editing files in windowsdeleted file mode 100644+0 / −94 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 330.615290 msecTotal Max: 355.357000 msecTotal Min: 301.008000 msec AVERAGE MAX MIN---------------------------------307.381920 334.373000 279.389000: /home/oli/.config/nvim/init.lua 3.440430 4.784000 3.275000: loading packages 2.353600 2.481000 2.296000: reading ShaDa 2.075510 2.170000 1.997000: loading after plugins 2.074950 2.849000 1.466000: sourcing vimrc file(s) 1.746160 1.990000 1.676000: loading rtp plugins 0.990800 2.497000 0.589000: BufEnter autocommands 0.965770 2.395000 0.596000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 0.962600 3.130000 0.571000: opening buffers 0.806170 1.760000 0.514000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.602480 1.832000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.574290 0.770000 0.356000: init lua interpreter 0.474910 0.687000 0.308000: init highlight 0.457310 0.951000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.427760 1.232000 0.228000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.372910 0.744000 0.214000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.349060 0.476000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.315580 2.557000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.288960 0.469000 0.225000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.283110 0.378000 0.174000: inits 1 0.248550 0.509000 0.114000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.228050 0.620000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.198670 0.419000 0.117000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.195630 0.288000 0.119000: locale set 0.193340 0.306000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.178010 0.463000 0.098000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.162760 0.304000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.155470 2.230000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.152080 0.197000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.147940 0.466000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 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 0.108000 0.269000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.098540 0.125000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.096280 0.186000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.093590 0.121000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.091060 0.205000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.064190 0.173000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.062610 0.082000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.061880 0.085000 0.057000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.054680 0.127000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.052210 0.209000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.049170 0.110000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.048380 0.066000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.043490 0.086000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.042190 0.053000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.041140 0.052000 0.038000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.040890 0.075000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.040050 0.055000 0.026000: expanding arguments 0.038620 0.049000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.038000 0.051000 0.026000: inits 2 0.036540 0.049000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.034590 0.101000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.032030 0.045000 0.020000: parsing arguments 0.030900 0.060000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.030260 0.044000 0.019000: init default autocommands 0.027450 0.035000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.026320 0.048000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.026220 0.042000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.025520 0.036000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim 0.024770 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.024310 0.034000 0.016000: init default mappings 0.023160 0.027000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.022360 0.034000 0.020000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.018510 0.029000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim 0.018310 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.016870 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.016690 0.028000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.014930 0.016000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.013720 0.026000 0.012000: clearing screen 0.011690 0.020000 0.007000: window checked 0.011570 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.011180 0.016000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.011130 0.014000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.011100 0.015000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.010190 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010150 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.009940 0.015000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.008680 0.012000 0.008000: inits 3 0.007550 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007100 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.007040 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.006270 0.012000 0.003000: --- NVIM STARTING --- 0.006250 0.019000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.006200 0.015000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.002470 0.003000 0.002000: editing files in windowsdeleted file mode 100644+0 / −94 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 330.425160 msecTotal Max: 353.171000 msecTotal Min: 306.636000 msec AVERAGE MAX MIN---------------------------------307.146770 332.320000 285.215000: /home/oli/.config/nvim/init.lua 3.417290 3.626000 3.284000: loading packages 2.347780 2.534000 2.299000: reading ShaDa 2.076240 2.368000 1.996000: loading after plugins 2.030220 2.687000 1.435000: sourcing vimrc file(s) 1.742430 1.887000 1.693000: loading rtp plugins 1.027430 3.641000 0.572000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.022760 2.227000 0.594000: BufEnter autocommands 0.970310 3.310000 0.530000: opening buffers 0.797970 1.728000 0.526000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.632780 2.606000 0.320000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.560600 0.775000 0.362000: init lua interpreter 0.466050 0.680000 0.308000: init highlight 0.440650 1.171000 0.227000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.436120 0.912000 0.268000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.373980 0.766000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.347830 0.475000 0.332000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.302180 0.884000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.287140 0.487000 0.224000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.279180 0.367000 0.176000: inits 1 0.251830 0.573000 0.137000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.251160 2.157000 0.126000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.200730 2.431000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.198670 0.267000 0.119000: locale set 0.197260 0.352000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.194680 0.410000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.161590 0.287000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.160300 2.336000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.150740 0.216000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.149110 0.397000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 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 0.107320 0.252000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.098290 0.114000 0.095000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.093800 0.115000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.093220 0.106000 0.089000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.088560 0.278000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.063790 0.174000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.062230 0.074000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.061600 0.083000 0.058000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.053980 0.135000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.051870 0.141000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.048220 0.077000 0.035000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.047910 0.117000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.042600 0.093000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.042500 0.059000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.042050 0.048000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.040890 0.047000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.039820 0.069000 0.027000: expanding arguments 0.038420 0.062000 0.026000: inits 2 0.038000 0.047000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.037020 0.053000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.035180 0.116000 0.019000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.031620 0.057000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.031240 0.045000 0.020000: parsing arguments 0.030480 0.045000 0.020000: init default autocommands 0.027760 0.037000 0.026000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.026370 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.026020 0.035000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.025180 0.037000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim 0.024910 0.035000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.024180 0.042000 0.016000: init default mappings 0.023240 0.032000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.022390 0.031000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.018430 0.025000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim 0.018260 0.024000 0.017000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.016700 0.024000 0.015000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.016490 0.018000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.014980 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.013480 0.016000 0.012000: clearing screen 0.011540 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.011510 0.028000 0.007000: window checked 0.011180 0.023000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.011160 0.015000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.011140 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.010120 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010100 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.009850 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.008620 0.011000 0.008000: inits 3 0.007590 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007020 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.006950 0.008000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.006710 0.026000 0.003000: --- NVIM STARTING --- 0.006090 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.006060 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.002450 0.004000 0.002000: editing files in windowsdeleted file mode 100644+0 / −94 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 376.647480 msecTotal Max: 525.463000 msecTotal Min: 326.733000 msec AVERAGE MAX MIN---------------------------------351.036030 495.908000 302.524000: /home/oli/.config/nvim/init.lua 3.742540 5.409000 3.379000: loading packages 2.315700 3.534000 2.103000: loading after plugins 2.157970 3.112000 1.969000: reading ShaDa 1.926810 2.824000 1.760000: loading rtp plugins 1.732090 2.865000 1.497000: sourcing vimrc file(s) 1.463530 5.282000 0.632000: BufEnter autocommands 1.242990 4.378000 0.628000: opening buffers 1.236160 3.062000 0.580000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 0.976180 2.051000 0.492000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.798470 4.448000 0.336000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.556210 2.669000 0.281000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.536990 1.617000 0.253000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.469820 1.465000 0.245000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.452370 0.770000 0.365000: init lua interpreter 0.410070 1.413000 0.167000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.386820 0.582000 0.346000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.370270 0.665000 0.313000: init highlight 0.336400 0.943000 0.233000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.313920 0.957000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.288870 0.811000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.261680 3.093000 0.162000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.246690 0.701000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.237170 0.375000 0.184000: inits 1 0.217510 0.467000 0.103000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.212330 2.398000 0.075000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.186570 0.619000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.169360 0.275000 0.143000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.164370 0.266000 0.115000: locale set 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 0.148160 0.376000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.131150 0.386000 0.059000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.106800 0.237000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.105320 0.154000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.103450 0.158000 0.094000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.101260 0.176000 0.091000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.083850 0.352000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.070640 0.114000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.070380 0.107000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.070220 0.243000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.065360 0.244000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.057890 0.191000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.054230 0.172000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.050080 0.115000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.049010 0.073000 0.043000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.045760 0.077000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.044620 0.219000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.043640 0.071000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.041980 0.060000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.041860 0.085000 0.035000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.040470 0.077000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.037150 0.060000 0.026000: expanding arguments 0.033490 0.068000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.033420 0.063000 0.026000: inits 2 0.031720 0.074000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.031040 0.063000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.028660 0.049000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.027780 0.045000 0.019000: init default autocommands 0.027310 0.055000 0.021000: parsing arguments 0.025100 0.114000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.024740 0.054000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.023080 0.040000 0.019000: /home/oli/.local/share/nvim/runtime/indent.vim 0.021220 0.036000 0.017000: init default mappings 0.021000 0.033000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-regexplainer/plugin/nvim-regexplainer.vim 0.020850 0.043000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.019810 0.037000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.018630 0.029000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.015910 0.023000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.015380 0.031000 0.012000: clearing screen 0.012960 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.012860 0.021000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.012610 0.026000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.011340 0.018000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.011110 0.018000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010840 0.030000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.010500 0.025000 0.008000: inits 3 0.010310 0.017000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.008960 0.016000 0.007000: window checked 0.008130 0.014000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007550 0.016000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.007370 0.015000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.007040 0.013000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.006620 0.011000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.005460 0.011000 0.003000: --- NVIM STARTING --- 0.003830 0.023000 0.002000: editing files in windowsdeleted file mode 100644+0 / −93 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 341.004210 msecTotal Max: 403.406000 msecTotal Min: 317.044000 msec AVERAGE MAX MIN---------------------------------318.483740 380.835000 296.484000: /home/oli/.config/nvim/init.lua 3.480510 3.886000 3.319000: loading packages 2.172440 2.514000 2.091000: loading after plugins 1.936800 2.033000 1.880000: reading ShaDa 1.909540 3.153000 1.522000: sourcing vimrc file(s) 1.825230 2.390000 1.765000: loading rtp plugins 1.051810 3.083000 0.663000: BufEnter autocommands 0.960430 2.951000 0.500000: opening buffers 0.947800 3.454000 0.587000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 0.767920 1.813000 0.535000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.562110 1.488000 0.330000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.502430 0.837000 0.364000: init lua interpreter 0.450000 2.434000 0.250000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.418120 0.671000 0.313000: init highlight 0.416710 0.879000 0.269000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.364690 0.473000 0.347000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.350220 0.775000 0.226000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.301220 2.062000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.300470 2.214000 0.230000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.257260 0.397000 0.184000: inits 1 0.243210 0.514000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.232300 2.013000 0.127000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.208530 1.590000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.193560 0.444000 0.119000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.189110 0.392000 0.160000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.166210 0.258000 0.114000: locale set 0.163090 1.994000 0.084000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.151430 0.215000 0.144000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.131820 0.379000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.112240 0.278000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.109450 0.287000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 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 0.100050 0.142000 0.096000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.096750 0.131000 0.092000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.094660 0.118000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.085260 0.215000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.065160 0.082000 0.059000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.065080 0.089000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.058500 0.141000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.052450 0.182000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.047720 0.113000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.046660 0.061000 0.044000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.044930 0.061000 0.036000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.043920 0.133000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.042850 0.069000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.041400 0.052000 0.039000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.040950 0.084000 0.032000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.038860 0.052000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.038430 0.067000 0.026000: expanding arguments 0.036800 0.060000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.034500 0.054000 0.026000: inits 2 0.031660 0.096000 0.020000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.029740 0.100000 0.021000: parsing arguments 0.029430 0.056000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.028650 0.051000 0.020000: init default autocommands 0.027340 0.046000 0.025000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.027150 0.044000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.026340 0.031000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.025950 0.037000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.023300 0.057000 0.018000: init default mappings 0.022770 0.030000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.022380 0.032000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.022370 0.041000 0.018000: /home/oli/.local/share/nvim/runtime/indent.vim 0.018890 0.032000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.017380 0.024000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.017090 0.027000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.014820 0.019000 0.014000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.013950 0.021000 0.012000: clearing screen 0.012280 0.020000 0.012000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.011680 0.018000 0.011000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.011290 0.017000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.010940 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.010220 0.016000 0.010000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010040 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.009920 0.010000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.009680 0.018000 0.007000: window checked 0.009150 0.018000 0.008000: inits 3 0.007530 0.013000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007040 0.009000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.007010 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.006340 0.010000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.006190 0.009000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.005530 0.012000 0.003000: --- NVIM STARTING --- 0.002910 0.004000 0.002000: editing files in windowsdeleted file mode 100644+0 / −93 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 97.488750 msecTotal Max: 111.248000 msecTotal Min: 94.869000 msec AVERAGE MAX MIN------------------------------75.355390 86.656000 72.668000: /home/oli/.config/nvim/init.lua 3.416710 3.574000 3.249000: loading packages 2.133420 2.279000 2.055000: loading after plugins 2.091000 2.219000 1.998000: reading ShaDa 1.788310 1.904000 1.737000: loading rtp plugins 1.732340 2.847000 1.459000: sourcing vimrc file(s) 1.199860 1.783000 0.539000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.004380 1.341000 0.492000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.743370 1.097000 0.532000: opening buffers 0.676750 0.764000 0.583000: BufEnter autocommands 0.564690 0.856000 0.296000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.526980 1.152000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.489000 0.852000 0.187000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.484390 0.811000 0.347000: init lua interpreter 0.447400 0.888000 0.193000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.404220 0.678000 0.307000: init highlight 0.348490 0.411000 0.337000: /home/oli/.local/share/nvim/runtime/syntax/syntax.vim 0.327990 0.417000 0.247000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.266720 0.482000 0.131000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.245100 0.441000 0.174000: inits 1 0.230410 0.414000 0.117000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.222010 0.447000 0.154000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.197580 0.408000 0.114000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.172600 0.565000 0.135000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.165840 0.270000 0.116000: locale set 0.154880 0.290000 0.108000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.150640 0.199000 0.139000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.145920 0.310000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.107540 0.216000 0.052000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.104520 0.287000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.095370 0.162000 0.091000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.094000 0.118000 0.090000: /home/oli/.local/share/nvim/runtime/plugin/rplugin.vim 0.088430 0.316000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.082530 0.269000 0.065000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.075960 0.224000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.072460 0.376000 0.034000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 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 0.062860 0.068000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.061500 0.070000 0.058000: /home/oli/.local/share/nvim/runtime/syntax/synload.vim 0.046000 0.102000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.045770 0.264000 0.018000: /home/oli/.local/share/nvim/runtime/filetype.lua 0.043050 0.089000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.040870 0.049000 0.040000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.040710 0.059000 0.033000: /home/oli/.local/share/nvim/runtime/ftplugin.vim 0.040020 0.070000 0.038000: /home/oli/.local/share/nvim/runtime/plugin/shada.vim 0.037310 0.057000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.036560 0.162000 0.027000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.034650 0.040000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.032850 0.059000 0.029000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.032690 0.053000 0.024000: inits 2 0.032500 0.055000 0.023000: expanding arguments 0.027800 0.088000 0.019000: parsing arguments 0.027210 0.060000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.026570 0.044000 0.025000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.025990 0.034000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.025080 0.033000 0.023000: /home/oli/.local/share/nvim/runtime/plugin/man.vim 0.025040 0.060000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.023710 0.042000 0.019000: /home/oli/.local/share/nvim/runtime/indent.vim 0.023010 0.038000 0.016000: init default autocommands 0.022880 0.035000 0.020000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.022250 0.043000 0.021000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.020220 0.043000 0.016000: init default mappings 0.018500 0.021000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.017240 0.020000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.016900 0.025000 0.016000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.013620 0.018000 0.013000: clearing screen 0.012240 0.016000 0.012000: /home/oli/Workspace/lsp-zero.nvim/plugin/lsp-zero.vim 0.011470 0.026000 0.010000: /home/oli/.local/share/nvim/runtime/filetype.vim 0.011100 0.013000 0.011000: /home/oli/.local/share/nvim/runtime/plugin/netrwPlugin.vim 0.011050 0.015000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/tutor.vim 0.010840 0.013000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/gzip.vim 0.010130 0.013000 0.009000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.010020 0.011000 0.010000: /home/oli/.local/share/nvim/runtime/plugin/zipPlugin.vim 0.010010 0.011000 0.009000: /home/oli/.local/share/nvim/runtime/plugin/tarPlugin.vim 0.009410 0.020000 0.007000: window checked 0.008830 0.029000 0.008000: inits 3 0.008060 0.011000 0.008000: /home/oli/.local/share/nvim/runtime/plugin/matchparen.vim 0.007330 0.010000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/matchit.vim 0.007110 0.025000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/tohtml.vim 0.007020 0.008000 0.007000: /home/oli/.local/share/nvim/runtime/plugin/spellfile.vim 0.006140 0.009000 0.006000: /home/oli/.local/share/nvim/runtime/plugin/health.vim 0.006120 0.008000 0.006000: /home/oli/.local/share/nvim/rplugin.vim 0.005380 0.012000 0.003000: --- NVIM STARTING --- 0.003260 0.070000 0.002000: editing files in windowsdeleted file mode 100644+0 / −114 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 542.197000 msecTotal Max: 618.351000 msecTotal Min: 520.947000 msec AVERAGE MAX MIN---------------------------------495.977580 573.231000 474.888000: /home/oli/.config/nvim/init.lua 10.897490 13.200000 10.446000: loading packages 5.335870 6.086000 5.105000: loading after plugins 4.422350 5.017000 4.160000: loading rtp plugins 3.746160 4.151000 3.536000: sourcing vimrc file(s) 2.025000 2.902000 1.552000: opening buffers 1.445410 1.846000 1.347000: reading ShaDa 1.326570 1.699000 1.069000: BufEnter autocommands 1.247260 1.890000 0.976000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.215630 1.602000 0.930000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.857930 1.163000 0.810000: /usr/share/nvim/runtime/syntax/syntax.vim 0.681860 1.094000 0.562000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.654870 1.056000 0.476000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.654390 1.086000 0.604000: /usr/share/vim/vimfiles/plugin/skim.vim 0.597970 0.778000 0.565000: init lua interpreter 0.546160 0.969000 0.344000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.541700 0.804000 0.430000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim 0.518110 0.762000 0.394000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.461910 0.830000 0.371000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.418630 0.641000 0.175000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.375510 0.664000 0.261000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim 0.357520 0.609000 0.241000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.354420 0.676000 0.310000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.335850 0.556000 0.271000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.334820 0.570000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.333540 0.484000 0.307000: inits 1 0.329590 0.522000 0.304000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim 0.314200 0.523000 0.288000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim 0.307430 0.556000 0.219000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.305590 0.443000 0.224000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.285390 0.486000 0.268000: init highlight 0.277090 0.506000 0.249000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.265430 0.567000 0.112000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim 0.202940 0.337000 0.184000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.197320 0.361000 0.129000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.191340 0.335000 0.174000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.174290 0.259000 0.138000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.172330 0.250000 0.158000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.153980 0.312000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.149720 0.277000 0.124000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.144150 0.256000 0.130000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.140190 0.331000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 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 0.126730 0.183000 0.115000: /usr/share/nvim/runtime/syntax/synload.vim 0.123530 0.188000 0.110000: event init 0.111590 0.244000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.100060 0.154000 0.087000: early init 0.094560 0.323000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.088480 0.165000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.088330 0.175000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.085760 0.156000 0.065000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.085190 0.312000 0.076000: /usr/share/nvim/runtime/plugin/shada.vim 0.083940 0.150000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.081230 0.104000 0.068000: /usr/share/nvim/runtime/ftplugin.vim 0.077130 0.158000 0.064000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.075550 0.255000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.075480 0.130000 0.066000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim 0.071010 0.141000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.067920 0.108000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.063900 0.109000 0.054000: /usr/share/nvim/runtime/plugin/man.vim 0.058050 0.096000 0.049000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim 0.057760 0.093000 0.051000: locale set 0.056650 0.114000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.055860 0.086000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.054050 0.095000 0.048000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim 0.052150 0.217000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.050580 0.077000 0.045000: /etc/xdg/nvim/sysinit.vim 0.050470 0.084000 0.043000: inits 2 0.049860 0.079000 0.043000: expanding arguments 0.049000 0.092000 0.043000: parsing arguments 0.048360 0.078000 0.036000: init first window 0.047940 0.094000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.045540 0.101000 0.036000: /usr/share/nvim/runtime/filetype.lua 0.044590 0.117000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.044000 0.112000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.042960 0.128000 0.038000: /usr/share/nvim/runtime/indent.vim 0.040340 0.080000 0.036000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.040210 0.101000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.034460 0.089000 0.030000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.031380 0.054000 0.027000: clearing screen 0.027320 0.058000 0.025000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim 0.025810 0.069000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.025280 0.070000 0.019000: /usr/share/nvim/runtime/plugin/gzip.vim 0.025220 0.041000 0.023000: inits 3 0.024900 0.040000 0.023000: /usr/share/nvim/runtime/plugin/tutor.vim 0.024650 0.062000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.022730 0.049000 0.020000: /usr/share/nvim/runtime/filetype.vim 0.022720 0.038000 0.021000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.022030 0.049000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim 0.021690 0.041000 0.020000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.021060 0.033000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim 0.020510 0.029000 0.019000: init default mappings 0.020110 0.041000 0.018000: init default autocommands 0.019670 0.031000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.018500 0.045000 0.016000: /usr/share/nvim/runtime/plugin/matchit.vim 0.018140 0.031000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim 0.017140 0.025000 0.015000: window checked 0.016580 0.029000 0.015000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.016530 0.027000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim 0.016010 0.027000 0.014000: /usr/share/nvim/runtime/plugin/health.vim 0.015850 0.025000 0.014000: /usr/share/nvim/archlinux.vim 0.015580 0.028000 0.014000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.013420 0.023000 0.012000: /home/oli/.local/share/nvim/rplugin.vim 0.010580 0.023000 0.009000: --- NVIM STARTING --- 0.006270 0.011000 0.005000: editing files in windowsdeleted file mode 100644+0 / −114 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 210.622070 msecTotal Max: 226.287000 msecTotal Min: 204.690000 msec AVERAGE MAX MIN---------------------------------155.097290 171.722000 149.592000: /home/oli/.config/nvim/init.lua 13.237180 14.748000 12.898000: loading packages 6.524820 7.083000 6.365000: loading after plugins 5.404500 6.005000 5.236000: loading rtp plugins 4.595380 5.221000 4.333000: sourcing vimrc file(s) 2.167390 3.107000 1.732000: opening buffers 1.801000 2.443000 1.732000: reading ShaDa 1.678660 2.613000 1.232000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.496880 1.916000 1.323000: BufEnter autocommands 1.353290 1.970000 0.867000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 1.075160 1.646000 1.020000: /usr/share/nvim/runtime/syntax/syntax.vim 0.816020 1.088000 0.694000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.794500 0.994000 0.761000: /usr/share/vim/vimfiles/plugin/skim.vim 0.739890 1.431000 0.412000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.732120 0.958000 0.665000: init lua interpreter 0.708510 1.469000 0.606000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim 0.638470 0.899000 0.509000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.531910 0.795000 0.346000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.530270 0.726000 0.466000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.505340 1.176000 0.317000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim 0.482540 1.368000 0.250000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.472900 1.113000 0.212000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.435290 0.533000 0.385000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.410870 0.613000 0.358000: inits 1 0.406800 0.560000 0.383000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim 0.382170 0.472000 0.360000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim 0.377160 0.533000 0.216000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.361300 0.560000 0.326000: init highlight 0.350550 0.549000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.322740 0.549000 0.303000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.319120 1.065000 0.160000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim 0.290510 0.449000 0.197000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.288620 0.537000 0.168000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.268990 0.401000 0.150000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.241910 0.308000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.231990 0.318000 0.223000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.217210 0.334000 0.208000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.203150 0.388000 0.128000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.176890 0.249000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.173130 0.365000 0.154000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.170270 0.414000 0.152000: /usr/share/nvim/runtime/syntax/synload.vim 0.170270 0.316000 0.128000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.162430 0.231000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 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 0.152600 0.330000 0.124000: event init 0.121500 0.273000 0.096000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.119320 0.301000 0.100000: early init 0.103190 0.174000 0.097000: /usr/share/nvim/runtime/plugin/shada.vim 0.103010 0.274000 0.093000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.100130 0.194000 0.080000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.099280 0.210000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.095110 0.168000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.093090 0.154000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.090590 0.121000 0.086000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.090510 0.160000 0.082000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim 0.090310 0.148000 0.079000: /usr/share/nvim/runtime/ftplugin.vim 0.088410 0.161000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.088380 0.189000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.075630 0.168000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.073520 0.105000 0.067000: /usr/share/nvim/runtime/plugin/man.vim 0.068050 0.150000 0.051000: /usr/share/nvim/runtime/filetype.lua 0.067310 0.104000 0.064000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.066710 0.143000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.065200 0.098000 0.055000: locale set 0.064950 0.108000 0.059000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim 0.064170 0.130000 0.060000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim 0.062200 0.094000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.060780 0.198000 0.051000: parsing arguments 0.060100 0.081000 0.056000: /etc/xdg/nvim/sysinit.vim 0.059230 0.144000 0.050000: inits 2 0.057910 0.135000 0.050000: expanding arguments 0.057320 0.093000 0.042000: init first window 0.057150 0.077000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.056850 0.230000 0.048000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.052680 0.089000 0.048000: /usr/share/nvim/runtime/indent.vim 0.051600 0.262000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.051460 0.081000 0.049000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.050360 0.223000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.039890 0.065000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.035260 0.071000 0.032000: clearing screen 0.032630 0.036000 0.031000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim 0.030880 0.042000 0.029000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.030810 0.045000 0.029000: /usr/share/nvim/runtime/plugin/tutor.vim 0.029820 0.063000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.029340 0.041000 0.028000: inits 3 0.028160 0.053000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.028130 0.077000 0.025000: /usr/share/nvim/runtime/plugin/gzip.vim 0.027800 0.057000 0.025000: /usr/share/nvim/runtime/filetype.vim 0.026760 0.051000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.025900 0.029000 0.024000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim 0.025520 0.122000 0.023000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim 0.024800 0.043000 0.022000: init default mappings 0.024210 0.056000 0.021000: init default autocommands 0.023450 0.033000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.022100 0.032000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim 0.022080 0.034000 0.021000: /usr/share/nvim/runtime/plugin/matchit.vim 0.021730 0.040000 0.017000: window checked 0.020980 0.084000 0.018000: /usr/share/nvim/runtime/plugin/health.vim 0.020920 0.036000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim 0.020250 0.034000 0.019000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.018820 0.022000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.018420 0.024000 0.017000: /usr/share/nvim/archlinux.vim 0.016100 0.017000 0.016000: /home/oli/.local/share/nvim/rplugin.vim 0.012540 0.024000 0.011000: --- NVIM STARTING --- 0.006460 0.010000 0.006000: editing files in windowsdeleted file mode 100644+0 / −114 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 195.860280 msecTotal Max: 205.074000 msecTotal Min: 191.469000 msec AVERAGE MAX MIN---------------------------------140.868510 148.139000 137.555000: /home/oli/.config/nvim/init.lua 13.197390 14.069000 12.876000: loading packages 6.497840 7.057000 6.335000: loading after plugins 5.356470 6.496000 5.198000: loading rtp plugins 4.566870 5.308000 4.306000: sourcing vimrc file(s) 2.449790 3.967000 1.881000: opening buffers 1.770840 2.121000 1.712000: reading ShaDa 1.545190 1.871000 1.326000: BufEnter autocommands 1.449700 1.829000 1.223000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.439020 1.866000 1.108000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 1.058380 1.725000 1.012000: /usr/share/nvim/runtime/syntax/syntax.vim 0.792350 1.047000 0.753000: /usr/share/vim/vimfiles/plugin/skim.vim 0.764910 1.503000 0.548000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.733680 0.994000 0.666000: init lua interpreter 0.726120 0.942000 0.679000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.646400 1.052000 0.389000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.612660 0.870000 0.539000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim 0.602790 1.053000 0.400000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.538930 0.735000 0.463000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.487660 0.837000 0.318000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim 0.414630 0.746000 0.207000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.405950 0.580000 0.352000: inits 1 0.405830 0.756000 0.375000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.399260 0.526000 0.384000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim 0.385520 0.604000 0.361000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim 0.367700 0.619000 0.264000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.366260 0.530000 0.257000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.356600 0.534000 0.323000: init highlight 0.355770 0.547000 0.262000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.337500 0.453000 0.311000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.322350 0.570000 0.158000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.315490 0.450000 0.302000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.259480 0.485000 0.101000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim 0.241810 0.427000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.232130 0.270000 0.222000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.210160 0.301000 0.201000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.203220 0.313000 0.152000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.188600 0.307000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.170940 0.211000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.162910 0.290000 0.149000: /usr/share/nvim/runtime/syntax/synload.vim 0.161600 0.380000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.161070 0.304000 0.125000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.158380 0.383000 0.130000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 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 0.144870 0.249000 0.123000: event init 0.117110 0.197000 0.098000: early init 0.105870 0.188000 0.095000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.105480 0.213000 0.094000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.097390 0.125000 0.094000: /usr/share/nvim/runtime/plugin/shada.vim 0.092900 0.131000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.090390 0.124000 0.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.090150 0.131000 0.085000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.090130 0.184000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.089670 0.119000 0.077000: /usr/share/nvim/runtime/ftplugin.vim 0.088830 0.109000 0.081000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim 0.087980 0.210000 0.079000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.085910 0.139000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.081750 0.177000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.076570 0.142000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.068550 0.097000 0.063000: /usr/share/nvim/runtime/plugin/man.vim 0.068050 0.245000 0.062000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.067710 0.278000 0.060000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim 0.066590 0.097000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.064150 0.112000 0.058000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.063780 0.106000 0.056000: locale set 0.062860 0.119000 0.059000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim 0.061080 0.112000 0.056000: /etc/xdg/nvim/sysinit.vim 0.060240 0.180000 0.050000: parsing arguments 0.058200 0.121000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.058050 0.157000 0.050000: expanding arguments 0.057670 0.089000 0.050000: inits 2 0.056350 0.099000 0.040000: init first window 0.052610 0.281000 0.046000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.052000 0.160000 0.043000: /usr/share/nvim/runtime/filetype.lua 0.051560 0.065000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.051250 0.059000 0.048000: /usr/share/nvim/runtime/indent.vim 0.047770 0.082000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/filetype.nvim/filetype.vim 0.047450 0.085000 0.045000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.040470 0.081000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.034750 0.066000 0.032000: clearing screen 0.032770 0.056000 0.031000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim 0.030730 0.058000 0.028000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.030660 0.059000 0.029000: /usr/share/nvim/runtime/plugin/tutor.vim 0.030280 0.136000 0.028000: inits 3 0.029390 0.047000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.027670 0.038000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.027050 0.067000 0.024000: /usr/share/nvim/runtime/filetype.vim 0.027030 0.047000 0.025000: /usr/share/nvim/runtime/plugin/gzip.vim 0.026110 0.039000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.026070 0.051000 0.024000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim 0.024710 0.035000 0.022000: init default mappings 0.024210 0.048000 0.021000: init default autocommands 0.023980 0.035000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim 0.023390 0.052000 0.022000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.021870 0.026000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim 0.021720 0.062000 0.017000: window checked 0.021470 0.024000 0.021000: /usr/share/nvim/runtime/plugin/matchit.vim 0.020270 0.023000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim 0.019990 0.022000 0.019000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.018540 0.023000 0.018000: /usr/share/nvim/runtime/plugin/health.vim 0.018470 0.021000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.018460 0.026000 0.017000: /usr/share/nvim/archlinux.vim 0.018330 0.210000 0.015000: /home/oli/.local/share/nvim/rplugin.vim 0.012290 0.021000 0.010000: --- NVIM STARTING --- 0.006600 0.018000 0.006000: editing files in windowsdeleted file mode 100644+0 / −142 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 236.690490 msecTotal Max: 400.304000 msecTotal Min: 195.247000 msec AVERAGE MAX MIN---------------------------------169.968420 290.092000 139.875000: /home/oli/.config/nvim/init.lua 13.974000 28.363000 11.460000: loading packages 6.835580 12.380000 5.336000: loading after plugins 5.466760 8.905000 4.366000: loading rtp plugins 4.679380 7.926000 3.542000: sourcing vimrc file(s) 4.340620 8.601000 3.439000: /usr/share/nvim/runtime/filetype.lua 2.982450 8.741000 2.265000: reading ShaDa 2.655790 5.275000 1.801000: opening buffers 2.251370 5.856000 1.530000: BufEnter autocommands 1.618660 3.966000 1.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.420820 4.173000 1.004000: /home/oli/.config/nvim/filetype.lua 1.237190 3.538000 0.824000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 1.045070 2.595000 0.822000: /usr/share/nvim/runtime/syntax/syntax.vim 0.891420 2.410000 0.610000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.832830 2.767000 0.435000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.821020 1.894000 0.597000: /usr/share/vim/vimfiles/plugin/skim.vim 0.798470 2.223000 0.518000: /home/oli/.local/share/nvim/site/pack/plugins/start/kommentary/plugin/kommentary.vim 0.740630 2.029000 0.543000: init lua interpreter 0.683750 1.961000 0.490000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.614360 2.907000 0.361000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.598100 2.327000 0.300000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.587120 2.415000 0.276000: /home/oli/.local/share/nvim/site/pack/plugins/start/lsp-colors.nvim/plugin/lsp-colors.vim 0.530920 1.721000 0.290000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.524870 1.722000 0.220000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.513220 1.815000 0.303000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.453430 1.854000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.427410 1.438000 0.301000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.422150 0.948000 0.326000: /home/oli/.local/share/nvim/site/pack/plugins/start/hop.nvim/plugin/hop.vim 0.417700 2.051000 0.194000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.411170 0.789000 0.297000: /home/oli/.local/share/nvim/site/pack/plugins/start/completion-nvim/plugin/completion.vim 0.408660 1.568000 0.306000: inits 1 0.402360 1.614000 0.274000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.382820 1.461000 0.161000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.335740 1.025000 0.261000: init highlight 0.318870 1.911000 0.122000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.281680 1.020000 0.190000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.241690 0.796000 0.170000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.233550 1.115000 0.142000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.223740 0.835000 0.088000: /home/oli/.local/share/nvim/site/pack/plugins/start/playground/plugin/nvim-treesitter-playground.vim 0.211190 0.833000 0.133000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.199070 0.710000 0.101000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.197310 0.894000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 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 0.189230 0.571000 0.138000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.168640 0.697000 0.105000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.156820 0.670000 0.112000: /usr/share/nvim/runtime/syntax/synload.vim 0.144780 0.461000 0.083000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.142880 0.632000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.142150 0.399000 0.112000: event init 0.140790 0.590000 0.072000: /usr/share/nvim/runtime/ftplugin.vim 0.140150 0.659000 0.076000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.125350 0.626000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.121020 0.507000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.118740 0.457000 0.076000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lsputils/plugin/nvim-lsputils.vim 0.118720 0.369000 0.078000: /usr/share/nvim/runtime/plugin/shada.vim 0.115230 0.321000 0.087000: early init 0.113220 0.887000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/statusline.lua/plugin/statusline.vim 0.112250 0.355000 0.072000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.106310 0.414000 0.067000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.102860 0.379000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.101030 1.148000 0.059000: /usr/share/nvim/runtime/plugin/man.vim 0.085390 0.325000 0.052000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.082080 0.363000 0.039000: /usr/share/nvim/runtime/indent.vim 0.080080 0.470000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim 0.078310 0.371000 0.055000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.078270 0.282000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.075640 0.300000 0.050000: /home/oli/.local/share/nvim/site/pack/plugins/start/popfix/plugin/popfix.vim 0.075340 0.483000 0.045000: /etc/xdg/nvim/sysinit.vim 0.075220 0.317000 0.052000: /home/oli/.local/share/nvim/site/pack/plugins/start/plenary.nvim/plugin/plenary.vim 0.074660 0.326000 0.043000: expanding arguments 0.071840 0.439000 0.045000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.070970 0.239000 0.051000: locale set 0.065390 0.219000 0.043000: parsing arguments 0.064380 0.273000 0.042000: /usr/share/vim/vimfiles/plugin/black.vim 0.063050 0.446000 0.033000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.061610 0.323000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.059760 0.457000 0.036000: init first window 0.058260 0.164000 0.041000: inits 2 0.057180 0.191000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope-frecency.nvim/plugin/frecency.vim 0.056520 0.276000 0.039000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.051460 0.183000 0.021000: /usr/share/nvim/runtime/plugin/gzip.vim 0.049720 0.424000 0.028000: clearing screen 0.045950 0.245000 0.031000: /usr/share/vim/vimfiles/ftdetect/meson.vim 0.044510 0.263000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.041720 0.226000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-colorizer.lua/plugin/colorizer.vim 0.039560 0.266000 0.025000: /usr/share/nvim/runtime/plugin/tutor.vim 0.039150 0.120000 0.026000: /home/oli/.local/share/nvim/site/pack/plugins/start/telescope.nvim/plugin/telescope.vim 0.039030 0.127000 0.028000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/query.vim 0.036830 0.294000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.035770 0.256000 0.023000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hcl.vim 0.034040 0.172000 0.021000: /usr/share/nvim/runtime/filetype.vim 0.033930 0.605000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/graphql.vim 0.033530 0.200000 0.019000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.032710 0.164000 0.022000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.032640 0.131000 0.021000: /home/oli/.local/share/nvim/site/pack/plugins/start/which-key.nvim/plugin/which-key.vim 0.032400 0.124000 0.021000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.031890 0.205000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/cooklang.vim 0.030590 0.234000 0.020000: inits 3 0.029750 0.211000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/plugin/nvim-treesitter.vim 0.027400 0.153000 0.019000: init default mappings 0.027320 0.156000 0.017000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig/plugin/lspconfig.vim 0.026630 0.113000 0.018000: /usr/share/nvim/runtime/plugin/matchit.vim 0.026430 0.131000 0.018000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.026210 0.091000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ledger.vim 0.026160 0.086000 0.018000: init default autocommands 0.025710 0.053000 0.020000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdresource.vim 0.025570 0.083000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim 0.025370 0.198000 0.018000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hack.vim 0.025200 0.078000 0.015000: /usr/share/nvim/runtime/plugin/health.vim 0.024940 0.079000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim 0.023540 0.404000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/teal.vim 0.023540 0.120000 0.016000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.023360 0.149000 0.014000: /usr/share/nvim/archlinux.vim 0.022730 0.229000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/surface.vim 0.022600 0.080000 0.015000: window checked 0.022550 0.193000 0.015000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.021970 0.088000 0.016000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/ql.vim 0.020280 0.057000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/fusion.vim 0.020210 0.073000 0.013000: /home/oli/.local/share/nvim/rplugin.vim 0.019480 0.064000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gdscript.vim 0.019360 0.061000 0.015000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/gowork.vim 0.019260 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/hjson.vim 0.019140 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/yang.vim 0.018990 0.136000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glsl.vim 0.018840 0.069000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/json5.vim 0.018830 0.060000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/pug.vim 0.018770 0.049000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/tlaplus.vim 0.018720 0.053000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/prisma.vim 0.018070 0.061000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/nix.vim 0.017990 0.066000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/glimmer.vim 0.017850 0.044000 0.014000: /home/oli/.local/share/nvim/site/pack/plugins/start/nvim-treesitter/ftdetect/heex.vim 0.013040 0.236000 0.005000: editing files in windows 0.012080 0.028000 0.009000: --- NVIM STARTING ---deleted file mode 100644+0 / −102 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 1850.736090 msecTotal Max: 1969.983000 msecTotal Min: 1821.947000 msec AVERAGE MAX MIN------------------------------------1006.310160 1006.838000 1006.138000: clearing screen 802.751960 911.582000 775.461000: /home/oli/.config/nvim/init.lua 7.836060 11.880000 7.161000: loading packages 4.288070 6.452000 3.935000: loading after plugins 3.741050 5.754000 3.373000: loading rtp plugins 3.100560 4.513000 2.869000: reading ShaDa 2.885810 4.400000 2.659000: sourcing vimrc file(s) 2.410220 4.000000 1.840000: opening buffers 1.840350 3.263000 1.641000: /usr/share/nvim/runtime/filetype.lua 1.337860 2.431000 1.042000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.102050 1.896000 0.954000: /home/oli/.config/nvim/filetype.lua 0.973060 1.637000 0.748000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 0.759020 1.349000 0.553000: BufEnter autocommands 0.751850 1.337000 0.675000: /usr/share/nvim/runtime/syntax/syntax.vim 0.667290 1.229000 0.579000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.650380 1.114000 0.576000: /usr/share/vim/vimfiles/plugin/skim.vim 0.611960 0.926000 0.559000: init lua interpreter 0.602680 1.008000 0.434000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.565550 0.906000 0.470000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.441350 0.998000 0.319000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.391140 0.647000 0.258000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.371630 0.687000 0.275000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.353460 1.047000 0.215000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.335070 0.519000 0.302000: inits 1 0.331190 0.686000 0.187000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.308770 0.680000 0.205000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.304500 0.576000 0.263000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.289440 0.392000 0.267000: init highlight 0.288850 0.471000 0.257000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.267110 0.720000 0.140000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.206530 0.400000 0.113000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.202800 0.353000 0.181000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.187210 0.360000 0.163000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.167000 0.342000 0.129000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.150500 0.349000 0.099000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.145620 0.307000 0.118000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.143760 0.260000 0.123000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 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 0.138520 0.320000 0.082000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.134770 0.333000 0.102000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 0.133200 0.274000 0.116000: /usr/share/nvim/runtime/syntax/synload.vim 0.120360 0.165000 0.107000: event init 0.097450 0.206000 0.085000: early init 0.095100 0.239000 0.077000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.086370 0.262000 0.068000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.085730 0.174000 0.070000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.082690 0.155000 0.075000: /usr/share/nvim/runtime/plugin/shada.vim 0.079840 0.149000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.079290 0.198000 0.060000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.076630 0.177000 0.064000: /usr/share/nvim/runtime/ftplugin.vim 0.075240 0.156000 0.057000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.073600 0.148000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.071170 0.204000 0.056000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.064820 0.121000 0.055000: /usr/share/nvim/runtime/plugin/man.vim 0.060320 0.132000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.059760 0.188000 0.050000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.059360 0.106000 0.053000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim 0.055910 0.125000 0.049000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.053740 0.084000 0.047000: locale set 0.052100 0.256000 0.044000: parsing arguments 0.051790 0.083000 0.045000: /etc/xdg/nvim/sysinit.vim 0.050950 0.246000 0.043000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.050490 0.086000 0.044000: expanding arguments 0.047710 0.076000 0.040000: inits 2 0.047330 0.092000 0.041000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.045090 0.081000 0.040000: /usr/share/vim/vimfiles/plugin/black.vim 0.044210 0.070000 0.033000: init first window 0.043190 0.105000 0.038000: /usr/share/nvim/runtime/indent.vim 0.042190 0.085000 0.037000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.038530 0.097000 0.034000: /usr/share/vim/vimfiles/ftdetect/meson.vim 0.037170 0.076000 0.031000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.028740 0.060000 0.023000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.026970 0.090000 0.024000: /usr/share/nvim/runtime/plugin/tutor.vim 0.025430 0.237000 0.021000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.024940 0.052000 0.019000: /usr/share/nvim/runtime/plugin/gzip.vim 0.024930 0.047000 0.022000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.024220 0.040000 0.021000: /usr/share/nvim/runtime/filetype.vim 0.023370 0.041000 0.019000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim 0.022450 0.067000 0.020000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.021630 0.036000 0.019000: init default mappings 0.021550 0.043000 0.019000: inits 3 0.020880 0.038000 0.018000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim 0.020190 0.036000 0.018000: init default autocommands 0.018600 0.033000 0.016000: /usr/share/nvim/runtime/plugin/matchit.vim 0.018000 0.033000 0.015000: window checked 0.017820 0.073000 0.015000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.016460 0.030000 0.014000: /usr/share/nvim/runtime/plugin/health.vim 0.015920 0.032000 0.014000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.015430 0.029000 0.014000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.015110 0.026000 0.013000: /usr/share/nvim/archlinux.vim 0.013520 0.026000 0.012000: /home/oli/.local/share/nvim/rplugin.vim 0.010160 0.014000 0.009000: --- NVIM STARTING --- 0.006420 0.019000 0.005000: editing files in windowsdeleted file mode 100644+0 / −102 text lines
Extra options: [init.lua]Measured: 100 timesTotal Average: 192.635790 msecTotal Max: 204.165000 msecTotal Min: 187.250000 msec AVERAGE MAX MIN---------------------------------142.056940 150.501000 137.710000: /home/oli/.config/nvim/init.lua 9.514100 10.445000 9.233000: loading packages 5.198590 5.534000 5.073000: loading after plugins 4.418350 4.979000 4.295000: loading rtp plugins 4.319080 4.854000 4.180000: reading ShaDa 3.579770 4.082000 3.322000: sourcing vimrc file(s) 2.658670 4.417000 2.017000: opening buffers 2.189300 2.688000 2.103000: /usr/share/nvim/runtime/filetype.lua 1.744940 2.282000 1.524000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textobjects/plugin/nvim-treesitter-textobjects.vim 1.394460 3.108000 1.087000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter/plugin/nvim-treesitter.lua 1.296550 2.112000 1.147000: /home/oli/.config/nvim/filetype.lua 0.910340 1.446000 0.568000: BufEnter autocommands 0.869900 1.000000 0.838000: /usr/share/nvim/runtime/syntax/syntax.vim 0.767530 0.969000 0.719000: /usr/share/vim/vimfiles/plugin/skim.vim 0.760360 0.903000 0.685000: init lua interpreter 0.756550 0.953000 0.719000: /home/oli/.local/share/nvim/site/pack/paqs/start/symbols-outline.nvim/plugin/symbols-outline.vim 0.674470 1.124000 0.533000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-autotag/plugin/nvim-ts-autotag.vim 0.648550 0.889000 0.584000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-gomove/plugin/gomove.lua 0.635520 0.924000 0.406000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-cmp/plugin/cmp.lua 0.494280 1.321000 0.292000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-refactor/plugin/nvim-treesitter-refactor.vim 0.421740 0.967000 0.388000: /home/oli/.local/share/nvim/site/pack/paqs/start/indent-blankline.nvim/plugin/indent_blankline.vim 0.415410 0.580000 0.364000: inits 1 0.410250 0.643000 0.248000: /home/oli/.local/share/nvim/site/pack/paqs/start/playground/plugin/nvim-treesitter-playground.lua 0.367260 0.567000 0.326000: init highlight 0.362760 0.523000 0.242000: /home/oli/.local/share/nvim/site/pack/paqs/start/Comment.nvim/after/plugin/Comment.lua 0.344660 0.455000 0.322000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-buffer/after/plugin/cmp_buffer.lua 0.342610 0.537000 0.225000: /home/oli/.local/share/nvim/site/pack/paqs/start/telescope.nvim/plugin/telescope.lua 0.330030 0.539000 0.310000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/plugin/luasnip.vim 0.301850 0.526000 0.226000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-treesitter-textsubjects/plugin/nvim-treesitter-textsubjects.vim 0.241590 0.363000 0.230000: /usr/share/nvim/runtime/plugin/rplugin.vim 0.221940 0.376000 0.176000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-ts-context-commentstring/plugin/ts_context_commentstring.vim 0.214840 0.257000 0.200000: /home/oli/.local/share/nvim/site/pack/paqs/start/registers.nvim/plugin/registers.vim 0.181960 0.325000 0.159000: /home/oli/.local/share/nvim/site/pack/paqs/start/leap.nvim/plugin/init.lua 0.178950 0.280000 0.157000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp_luasnip/after/plugin/cmp_luasnip.lua 0.171610 0.248000 0.156000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-path/after/plugin/cmp_path.lua 0.168580 0.379000 0.151000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lsp-installer/plugin/nvim-lsp-installer.vim 0.168070 0.422000 0.132000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-lspconfig/plugin/lspconfig.vim 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 0.150100 0.237000 0.126000: event init 0.150090 0.196000 0.136000: /usr/share/nvim/runtime/syntax/synload.vim 0.121250 0.175000 0.102000: early init 0.107630 0.143000 0.102000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-dap/plugin/dap.lua 0.104440 0.300000 0.096000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-hlslens/plugin/hlslens.vim 0.099370 0.155000 0.095000: /usr/share/nvim/runtime/plugin/shada.vim 0.095430 0.119000 0.089000: /home/oli/.local/share/nvim/site/pack/paqs/start/trouble.nvim/plugin/trouble.vim 0.094790 0.221000 0.088000: /home/oli/.local/share/nvim/site/pack/paqs/start/FixCursorHold.nvim/plugin/fix_cursorhold_nvim.vim 0.090420 0.120000 0.077000: /usr/share/nvim/runtime/ftplugin.vim 0.088350 0.283000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua 0.084020 0.195000 0.074000: /home/oli/.local/share/nvim/site/pack/paqs/start/hydra.nvim/plugin/hydra.lua 0.083790 0.130000 0.078000: /home/oli/.local/share/nvim/site/pack/paqs/start/cmp-nvim-lsp/after/plugin/cmp_nvim_lsp.lua 0.080560 0.177000 0.071000: /home/oli/.local/share/nvim/site/pack/paqs/start/dressing.nvim/plugin/dressing.lua 0.078370 0.224000 0.069000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-web-devicons/plugin/nvim-web-devicons.vim 0.071410 0.149000 0.066000: /usr/share/nvim/runtime/plugin/man.vim 0.070240 0.103000 0.067000: /home/oli/.local/share/nvim/site/pack/paqs/start/lush.nvim/plugin/lush.vim 0.069150 0.125000 0.066000: /home/oli/.local/share/nvim/site/pack/paqs/start/plenary.nvim/plugin/plenary.vim 0.066470 0.171000 0.056000: locale set 0.066240 0.097000 0.063000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/plugin/editorconfig.vim 0.064230 0.085000 0.061000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-colorizer.lua/plugin/colorizer.vim 0.061430 0.098000 0.057000: /etc/xdg/nvim/sysinit.vim 0.060870 0.094000 0.051000: parsing arguments 0.058940 0.096000 0.051000: expanding arguments 0.057570 0.104000 0.048000: inits 2 0.056460 0.062000 0.054000: /home/oli/.local/share/nvim/site/pack/paqs/start/neo-tree.nvim/plugin/neo-tree.vim 0.054670 0.090000 0.038000: init first window 0.054280 0.066000 0.051000: /home/oli/.local/share/nvim/site/pack/paqs/start/todo-comments.nvim/plugin/todo.vim 0.053130 0.069000 0.051000: /usr/share/vim/vimfiles/plugin/black.vim 0.052260 0.067000 0.048000: /usr/share/nvim/runtime/indent.vim 0.049970 0.118000 0.047000: /home/oli/.local/share/nvim/site/pack/paqs/start/nvim-jdtls/plugin/nvim_jdtls.vim 0.046330 0.095000 0.042000: /usr/share/vim/vimfiles/ftdetect/meson.vim 0.040870 0.078000 0.038000: /home/oli/.local/share/nvim/site/pack/paqs/start/lsp-zero.nvim/plugin/lsp-zero.vim 0.038080 0.051000 0.036000: clearing screen 0.031090 0.090000 0.028000: /usr/share/nvim/runtime/plugin/netrwPlugin.vim 0.030890 0.034000 0.030000: /usr/share/nvim/runtime/plugin/tutor.vim 0.030020 0.061000 0.028000: /home/oli/.local/share/nvim/site/pack/paqs/start/rust-tools.nvim/plugin/rust-tools.vim 0.028950 0.150000 0.026000: /usr/share/nvim/runtime/filetype.vim 0.028620 0.088000 0.026000: inits 3 0.028300 0.035000 0.027000: /usr/share/nvim/runtime/plugin/zipPlugin.vim 0.027010 0.061000 0.025000: /usr/share/nvim/runtime/plugin/tarPlugin.vim 0.026930 0.225000 0.024000: /home/oli/.local/share/nvim/site/pack/paqs/start/LuaSnip/ftdetect/snippets.vim 0.026030 0.038000 0.023000: init default mappings 0.026000 0.049000 0.024000: /usr/share/nvim/runtime/plugin/gzip.vim 0.024740 0.088000 0.023000: /home/oli/.local/share/nvim/site/pack/paqs/start/editorconfig.nvim/ftdetect/editorconfig.vim 0.022760 0.034000 0.020000: init default autocommands 0.021620 0.045000 0.018000: window checked 0.021340 0.023000 0.020000: /usr/share/nvim/runtime/plugin/matchit.vim 0.021250 0.074000 0.019000: /usr/share/nvim/runtime/plugin/matchparen.vim 0.020350 0.102000 0.018000: /usr/share/nvim/runtime/plugin/spellfile.vim 0.019020 0.032000 0.018000: /usr/share/nvim/runtime/plugin/tohtml.vim 0.018860 0.034000 0.018000: /usr/share/nvim/runtime/plugin/health.vim 0.018400 0.055000 0.017000: /usr/share/nvim/archlinux.vim 0.017240 0.084000 0.016000: /home/oli/.local/share/nvim/rplugin.vim 0.012370 0.022000 0.011000: --- NVIM STARTING --- 0.006600 0.010000 0.006000: editing files in windowsnew file mode 100644+3 / −0 text lines
+2 / −0 text lines
+15 / −0 text lines
def-env workspace [] { fd --type directory --max-depth 1 . $env.WORKSPACE | sk --ansi --preview 'test -f {}README.md&& mdcat {}README.md' --preview-window 'right:66%' | cd $in}export alias w = workspacedef open-editor-with-content-search [ initial_query:string = ''] { 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 }}export alias nc = open-editor-with-content-searchdef open-editor-with-file-search [ initial_query:string = ''] { 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 }}export alias nf = open-editor-with-file-searchnew file mode 100644+65 / −0 text lines
git/gitconfig~/.config/git/configgit/gitconfig.linux~/.config/git/.gitconfig.includecargo/config.toml~/.cargo/config.tomlnushell/completions~/.config/nushell/completionsnushell/config.nu~/.config/nushell/config.nunushell/env.nu~/.config/nushell/env.nunushell/modules~/.config/nushell/modulesnushell/plugin.nu~/.config/nushell/plugin.nuicc/thinkpad_x230.icc~/.config/icc/thinkpad_x230.iccindexa/config.linux.toml~/.config/indexa/config.tomltopgrade/topgrade.linux.toml~/.config/topgrade.tomlstackoverflow/so~/.config/sowezterm~/.config/weztermwezterm/wezterm.service~/.config/systemd/user/wezterm.servicehelix/config.toml~/.config/helix/config.tomlhelix/languages.toml~/.config/helix/languages.tomlhelix/themes~/.config/helix/themeshelix/systemd/helix-dark-mode.service~/.config/systemd/user/helix-dark-mode.servicexplr~/.config/xplrriver~/.config/riverssh/config~/.ssh/configneovim~/.config/nvim+1 / −0 text lines
+3 / −2 text lines
underline_position = "-2pt",