repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge remote-tracking branch 'refs/remotes/origin/trunk'

b82b90a9c91ab55133676dde9a99d3b8327d7908

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Conflicts:
	.gitignore
	neovim/init.lua
	neovim/lua/bugabinga/options/file.lua
	neovim/lua/bugabinga/options/init.lua
	neovim/lua/bugabinga/plugins/init.lua

Changed files (12)

+411 / −231 text lines

Diff layout

.gitignore

Modified

+4 / −0 text lines

77nushell/zoxide.nu
88nushell/history.txt
99nushell/plugin.nu
10<<<<<<< HEAD
11neovim/profile.log
12=======
1013profile.log
14>>>>>>> trunk
1115neovim/profile.svg

neovim/init.lua

Modified

+7 / −0 text lines

7474-- [ ] add keybind to dismiss notify window
7575-- [ ] start a toggleterm with: watch <buffer> { clear; mdcat <buffer> }
7676-- [ ] load plugins/init.lua and sync on write. reload init.lua?
77<<<<<<< HEAD
78-- [ ] disable gomove in special buffers
79-- [ ] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
80-- [ ] lsp diagnostics hide in insert mode
81=======
7782-- [ ] change style for read only files
7883-- [~] disable gomove in special buffers
7984-- [x] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
8085-- [x] undofile not work?
8186-- [x] why does redo not work?
87>>>>>>> trunk
8288-- [x] JDTLS
8389-- [~] bindings for luadev
8490-- [~] close toogleterms on quit
114120--
115121-- PLUGINS TO TRY
122-- https://github.com/lukas-reineke/lsp-format.nvim
116123-- https://github.com/ThePrimeagen/refactoring.nvim
117124-- https://github.com/windwp/windline.nvim
118125-- https://github.com/hrsh7th/nvim-pasta

neovim/lua/bugabinga/lsp.lua

Modified

+105 / −96 text lines

11local want = require 'bugabinga.std.want'
22want {
3 'lsp-zero',
4 'null-ls',
5 'nvim-lsp-installer',
6 'lua-dev',
7 'rust-tools',
8 'nvim-navic',
9 'lsp-status',
10}(function(zero, null_ls, installer, luadev, rust, navic, lsp_status)
11 installer.settings {
12 ui = {
13 border = 'rounded',
14 },
15 }
3 'lsp-zero',
4 'null-ls',
5 'nvim-lsp-installer',
6 'lua-dev',
7 'rust-tools',
8 'nvim-navic',
9 'lsp-status',
10} (function(zero, null_ls, installer, luadev, rust, navic, lsp_status)
11 installer.settings {
12 ui = {
13 border = 'rounded',
14 },
15 }
17 zero.preset 'recommended'
17 zero.preset 'recommended'
19 -- setup lsp for my neovim config
20 zero.nvim_workspace {
21 -- add paths of all plugins and neovim
22 library = vim.api.nvim_get_runtime_file('', true),
23 }
24 -- Initialize rust_analyzer with rust-tools
25 rust.setup {
26 server = zero.build_options('rust_analyzer', {}),
27 }
19 -- setup lsp for my neovim config
20 zero.nvim_workspace {
21 -- add paths of all plugins and neovim
22 library = vim.api.nvim_get_runtime_file('', true),
23 }
24 -- Initialize rust_analyzer with rust-tools
25 rust.setup {
26 server = zero.build_options('rust_analyzer', {}),
27 }
29 -- this will prevent zero from loading this server.
30 -- Java will be managed by nvim-jdtls, which wants to do things differently.
31 -- see ftplugin/java.lua
32 zero.build_options('jdtls', {})
29 -- this will prevent zero from loading this server.
30 -- Java will be managed by nvim-jdtls, which wants to do things differently.
31 -- see ftplugin/java.lua
32 zero.build_options('jdtls', {})
34 -- lua neovim lsp
35 luadev.setup {
36 lspconfig = zero.defaults.nvim_workspace(),
37 }
34 -- lua neovim lsp
35 luadev.setup {
36 lspconfig = zero.defaults.nvim_workspace(),
37 }
39 -- disable disco mode while typing
40 zero.setup_nvim_cmp {
41 completion = {
42 autocomplete = false,
43 },
44 }
39 -- disable disco mode while typing
40 zero.setup_nvim_cmp {
41 completion = {
42 autocomplete = false,
43 },
44 }
46 -- Format on Save when any LSP supports it.
47 local auto = require 'bugabinga.std.auto'
48 local null_opts = zero.build_options('null-ls', {
49 on_attach = function(client)
50 if client.server_capabilities.documentFormattingProvider then
51 auto 'format_buffer_on_write' {
52 description = 'Format the current buffer before writing.',
53 events = 'BufWritePre',
54 pattern = '<buffer>',
55 callback = function(context)
56 vim.lsp.buf.format()
57 vim.notify('Formatted ' .. context.file)
58 end,
59 }
60 end
61 end,
62 })
46 -- Format on Save when any LSP supports it.
47 local auto = require 'bugabinga.std.auto'
48 local null_opts = zero.build_options('null-ls', {
49 on_attach = function(client)
50 if client.server_capabilities.documentFormattingProvider then
51 auto 'format_buffer_on_write' {
52 description = 'Format the current buffer before writing.',
53 events = 'BufWritePre',
54 pattern = '<buffer>',
55 callback = function(context)
56 vim.lsp.buf.format()
57 vim.notify('Formatted ' .. context.file)
58 end,
59 }
60 end
61 end,
62 })
64 local formatting = null_ls.builtins.formatting
65 local diagnostics = null_ls.builtins.diagnostics
66 local code_actions = null_ls.builtins.code_actions
67 local hover = null_ls.builtins.hover
68 local completion = null_ls.builtins.completion
64 local formatting = null_ls.builtins.formatting
65 local diagnostics = null_ls.builtins.diagnostics
66 local code_actions = null_ls.builtins.code_actions
67 local hover = null_ls.builtins.hover
68 local completion = null_ls.builtins.completion
70 -- run diagnostics on save
71 local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE }
72 null_ls.setup {
73 on_attach = null_opts.on_attach,
74 sources = {
75 formatting.black.with { extra_args = { '--fast' } },
76 formatting.stylua,
77 formatting.clang_format,
78 formatting.codespell,
79 formatting.jq,
80 formatting.protolint,
81 formatting.shellharden,
82 formatting.shfmt,
83 formatting.taplo,
70 -- run diagnostics on save
71 local diagnostics_on_save = { method = null_ls.methods.DIAGNOSTICS_ON_SAVE }
72 null_ls.setup {
73 on_attach = null_opts.on_attach,
74 sources = {
75 formatting.black.with { extra_args = { '--fast' } },
76 formatting.stylua,
77 formatting.clang_format,
78 formatting.codespell,
79 formatting.jq,
80 formatting.protolint,
81 formatting.shellharden,
82 formatting.shfmt,
83 formatting.taplo,
85 hover.dictionary,
85 hover.dictionary,
87 diagnostics.actionlint.with(diagnostics_on_save),
88 diagnostics.checkmake.with(diagnostics_on_save),
89 diagnostics.codespell.with(diagnostics_on_save),
90 diagnostics.editorconfig_checker.with(diagnostics_on_save).with { command = 'editorconfig-checker' },
91 diagnostics.gitlint.with(diagnostics_on_save),
92 diagnostics.protoc_gen_lint.with(diagnostics_on_save),
93 diagnostics.protolint.with(diagnostics_on_save),
94 diagnostics.selene.with(diagnostics_on_save),
95 diagnostics.shellcheck.with(diagnostics_on_save),
96 diagnostics.tidy.with(diagnostics_on_save),
87 diagnostics.actionlint.with(diagnostics_on_save),
88 diagnostics.checkmake.with(diagnostics_on_save),
89 diagnostics.codespell.with(diagnostics_on_save),
90 diagnostics.editorconfig_checker.with(diagnostics_on_save).with { command = 'editorconfig-checker' },
91 diagnostics.gitlint.with(diagnostics_on_save),
92 diagnostics.protoc_gen_lint.with(diagnostics_on_save),
93 diagnostics.protolint.with(diagnostics_on_save),
94 diagnostics.selene.with(diagnostics_on_save).with {
95 -- null-ls determines the root in a too simplistic manner.
96 -- since my neovim configuration live inside my dotfiles, the dotfiles root
97 -- was taken. but i want the neovim config folder as root.
98 cwd = function(parameters)
99 local project = require 'bugabinga.std.project'
100 local root = project.determine_project_root({ name = 'selene.toml', weight = 10 }, parameters.root)
101 return root or parameters.root
102 end,
103 },
104 diagnostics.shellcheck.with(diagnostics_on_save),
105 diagnostics.tidy.with(diagnostics_on_save),
98 code_actions.refactoring,
99 code_actions.shellcheck,
107 code_actions.refactoring,
108 code_actions.shellcheck,
101 completion.luasnip,
102 },
103 }
110 completion.luasnip,
111 },
112 }
105 zero.on_attach(function(client, buffer_number)
106 if client.name ~= 'null-ls' and not vim.b.lsp_attached then
107 navic.attach(client, buffer_number)
108 lsp_status.on_attach(client, buffer_number)
109 end
110 end)
114 zero.on_attach(function(client, buffer_number)
115 if client.name ~= 'null-ls' and not vim.b.lsp_attached then
116 navic.attach(client, buffer_number)
117 lsp_status.on_attach(client, buffer_number)
118 end
119 end)
112 zero.setup()
121 zero.setup()
113122end)

neovim/lua/bugabinga/options/behaviour.lua

Modified

+4 / −2 text lines

1818vim.opt.tabstop = tab_size
1919vim.opt.shiftwidth = tab_size
2020vim.opt.softtabstop = tab_size
21vim.opt.shiftround = true
2223-- keep distance to borders while scrolling
2324vim.opt.scrolloff = 8
5455vim.opt.incsearch = true
5556vim.opt.showmatch = true
5657vim.opt.hidden = true
58vim.opt.wildignorecase = true
5759-- Show the effects of substitutions incrementally
5860vim.opt.inccommand = 'nosplit'
6062-- use ripgrep instead of grep
61vim.opt.grepprg = 'rg --vimgrep --no-heading --smart-case'
62-- vim.opt.grepformat = '%f:%1:%c:%m'
63vim.opt.grepprg = 'rg --hidden --vimgrep --no-heading --smart-case --'
64vim.opt.grepformat = '%f:%l:%c:%m'
6466-- ask me to force failed commands
6567vim.opt.confirm = true

neovim/lua/bugabinga/options/file.lua

Modified

+16 / −0 text lines

44-- encode files in UTF-8
55vim.opt.fileencoding = 'utf-8'
7<<<<<<< HEAD
8-- create backup files
9vim.opt.backup = true
11-- keep track of file state in case of neovim crashes
12vim.opt.swapfile = true
14-- enable persistent undo. save undo history across neovim instances
15vim.opt.undofile = true
17-- make a backup before writing to a file
18vim.opt.writebackup = true
21=======
722-- do not create local backup files
823vim.opt.backup = true
924-- by default backups are created next to the edited file.
2540-- enable persistent undo. save undo history across neovim instances
2641vim.opt.undofile = true
42>>>>>>> trunk

neovim/lua/bugabinga/options/init.lua

Modified

+4 / −0 text lines

3434 'rrhelper',
3535 'spellfile_plugin',
3636 'matchit',
37<<<<<<< HEAD
38 'matchparen',
39=======
3740 --'matchparen',
41>>>>>>> trunk
3943for _, plugin in pairs(disabled_built_ins) do
4044 vim.g['loaded_' .. plugin] = 1

neovim/lua/bugabinga/options/ui.lua

Modified

+19 / −7 text lines

11-- show trailing whitespace
22vim.opt.list = true
3vim.opt.listchars:append 'trail:⋅'
4vim.opt.listchars:append 'lead:⋅'
3vim.opt.listchars = {
4 space = '⋅',
5 eol = '↴',
6 tab = '__',
7 trail = '•',
8 extends = '❯',
9 precedes = '❮',
10 nbsp = '_',
11}
613-- do not spam the cmdline with every little input
714vim.opt.showcmd = false
1623-- what is a ruler? me?
1724vim.opt.ruler = false
19-- do not echo every little thing
20vim.opt.showcmd = false
2226-- avoid jitter by keeping status area big
2327vim.opt.laststatus = 3
2529-- hide weird symbol at end of buffer
26vim.opt.fillchars:append 'eob: '
30vim.opt.fillchars = {
31 eob = ' ',
32 fold = ' ',
33 diff = '╱',
34}
2836-- hide output of insert completion popup in status
2937vim.opt.shortmess:append 'c'
3139-- hide cmd window to give status more room
3240vim.opt.cmdheight = 0
34-- do not conceal special character, e.g. in markdown files
42-- do not conceal special characters by default. filestypes can enable this on demand.
3543vim.opt.conceallevel = 0
3745-- I do not care for folding
4654-- pop up menu height
4755vim.opt.pumheight = 10
57-- transparent popups and floating windows
58vim.opt.pumblend = 30
59vim.opt.winblend = 15
4961-- hide the mode indicator in status
5062vim.opt.showmode = false

neovim/lua/bugabinga/plugins/init.lua

Modified

+11 / −0 text lines

44 'savq/paq-nvim',
55 -- caches other plugins for faster startup
66 'lewis6991/impatient.nvim',
7<<<<<<< HEAD
8 -- faster implementation of filetypes.vim
9 'nathom/filetype.nvim',
10=======
11>>>>>>> trunk
712 -- Utilities used by some plugins, e.g. telescope
813 'nvim-lua/plenary.nvim',
914 -- collection of icons used by other plugins. needs a nerd font
142147 -- autoclose pairs on enter and completion
143148 'windwp/nvim-autopairs',
144149 -- glue, that binds all the neovim lsp crap
150<<<<<<< HEAD
151 -- 'VonHeikemen/lsp-zero.nvim',
152=======
145153 'VonHeikemen/lsp-zero.nvim',
154>>>>>>> trunk
146155 -- LSP Support
147156 'neovim/nvim-lspconfig',
148157 'williamboman/nvim-lsp-installer',
177186 -- motions around object
178187 'kylechui/nvim-surround',
189-- local plugins. they may override plugins from above
190vim.opt.runtimepath:append '~/Workspace/lsp-zero.nvim'
180191return paq

neovim/lua/bugabinga/std/project.lua

Modified

+123 / −95 text lines

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

neovim/neovim.toml

Deleted
deleted file mode 100644

+0 / −31 text lines

1[selene]
2base = "lua51"
3name = "neovim"
4
5[vim]
6any = true
7
8[[assert.args]]
9type = "bool"
11[[assert.args]]
12type = "string"
13required = false
15[[after_each.args]]
16type = "function"
18[[before_each.args]]
19type = "function"
21[[describe.args]]
22type = "string"
24[[describe.args]]
25type = "function"
27[[it.args]]
28type = "string"
30[[it.args]]
31type = "function"

neovim/neovim.yml

Added
new file mode 100644

+25 / −0 text lines

1---
2base: lua51
3name: neovim
4globals:
5 after_each:
6 args:
7 - type: function
8 assert:
9 args:
10 - type: bool
11 - required: false
12 type: string
13 before_each:
14 args:
15 - type: function
16 describe:
17 args:
18 - type: string
19 - type: function
20 it:
21 args:
22 - type: string
23 - type: function
24 vim:
25 any: true

neovim/startuptime/pop-os_2022_07_03_23_07_58.txt

Added
new file mode 100644

+93 / −0 text lines

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