repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

bb9fae451717e14ac7bf80cde9dc3cf9c2cb56a2

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

unsigned

Browse filesCompare with HEAD

Changed files (66)

.gitignore

Modified
7 7 nushell/zoxide.nu
8 8 nushell/history.txt
9 9 nushell/plugin.nu
10 +<<<<<<< HEAD
11 +neovim/profile.log
12 +=======
13 +profile.log
14 +>>>>>>> trunk
15 +neovim/profile.svg

TODO.md

Deleted
deleted file mode 100644
1 -# To-Do
3 -- [ ] write svn completions for nushell
4 -- [ ] how to handle Notes and TODOs?
5 -- [ ] interactive zoxide jump function with skim
6 -- [ ] encrypt box key
7 -- [ ] get SIM card to work on x230
8 -- [ ] rewrite bootstripper and java commands with zig. how to run them? precompile? zig run?
9 -- [ ] move config into dorkfiles
10 - - [ ] vscode
11 - - [ ] systemd user
12 - - [ ] darkman
13 -- [ ] learn basic helix
14 -- [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
15 - - [x] define dark palette
16 - - [ ] define light palette
17 - - [ ] define colors relative to base colors
18 - - [ ] create app themes
19 - - [ ] helix
20 - - [ ] eclipse
21 - - [ ] firefox
22 - - [ ] wezterm
23 - - [ ] foot
24 - - [ ] river
25 -- [ ] global dark/light theme switch, with nugu
26 - - [x] install darkman
27 - - [x] firefox
28 - - [ ] helix
29 - - [ ] mako
30 - - [ ] wezterm
31 - - [ ] foot
32 - - [ ] vscode
33 -- [ ] wrap mv and rm to use git/svn versions if applicable
34 -- [x] port nushell config to new config script
35 -- [x] configure tiny irc
37 -## x230
39 -- [ ] systemd-udevd sometimes high cpu. why?
40 -- [ ] desktop i/o and cpu schedulers
41 -- [ ] x230 lnx kernel
42 -- [ ] system status command into waybar:
43 - - [x] network
44 - - [x] disk space
45 - - [ ] todo
46 - - [ ] vsc status
47 - - [x] time date
48 - - [ ] pacsave files
49 - - [ ] reboot
50 - - [ ] poweroff
51 -- [ ] wayland (river) systemd user target
52 - - [x] river.service
53 - - [x] kanshi.service
54 - - [x] wluma.service
55 - - [x] wlsunset@latitude&longitude.service
56 - - [x] waybar.service
57 - - [x] mako.service
58 - - [ ] clipboard history
59 - - [ ] wayshot in river init
60 - - [ ] IME input method for emojis
61 -- [ ] wezterm multiplexer service
62 -- [x] use systemd user for autostart stuff
63 -- [ ] package indexa AUR
64 -- [ ] OFFLINE
65 - - [ ] local web proxy cache (squid?)
66 -- [x] pacman hook reflector on mirrorlist
67 -- [ ] pacman trigger for "needs reboot"
68 -- [x] install pipewire
69 -- [ ] Configure makepkg and paru
70 - - [ ] pacman paru makepkg sscache ?
71 -- [x] check out river recommended tools
72 -- [ ] bootstripper encrypt keys + ssh config
73 -- [ ] create snapper snapshot + systemd-boot entries
74 -- [ ] install GRML rescue system into systemd-boot
75 -- [ ] sign secure boot and unified kernel image
76 -- [ ] install coreboot
77 -- [ ] create custom optimized pacman repo
78 -- [ ] Toolbox on Arch? Custom tool based on nspawn?
79 -- [ ] install circular clipboard thingy
80 -- [x] restart iwd on wakeup
81 -- [x] river + systemd user + tty2
82 -- [x] dotfiles + refresh configs
83 -- [x] disable TAB key in tty
84 -- [x] merge nushell config
85 -- [x] hx colors in console? why different?

justfile

Modified
11 11 # TODO: markdown files
12 12 lint:
13 - selene .
14 13 taplo lint
15 14 javac -Werror -Xlint:all bootstripper.java
16 15 rm bootstripper.class
23 22 # TODO: markdown files
24 23 fmt:
25 24 just --fmt --unstable
26 - stylua --verify .
27 25 taplo fmt
29 27 # link dorkfiles into HOME

neovim/after/queries/lua/highlights.scm

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

neovim/after/syntax/lua.lua

Deleted
deleted file mode 100644
1 --- TODO: map syntax elements to pretty symbols
2 --- function = ƒn⟮
3 --- return = ⏎
4 --- end = ⟯
5 --- ( = ⦅
6 --- ) = ⦆
7 --- for
8 --- do = ⟮
9 --- while = Ꝏ
10 --- if
11 --- then = ⟮
12 --- else
13 --- elseif
14 --- { = ⎨
15 --- } = ⎬
16 --- ... = …
17 --- .. = ‥
18 --- -- = ―
19 --- [[ = ⟪
20 --- ]] = ⟫
22 --- FIXME: conceal feature is too simple
23 --- it affects all characters in comments and strings
24 --- that could maybe be circumvented with complex matches and regions, but integ with TS would be more elegant
25 --- it changes the highlighting of concealed stuff
26 --- furthermore, i struggled to get the quoting of special character right when calling syntax command from lua
28 -vim.opt_local.conceallevel = 2

neovim/filetype.lua

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

neovim/ftplugin/java.lua

Modified
1 --- TODO: add kool conceals for java syntax
2 --- https://github.com/alok/python-conceal/blob/master/after/syntax/python.vim
3 -vim.opt_local.conceallevel = 2
5 1 local want = require 'bugabinga.std.want'
6 2 want {
7 3 'jdtls',
31 27 vim.notify 'starting eclipse.jdt.ls in syntaxserver mode'
34 - -- TODO: refactor most jdtls setup into module
35 - -- TODO: is there stuf that can be cached here?
36 - -- profile this file
37 30 local installed, jdtls_installer = installer.get_server 'jdtls'
38 31 if not installed then
39 32 vim.notify('jdtls is not installed!', error)
74 67 shared_configuration = jdtls_config_dir
76 - --FIXME: sometimes the jdtls cannot start (code 13).
69 + -- sometimes the jdtls cannot start (code 13).
77 70 -- it seems to have to do with invalif configuration "config_linux" and/or "~/.config/jdtls"
78 71 local jdtls_command = {
79 72 'java',
81 74 '-Declipse.application=org.eclipse.jdt.ls.core.id1',
82 75 '-Dosgi.bundles.defaultStartLevel=4',
83 76 '-Declipse.product=org.eclipse.jdt.ls.core.product',
84 - -- '-Dosgi.checkConfiguration=true',
85 - -- '-Dosgi.sharedConfiguration.area=' .. shared_configuration,
86 - -- '-Dosgi.sharedConfiguration.area.readOnly=true',
87 - -- '-Dosgi.configuration.cascaded=true',
88 77 '-Dlog.protocol=' .. tostring(debug_log),
89 78 '-Dlog.level=ALL',
90 - --TODO: switch to ZGC
91 - '-XX:+UseParallelGC',
92 - '-XX:GCTimeRatio=4',
93 - '-XX:AdaptiveSizePolicyWeight=90',
79 + '-XX:+UnlockExperimentalVMOptions',
80 + '-XX:+UseZGC',
81 + -- '-XX:+UseParallelGC',
82 + -- '-XX:GCTimeRatio=4',
83 + -- '-XX:AdaptiveSizePolicyWeight=90',
94 84 '-Dsun.zip.disableMemoryMapping=true',
95 85 '-Djava.import.generatesMetadataFilesAtProjectRoot=false',
96 86 '-Xmx4G',
103 93 '-jar',
104 94 vim.fn.glob(jdtls_install_dir .. '/plugins/org.eclipse.equinox.launcher_*.jar', false, false),
105 95 '-configuration',
106 - -- vim.fn.expand('~/.config/jdtls', false, false),
107 96 shared_configuration,
108 97 '-data',
109 98 jdtls_workspace_dir,

neovim/ftplugin/lua.lua

Modified
1 +-- conceal some syntax with pretty symbols and show them only in
2 +-- insert mode. see after/queries/lua/highlights.scm for more.
3 +vim.opt_local.conceallevel = 2
4 +vim.opt_local.concealcursor = 'nc'

neovim/ftplugin/markdown.lua

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

neovim/ftplugin/neo-tree.lua

Deleted
deleted file mode 100644
1 ---FIXME: seems to have no effect right now, even though this file gets loaded.
2 -vim.opt_local.colorcolumn = {}

neovim/init.lua

Modified
18 18 local profiler = require 'bugabinga.profile'
19 19 profiler.start()
21 --- set general neovim editor settings
22 -require 'bugabinga.options'
21 +-- the order of the first module to load is non-obvious.
22 +-- we want to load the plugins first, because the config depends on those.
23 +-- but we also want to load the module-cache plugin first, in order to benefit from caching most modules.
24 +-- for this and other reasons, all modules defined here should use a graceful version `require`, that allows handling the absence of modules.
25 +-- use either `bugabinga.std.want` or `pcall`.
26 +--
27 +--that way, we can order the modules here logically, assuming all plugins are installed.
28 +--if (some) plugins are not installed, the config gracefully degrades in features, but does not throw errors.
29 +--
30 +-- load this before all other plugins so that they may be cached
31 +require 'bugabinga.module-cache'
23 33 -- install plugin manager and declare plugins to use
24 34 require 'bugabinga.plugins'
26 --- load this before all other plugins so that they may be cached
27 -require 'bugabinga.module-cache'
36 +-- set general neovim editor settings
37 +require 'bugabinga.options'
29 39 -- load ui stuff
30 40 require 'bugabinga.notify'
31 41 require 'bugabinga.colortheme'
42 +require 'bugabinga.devicons'
32 43 require 'bugabinga.colorcolumn'
33 -require 'bugabinga.icons'
34 44 require 'bugabinga.fuzzy-search-ui'
35 45 require 'bugabinga.colorizer'
36 46 require 'bugabinga.smooth-scroll'
46 56 require 'bugabinga.problems'
48 58 -- load editor features
49 -require 'bugabinga.filetype'
50 59 require 'bugabinga.move-code'
51 60 require 'bugabinga.last-known-position'
52 61 require 'bugabinga.fast-navigation'
55 64 require 'bugabinga.autopairs'
56 65 require 'bugabinga.todo'
57 66 require 'bugabinga.markdown'
58 -require 'bugabinga.repl'
59 67 require 'bugabinga.surround'
61 69 -- treesitter
64 72 -- lsp
65 73 require 'bugabinga.lsp'
67 --- should be one of the last things to do.
68 --- applies all the declared keybindings to neovim.
69 -local keymap_build = require('bugabinga.std.keymap').build
70 -keymap_build()
75 +-- diagnostic
76 +require 'bugabinga.diagnostic'
72 78 profiler.stop()
73 80 -- TODO:
74 81 -- [ ] icon facade: icon.get("name")
75 82 -- [ ] DAP
124 131 -- PLUGINS TO TRY
132 +-- https://github.com/lukas-reineke/lsp-format.nvim
125 133 -- https://github.com/ThePrimeagen/refactoring.nvim
126 134 -- https://github.com/windwp/windline.nvim
127 135 -- https://github.com/hrsh7th/nvim-pasta
128 --- https://github.com/VonHeikemen/project-settings.nvim
129 136 -- https://github.com/Saecki/crates.nvim
130 137 -- https://github.com/VonHeikemen/little-wonder
131 138 -- https://github.com/mfussenegger/nvim-lint
132 139 -- https://github.com/mhartington/formatter.nvim
133 140 -- https://github.com/lewis6991/hover.nvim
141 +-- https://github.com/VonHeikemen/project-settings.nvim
142 +-- https://github.com/jinh0/eyeliner.nvim
143 +-- https://github.com/iamcco/markdown-preview.nvim
144 +-- https://github.com/jakewvincent/mkdnflow.nvim
145 +-- https://github.com/rktjmp/lush.nvim
146 +-- https://github.com/jbyuki/venn.nvim
147 +-- https://github.com/ziontee113/color-picker.nvim
148 +-- https://github.com/sQVe/sort.nvim
149 +-- https://github.com/ThePrimeagen/harpoon
151 +-- DAP PLUGINS
152 +-- https://github.com/mfussenegger/nvim-dap
153 +-- https://github.com/nvim-telescope/telescope-dap.nvim
154 +-- https://github.com/theHamsta/nvim-dap-virtual-text
155 +-- https://github.com/rcarriga/nvim-dap-ui

neovim/justfile

Modified
17 17 # Update neovim plugins via paq sync. Closes itself right after update.
18 18 update:
19 - nvim --headless -u NONE -c 'lua require"bugabinga.plugins.headless"'
19 + nvim --headless -u NONE -i NONE --cmd "lua require('bugabinga.plugins.headless')"
21 -profile_file := `$"startuptime/(hostname | str trim)_(date now | date format '%Y_%m_%d_%H_%M_%S').txt"`
21 +profile_file := `$"startuptime/(sys | get host | get hostname)_(date now | date format '%Y_%m_%d_%H_%M_%S').txt"`
23 23 # Profile startuptime of neovim. Depends on vim-startuptime.
24 24 profile:

neovim/lua/bugabinga/colortheme.lua

Modified
1 1 local want = require 'bugabinga.std.want'
2 -want { 'boo-colorscheme' }(function(boo)
3 - boo.use()
2 +want { 'boo-colorscheme' } (function(boo)
3 + boo.use()
4 + vim.api.nvim_set_hl(0, 'LspReferenceText', {})
5 + vim.api.nvim_set_hl(0, 'LspReferenceRead', {
6 + standout = true,
7 + })
8 + vim.api.nvim_set_hl(0, 'LspReferenceWrite', {
9 + standout = true,
10 + bold = true,
11 + })
4 12 end)

neovim/lua/bugabinga/comments.lua

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

neovim/lua/bugabinga/devicons.lua

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

neovim/lua/bugabinga/diagnostic.lua

Added
new file mode 100644
1 +-- the topic 'diagnotics' was refactored out of LSP into its own thing some time
2 +-- ago. that is why it gets its own section in this config now, but right now,
3 +-- those settings overlap with lsp-zero.
5 +local auto = require 'bugabinga.std.auto'
6 +local map = require 'bugabinga.std.keymap'
7 +local icon = require 'bugabinga.std.icon'
9 +local diagnostic = vim.diagnostic
11 +local diagnostic_format = function(context)
12 + local message = context.message
13 + local severity = context.severity
14 + local symbol = ''
15 + if severity == diagnostic.severity.ERROR then
16 + symbol = icon 'Error'
17 + elseif severity == diagnostic.severity.WARN then
18 + symbol = icon 'Warning'
19 + elseif severity == diagnostic.severity.INFO then
20 + symbol = icon 'Information'
21 + elseif severity == diagnostic.severity.HINT then
22 + symbol = icon 'Hint'
23 + end
24 + return string.format('%s | %s', symbol, message)
25 +end
27 +local prefix_format = function(context, index, total)
28 + local source = context.source
29 + local severity = context.severity
30 + local symbol = ''
31 + if severity == diagnostic.severity.ERROR then
32 + symbol = icon 'Error'
33 + elseif severity == diagnostic.severity.WARN then
34 + symbol = icon 'Warning'
35 + elseif severity == diagnostic.severity.INFO then
36 + symbol = icon 'Information'
37 + elseif severity == diagnostic.severity.HINT then
38 + symbol = icon 'Hint'
39 + end
40 + return string.format('%s/%s %s %s ', index, total, source, symbol)
41 +end
43 +diagnostic.config {
44 + underline = {
45 + severity = diagnostic.severity.ERROR,
46 + },
47 + virtual_text = {
48 + severity = diagnostic.severity.HINT,
49 + source = false,
50 + spacing = 0,
51 + prefix = '',
52 + format = diagnostic_format,
53 + },
54 + float = {
55 + focusable = false,
56 + style = 'minimal',
57 + border = 'rounded',
58 + source = false,
59 + header = '',
60 + prefix = prefix_format,
61 + },
62 + update_in_insert = false,
63 + signs = true,
64 + severity_sort = true,
67 +local sign = function(options)
68 + vim.fn.sign_define(options.name, {
69 + texthl = options.name,
70 + text = options.text,
71 + numhl = '',
72 + })
73 +end
75 +sign { name = 'DiagnosticSignError', text = icon 'Error' }
76 +sign { name = 'DiagnosticSignWarn', text = icon 'Warning' }
77 +sign { name = 'DiagnosticSignHint', text = icon 'Hint' }
78 +sign { name = 'DiagnosticSignInfo', text = icon 'Information' }
80 +auto 'hide_diagnostics' {
81 + description = 'Hide diagnostics by default',
82 + events = { 'BufReadPre' },
83 + pattern = '*',
84 + command = function()
85 + diagnostic.disable(0)
86 + end,
88 +local saved_cursor_highlight = vim.api.nvim_get_hl_by_name('Cursor', true)
89 +-- TODO: get colors from theme
90 +local noticeable = { foreground = '#ffffff', background = '#ff0000'}
92 +auto 'cursor_attention_if_diagnostics' {
93 + description = 'Make cursor very noticeable, if diagnostics are present',
94 + events = 'DiagnosticChanged',
95 + pattern = '*',
96 + command = function()
97 + local diagnostic_number = #vim.diagnostic.get(0,{severity = vim.diagnostic.severity.ERROR})
98 + if diagnostic_number > 0 then
99 + vim.api.nvim_set_hl(0, 'Cursor', noticeable)
100 + else
101 + vim.api.nvim_set_hl(0, 'Cursor', saved_cursor_highlight)
102 + end
103 + end,
106 +map {
107 + description = 'Enable diagnostics',
108 + category = map.CATEGORY.PROBLEMS,
109 + mode = map.MODE.NORMAL,
110 + keys = map.KEY.LEADER .. map.KEY.P,
111 + command = function()
112 + diagnostic.enable(0)
113 + end,
115 +map {
116 + description = 'Disable diagnostics',
117 + category = map.CATEGORY.PROBLEMS,
118 + mode = map.MODE.NORMAL,
119 + keys = map.KEY.LEADER .. map.KEY.P .. map.KEY.P,
120 + command = function()
121 + diagnostic.disable(0)
122 + end,
124 +map {
125 + description = 'Show diagnostics in float window',
126 + category = map.CATEGORY.PROBLEMS,
127 + mode = map.MODE.NORMAL,
128 + keys = map.KEY.F6,
129 + command = function()
130 + diagnostic.enable(0)
131 + diagnostic.open_float()
132 + end,
134 +map {
135 + description = 'Go to previous diagnostic',
136 + category = map.CATEGORY.PROBLEMS,
137 + mode = map.MODE.NORMAL,
138 + keys = map.KEY.F7,
139 + command = function()
140 + diagnostic.enable(0)
141 + diagnostic.goto_prev()
142 + end,
144 +map {
145 + description = 'Go to next diagnostic',
146 + category = map.CATEGORY.PROBLEMS,
147 + mode = map.MODE.NORMAL,
148 + keys = map.KEY.F8,
149 + command = function()
150 + diagnostic.enable(0)
151 + diagnostic.goto_next()
152 + end,

neovim/lua/bugabinga/fast-navigation.lua

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

neovim/lua/bugabinga/file-explorer.lua

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

neovim/lua/bugabinga/filetype.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'filetype' }(function(filetype)
3 - -- disable builtin filetype.vim
4 - vim.g.did_load_filetypes = 1
6 - -- the filetype plugins breaks expectations by other plugins by not loading
7 - -- ftdetect, like filetype.vim does.
8 - -- if that turns out to be a problem, comment these lines in, to get the old
9 - -- behaviour
10 - --
11 - -- vim.cmd[[runtime! ftdetect/*.vim]]
12 - -- vim.cmd[[runtime! ftdetect/*.lua]]
14 - filetype.setup {
15 - overrides = {
16 - extensions = {
17 - service = 'systemd',
18 - just = 'just',
19 - },
20 - literal = {
21 - justfile = 'just',
22 - Justfile = 'just',
23 - ['.justfile'] = 'just',
24 - ['.Justfile'] = 'just',
25 - },
26 - },
27 - }
28 -end)

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

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

neovim/lua/bugabinga/git-status.lua

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

neovim/lua/bugabinga/health.lua

Modified
6 6 local _ = {}
8 8 local function program_installed(name_of_executable)
9 - return (vim.fn.executable(name_of_executable) ~= 0)
9 + return (vim.fn.executable(name_of_executable) ~= 0)
12 12 local function check_program(name, name_of_executable)
13 - vim.health.report_start(name .. ' report')
14 - if program_installed(name_of_executable) then
15 - vim.health.report_ok(name_of_executable .. ' found on system')
16 - else
17 - vim.health.report_error(name .. ' is not installed on the system')
18 - end
13 + vim.health.report_start(name .. ' report')
14 + if program_installed(name_of_executable) then
15 + vim.health.report_ok(name_of_executable .. ' found on system')
16 + else
17 + vim.health.report_error(name .. ' is not installed on the system')
18 + end
21 21 _.check = function()

neovim/lua/bugabinga/icons.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want { 'nvim-web-devicons' } (function(devicons)
3 - devicons.setup {
4 - override = {
5 - sh = {
6 - icon = '',
7 - color = '#1DC123',
8 - cterm_color = '59',
9 - name = 'Sh',
10 - },
11 - toml = {
12 - icon = '',
13 - color = '#e24329',
14 - cterm_color = '59',
15 - name = 'Toml',
16 - },
17 - justfile = {
18 - icon = 'ﮧ',
19 - color = '#999eff',
20 - cterm_color = '59',
21 - name = 'Justfile',
22 - },
23 - Justfile = {
24 - icon = 'ﮧ',
25 - color = '#999eff',
26 - cterm_color = '59',
27 - name = 'Justfile',
28 - },
29 - ['.justfile'] = {
30 - icon = 'ﮧ',
31 - color = '#999eff',
32 - cterm_color = '59',
33 - name = 'Justfile',
34 - },
35 - ['.Justfile'] = {
36 - icon = 'ﮧ',
37 - color = '#999eff',
38 - cterm_color = '59',
39 - name = 'Justfile',
40 - },
41 - ['.gitattributes'] = {
42 - icon = '',
43 - color = '#e24329',
44 - cterm_color = '59',
45 - name = 'GitAttributes',
46 - },
47 - ['.gitconfig'] = {
48 - icon = '',
49 - color = '#e24329',
50 - cterm_color = '59',
51 - name = 'GitConfig',
52 - },
53 - ['.gitignore'] = {
54 - icon = '',
55 - color = '#e24329',
56 - cterm_color = '59',
57 - name = 'GitIgnore',
58 - },
59 - ['.gitlab-ci.yml'] = {
60 - icon = '',
61 - color = '#e24329',
62 - cterm_color = '166',
63 - name = 'GitlabCI',
64 - },
65 - ['.gitmodules'] = {
66 - icon = '',
67 - color = '#e24329',
68 - cterm_color = '59',
69 - name = 'GitModules',
70 - },
71 - ['diff'] = {
72 - icon = '',
73 - color = '#e24329',
74 - cterm_color = '59',
75 - name = 'Diff',
76 - },
77 - },
78 - default = true,
79 - }
80 -end)
82 ---[[ FIXME: integrate those into devicons
83 -return {
84 - kind = {
85 - Text = "",
86 - Method = "m",
87 - Function = "",
88 - Constructor = "",
89 - Field = "",
90 - Variable = "",
91 - Class = "",
92 - Interface = "",
93 - Module = "",
94 - Property = "",
95 - Unit = "",
96 - Value = "",
97 - Enum = "",
98 - Keyword = "",
99 - Snippet = "",
100 - Color = "",
101 - File = "",
102 - Reference = "",
103 - Folder = "",
104 - EnumMember = "",
105 - Constant = "",
106 - Struct = "",
107 - Event = "",
108 - Operator = "",
109 - TypeParameter = "",
110 - },
111 - type = {
112 - Array = "",
113 - Number = "",
114 - String = "",
115 - Boolean = "蘒",
116 - Object = "",
117 - },
118 - documents = {
119 - File = "",
120 - Files = "",
121 - Folder = "",
122 - OpenFolder = "",
123 - },
124 - git = {
125 - Add = "",
126 - Mod = "",
127 - Remove = "",
128 - Ignore = "",
129 - Rename = "",
130 - Diff = "",
131 - Repo = "",
132 - },
133 - ui = {
134 - ArrowClosed = "",
135 - ArrowOpen = "",
136 - Lock = "",
137 - Circle = "",
138 - BigCircle = "",
139 - BigUnfilledCircle = "",
140 - Close = "",
141 - NewFile = "",
142 - Search = "",
143 - Lightbulb = "",
144 - Project = "",
145 - Dashboard = "",
146 - History = "",
147 - Comment = "",
148 - Bug = "",
149 - Code = "",
150 - Telescope = "",
151 - Gear = "",
152 - Package = "",
153 - List = "",
154 - SignIn = "",
155 - SignOut = "",
156 - Check = "",
157 - Fire = "",
158 - Note = "",
159 - BookMark = "",
160 - Pencil = "",
161 - ChevronRight = "",
162 - Table = "",
163 - Calendar = "",
164 - CloudDownload = "",
165 - },
166 - diagnostics = {
167 - Error = "",
168 - Warning = "",
169 - Information = "",
170 - Question = "",
171 - Hint = "",
172 - },
173 - misc = {
174 - Robot = "ﮧ",
175 - Squirrel = "",
176 - Tag = "",
177 - Watch = "",
178 - },
180 -]]
181 ---

neovim/lua/bugabinga/lsp.lua

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

neovim/lua/bugabinga/module-cache.lua

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

neovim/lua/bugabinga/move-code.lua

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

neovim/lua/bugabinga/options/autocommands.lua

Modified
4 4 local auto = require 'bugabinga.std.auto'
6 6 auto 'highlight_yanked_text' {
7 7 description = 'briefly highlight yanked text',
8 8 events = 'TextYankPost',
9 9 pattern = '*',
10 - callback = function()
10 + command = function()
11 11 vim.highlight.on_yank { timeout = 500 }
12 12 end,
12 12 auto 'disable_colorcolumn_in_special_buffers' {
13 13 description = 'Hide colorcolumn in buffers, that do not show source code.',
14 14 events = { 'FileType' },
15 - --FIXME: neo-tree filetype seems not to get matched, why?
16 - pattern = 'Trouble,qf,neo-tree,help,toggleterm',
17 - callback = function()
15 + pattern = 'Trouble,qf,help,toggleterm',
16 + command = function()
18 17 vim.opt_local.colorcolumn = {}
19 18 end,
22 -auto 'change_readonly_style' {
23 - description = 'Change some highlights for readonly buffers.',
24 - events = { 'BufEnter' },
25 - callback = function()
26 - if vim.bo.readonly then
27 - -- TODO: use extmark to somehow indicate this file is readonly
28 - vim.notify 'this buffer is read-only'
29 - end
30 - end,
31 -}

neovim/lua/bugabinga/options/behaviour.lua

Modified
18 18 vim.opt.tabstop = tab_size
19 19 vim.opt.shiftwidth = tab_size
20 20 vim.opt.softtabstop = tab_size
21 +vim.opt.shiftround = true
22 +-- insert whitespace type based on whitespace on previous line
23 +vim.opt.smarttab = true
22 25 -- keep distance to borders while scrolling
23 26 vim.opt.scrolloff = 8
44 47 vim.opt.shellquote = ''
45 48 vim.opt.shellxquote = ''
47 --- insert whitespace type based on whitespace on previous line
48 -vim.opt.smarttab = true
49 50 -- highlight all search matches
50 51 vim.opt.hlsearch = true
51 52 -- enable smart case in searches
54 55 vim.opt.incsearch = true
55 56 vim.opt.showmatch = true
56 57 vim.opt.hidden = true
58 +vim.opt.wildignorecase = true
57 59 -- Show the effects of substitutions incrementally
58 60 vim.opt.inccommand = 'nosplit'
60 62 -- use ripgrep instead of grep
61 -vim.opt.grepprg = 'rg --vimgrep --no-heading --smart-case'
62 --- vim.opt.grepformat = '%f:%1:%c:%m'
63 +vim.opt.grepprg = 'rg --hidden --vimgrep --no-heading --smart-case --'
64 +vim.opt.grepformat = '%f:%l:%c:%m'
64 66 -- ask me to force failed commands
65 67 vim.opt.confirm = true

neovim/lua/bugabinga/options/file.lua

Modified
5 5 vim.opt.fileencoding = 'utf-8'
7 7 -- do not create local backup files
8 -vim.opt.backup = false
8 +vim.opt.backup = true
9 +-- by default backups are created next to the edited file.
10 +-- that tends to pollute the workspace.
11 +-- instead, backup to the second default directory only.
12 +-- neovim should create it if it does not exist.
13 +-- the double slash at the end means something important...
14 +-- i think it means to use full path as name for backup files to avoid
15 +-- collisions.
16 +vim.opt.backupdir = vim.fn.stdpath 'state' .. '/backup//'
10 --- disable swap file. this means no recovery of files after crash.
11 --- but then again multiple neovim instances are not competing for a file.
12 --- and from a security standpoint, a swap file is a risk.
13 --- but that point is moot, because i use persistent undo...
14 -vim.opt.swapfile = false
18 +-- do not make a backup before writing to a file
19 +vim.opt.writebackup = true
21 +-- save a swap file after every 100 typed characters.
22 +vim.opt.swapfile = true
23 +vim.opt.updatecount = 100
16 25 -- enable persistent undo. save undo history across neovim instances
17 26 vim.opt.undofile = true
19 --- do not make a backup before writing to a file
20 -vim.opt.writebackup = false

neovim/lua/bugabinga/options/init.lua

Modified
2 2 -- NEOVIM EDITOR OPTIONS
4 4 require 'bugabinga.options.behaviour'
5 5 require 'bugabinga.options.ui'
6 +require 'bugabinga.options.file'
6 7 require 'bugabinga.options.keymaps'
7 8 require 'bugabinga.options.autocommands'
33 34 'rrhelper',
34 35 'spellfile_plugin',
35 36 'matchit',
36 - --'matchparen',
37 + 'matchparen',
38 39 for _, plugin in pairs(disabled_built_ins) do
39 40 vim.g['loaded_' .. plugin] = 1

neovim/lua/bugabinga/options/keymaps.lua

Modified
1 +local map = require 'bugabinga.std.keymap'
1 2 -- set <SPACE> as leader key
2 -vim.keymap.set('', '<SPACE>', '<NOP>', { silent = true })
3 +map {
4 + mode = map.MODE.ALL,
5 + keys = map.KEY.SPACE,
6 + command = map.COMMAND.NOP,
7 + visible = false,
8 +}
3 9 vim.g.mapleader = ' '
4 10 vim.g.maplocalleader = ' '
6 12 -- disable default ENTER binding
7 -vim.keymap.set('', '<CR>', '<NOP>', { silent = true })
13 +map {
14 + mode = map.MODE.ALL,
15 + keys = map.KEY.ENTER,
16 + command = map.COMMAND.NOP,
17 + visible = false,
9 20 -- disable command history keymap, because i fatfinger it too often
10 21 -- FIXME: these seem to disable the binding only partially.
11 22 -- when pressing q: "fast", it is disabled.
12 23 -- when pausing between q and :, the binding still opens command history.
13 --- this may be relatred to the timeoutlen setting?
14 -vim.keymap.set('', 'q:', '<NOP>', { silent = true })
15 -vim.keymap.set('', 'q/', '<NOP>', { silent = true })
16 -vim.keymap.set('', 'Q', '<NOP>', { silent = true })
24 +-- this may be related to the timeoutlen setting?
25 +map {
26 + mode = map.MODE.ALL,
27 + keys = 'q:',
28 + command = map.COMMAND.NOP,
29 + visible = false,
31 +map {
32 + mode = map.MODE.ALL,
33 + keys = 'q/',
34 + command = map.COMMAND.NOP,
35 + visible = false,
37 +map {
38 + mode = map.MODE.ALL,
39 + keys = 'Q',
40 + command = map.COMMAND.NOP,
41 + visible = false,
18 43 -- disable them evil arrows
19 -vim.keymap.set('', '<Up>', '<NOP>', { silent = true })
20 -vim.keymap.set('', '<Down>', '<NOP>', { silent = true })
21 -vim.keymap.set('', '<Left>', '<NOP>', { silent = true })
22 -vim.keymap.set('', '<Right>', '<NOP>', { silent = true })
44 +map {
45 + mode = map.MODE.ALL,
46 + keys = map.KEY.UP,
47 + command = map.COMMAND.NOP,
48 + visible = false,
50 +map {
51 + mode = map.MODE.ALL,
52 + keys = map.KEY.DOWN,
53 + command = map.COMMAND.NOP,
54 + visible = false,
56 +map {
57 + mode = map.MODE.ALL,
58 + keys = map.KEY.LEFT,
59 + command = map.COMMAND.NOP,
60 + visible = false,
62 +map {
63 + mode = map.MODE.ALL,
64 + keys = map.KEY.RIGHT,
65 + command = map.COMMAND.NOP,
66 + visible = false,
69 +local function open_link_under_cursor()
70 + ---@diagnostic disable-next-line: missing-parameter
71 + local file_under_cursor = vim.fn.expand '<cfile>'
72 + --check that it vaguely resembles an URI
73 + if file_under_cursor and file_under_cursor:match '%a+://.+' then
74 + local Job = require 'plenary.job'
75 + Job:new({
76 + command = 'firefox',
77 + args = { file_under_cursor },
78 + on_exit = function()
79 + vim.notify('Openend ' .. file_under_cursor)
80 + end,
81 + }):start()
82 + end
83 +end
85 +map {
86 + description = 'Open web link under cursor in browser',
87 + category = map.CATEGORY.NAVIGATION,
88 + mode = map.MODE.NORMAL,
89 + keys = 'gx',
90 + command = open_link_under_cursor,
93 +map {
94 + description = 'Dismiss current notifications',
95 + category = map.CATEGORY.NOTIFY,
96 + mode = map.MODE.NORMAL,
97 + keys = map.KEY.ESCAPE,
98 + command = function()
99 + pcall(vim.notify.dismiss)
100 + end,

neovim/lua/bugabinga/options/ui.lua

Modified
1 1 -- show trailing whitespace
2 2 vim.opt.list = true
3 -vim.opt.listchars:append 'trail:⋅'
4 -vim.opt.listchars:append 'lead:⋅'
3 +vim.opt.listchars = {
4 + space = '⋅',
5 + eol = '↴',
6 + tab = '__',
7 + trail = '•',
8 + extends = '❯',
9 + precedes = '❮',
10 + nbsp = '_',
6 13 -- do not spam the cmdline with every little input
7 14 vim.opt.showcmd = false
16 23 -- what is a ruler? me?
17 24 vim.opt.ruler = false
19 --- do not echo every little thing
20 -vim.opt.showcmd = false
22 26 -- avoid jitter by keeping status area big
23 27 vim.opt.laststatus = 3
25 29 -- hide weird symbol at end of buffer
26 -vim.opt.fillchars:append 'eob: '
30 +vim.opt.fillchars = {
31 + eob = ' ',
32 + fold = ' ',
33 + diff = '╱',
28 36 -- hide output of insert completion popup in status
29 37 vim.opt.shortmess:append 'c'
31 --- hide cmd window to give status more room
32 -vim.opt.cmdheight = 0
39 +-- show cmd window to prevent jitter ui
40 +vim.opt.cmdheight = 1
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.
35 43 vim.opt.conceallevel = 0
37 45 -- I do not care for folding
46 54 -- pop up menu height
47 55 vim.opt.pumheight = 10
57 +-- transparent popups and floating windows
58 +vim.opt.pumblend = 5
59 +vim.opt.winblend = 5
49 61 -- hide the mode indicator in status
50 62 vim.opt.showmode = false
56 68 vim.opt.termguicolors = true
57 69 vim.opt.lazyredraw = true
71 +-- cursor
72 +vim.opt.guicursor = 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50'
59 74 -- font
60 -vim.opt.guifont = 'BlexMono Nerd Font:h16:antialias=true'
75 +vim.opt.guifont = 'BlexMono Nerd Font:h11:antialias=true'
62 77 -- neovide only options
63 78 if vim.g.neovide then

neovim/lua/bugabinga/plugins/headless.lua

Modified
3 3 local auto = require 'bugabinga.std.auto'
4 4 local paq = require 'bugabinga.plugins'
6 6 auto 'close_neovim' {
7 7 description = 'Close neovim after updating plugins.',
8 - events = { 'User PaqDoneSync' },
8 + events = { 'User' },
9 + pattern = 'PaqDoneSync',
9 10 command = 'quit',

neovim/lua/bugabinga/plugins/init.lua

Modified
168 168 -- motions around object
169 169 'kylechui/nvim-surround',
171 +-- local plugins. they may override plugins from above
172 +vim.opt.runtimepath:append '~/Workspace/lsp-zero.nvim'
171 173 return paq

neovim/lua/bugabinga/repl.lua

Deleted
deleted file mode 100644
1 -local want = require 'bugabinga.std.want'
2 -want {
3 - 'iron.core',
4 - 'iron.view',
5 -}(function(core, view)
6 - core.setup {
7 - config = {
8 - -- If iron should expose `<plug>(...)` mappings for the plugins
9 - should_map_plug = false,
10 - -- Whether a repl should be discarded or not
11 - scratch_repl = true,
12 - repl_open_cmd = view.curry.right(80),
13 - -- how the REPL window will be opened, the default is opening
14 - -- a float window of height 40 at the bottom.
15 - },
16 - -- Iron doesn't set keymaps by default anymore. Set them here
17 - -- or use `should_map_plug = true` and map from you vim files
18 - -- FIXME: setup own keybinds
19 - keymaps = {
20 - send_motion = '<space>sc',
21 - visual_send = '<space>sc',
22 - send_file = '<space>sf',
23 - send_line = '<space>sl',
24 - send_mark = '<space>sm',
25 - mark_motion = '<space>mc',
26 - mark_visual = '<space>mc',
27 - remove_mark = '<space>md',
28 - cr = '<space>s<cr>',
29 - interrupt = '<space>s<space>',
30 - exit = '<space>sq',
31 - clear = '<space>cl',
32 - },
33 - -- If the highlight is on, you can change how it looks
34 - -- For the available options, check nvim_set_hl
35 - highlight = {
36 - italic = true,
37 - },
38 - }
39 -end)

neovim/lua/bugabinga/search.lua

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

neovim/lua/bugabinga/smooth-scroll.lua

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

neovim/lua/bugabinga/start-screen.lua

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

neovim/lua/bugabinga/std/auto.lua

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

neovim/lua/bugabinga/std/icon.lua

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

neovim/lua/bugabinga/std/keymap.lua

Modified
1 --- this is a facade API over keybindings, so that i can more freely experiments
2 --- with different plugins and newer neovim APIs.
3 ---
4 --- this module returns 2 functions.
5 --- the first takes a keybinding and collects them.
6 --- the second function converts the declared keybindings into actual mappings
7 --- neovim and other plugins.
8 ---
9 --- a keybinging is expected to have the following structure:
10 --- {
11 --- name = "Open Command Center",
12 --- description = "Opens the Command Center with Telescope to show all available keybound commands.",
13 --- category = nil,
14 --- mode = "n",
15 --- map = "<C-P>",
16 --- map_options = { silent = true, noremap = true },
17 --- command = function() require'telescope'.run("command_center") end,
18 --- }
19 ---
20 --- use the first function throughout the configuration to declare keybindings.
21 --- call the second function at the end of the configuration to actually apply
22 --- the keybindings to the system.
24 1 local want = require 'bugabinga.std.want'
2 +local bind = want { 'command_center' } (function(command_center)
3 + return function(map)
4 + map.visible = map.visible == nil or map.visible
5 + map.options = map.options or {}
6 + local options = vim.tbl_extend('keep', map.options, {
7 + silent = true,
8 + desc = map.description,
9 + })
10 + if map.visible then
11 + local keybindings = {}
12 + if type(map.mode) == 'table' then
13 + for _, mode in ipairs(map.mode) do
14 + table.insert(keybindings, { mode, map.keys })
15 + end
16 + else
17 + keybindings = { map.mode, map.keys }
18 + end
19 + command_center.add({
20 + {
21 + description = map.description,
22 + category = map.category,
23 + cmd = map.command,
24 + keybindings = keybindings,
25 + },
26 + }, command_center.mode.ADD_ONLY)
27 + end
28 + -- use neovim api to add keybind instead of command_center, because it has
29 + -- nicer defaults.
30 + vim.keymap.set(map.mode, map.keys, map.command, options)
31 + end
32 +end)
26 -local keybindings = {}
28 -local function add(keybinding)
29 - table.insert(keybindings, keybinding)
30 -end
32 --- the goal of this function is to process a list of keybinds.
33 --- those keybinds need to:
34 --- * be added to Command Center
35 --- * be transformed into a tree and feed to the Hydra
36 --- * left-over keybinds, that do not form a tree, need to be mapped manually
37 -local function build()
38 - -- registering keybinds in command center.
39 - -- this will NOT YET apply the keymap in neovim.
40 - want { 'command_center' }(function(command_center)
41 - local converted_bindings_for_command_center = {}
42 - --example of a command-center keybind table
43 - --{
44 - -- description = "Open git diffview",
45 - -- cmd = "<CMD>DiffviewOpen<CR>",
46 - -- keybindings = { "n", "<leader>gd", noremap },
47 - -- category = "git",
48 - -- }
49 - for _, keybind in pairs(keybindings) do
50 - local converted = {
51 - description = keybind.description,
52 - category = keybind.category,
53 - cmd = keybind.command,
54 - keybindings = { keybind.mode, keybind.map, keybind.map_options },
55 - }
56 - table.insert(converted_bindings_for_command_center, converted)
57 - end
58 - command_center.add(converted_bindings_for_command_center, command_center.mode.ADD_ONLY)
59 - end)
61 - -- FIXME feed the beast!
63 - -- Manually map the left-over keybindings with the neovim api.
64 - -- It is assumed, that all keybinds eaten by the Hydra are removed from
65 - -- `keybindings`.
67 - for _, keybind in pairs(keybindings) do
68 - vim.keymap.set(keybind.mode, keybind.map, keybind.command, keybind.map_options)
69 - end
70 -end
72 -return {
73 - add = add,
74 - build = build,
75 -}
34 +return setmetatable({
35 + MODE = {
36 + NORMAL = 'n',
37 + VISUAL = 'x',
38 + ALL = '',
39 + },
40 + KEY = {
41 + LEADER = '<LEADER>',
42 + SPACE = '<SPACE>',
43 + ENTER = '<CR>',
44 + ESCAPE = '<ESC>',
45 + UP = '<Up>',
46 + DOWN = '<Down>',
47 + LEFT = '<Left>',
48 + RIGHT = '<Right>',
49 + PAGE_UP = '<PageUp>',
50 + PAGE_DOWN = '<PageDown>',
51 + SCROLL_WHEEL_UP = '<ScrollWheelUp>',
52 + SCROLL_WHEEL_DOWN = '<ScrollWheelDown>',
53 + CONTROL_B = '<C-b>',
54 + CONTROL_D = '<C-d>',
55 + CONTROL_F = '<C-f>',
56 + CONTROL_U = '<C-u>',
57 + SHIFT_G = 'G',
58 + SHIFT_N = 'N',
59 + CONTROL_SHIFT_F = '<C-F>',
60 + ALT_H = '<A-h>',
61 + ALT_J = '<A-j>',
62 + ALT_K = '<A-k>',
63 + ALT_L = '<A-l>',
64 + ALT_SHIFT_H = '<A-H>',
65 + ALT_SHIFT_J = '<A-J>',
66 + ALT_SHIFT_K = '<A-K>',
67 + ALT_SHIFT_L = '<A-L>',
68 + F2 = '<F2>',
69 + F4 = '<F4>',
70 + F6 = '<F6>',
71 + F7 = '<F7>',
72 + F8 = '<F8>',
73 + F12 = '<F12>',
74 + CARET = '^',
75 + DOLLAR = '$',
76 + MULTIPLY = '*',
77 + HASHTAG = '#',
78 + OPEN_CURLY_BRACKET = '{',
79 + CLOSE_CURLY_BRACKET = '}',
80 + ZERO = '0',
81 + B = 'b',
82 + C = 'c',
83 + D = 'd',
84 + E = 'e',
85 + F = 'f',
86 + G = 'g',
87 + I = 'i',
88 + J = 'j',
89 + L = 'l',
90 + N = 'n',
91 + K = 'k',
92 + P = 'p',
93 + R = 'r',
94 + S = 's',
95 + T = 't',
96 + V = 'v',
97 + },
98 + COMMAND = {
99 + NOP = function() end,
100 + },
101 + CATEGORY = {
102 + NAVIGATION = 'navigation',
103 + EDITING = 'editing',
104 + NOTIFY = 'notify',
105 + VIEW = 'view',
106 + SEARCH = 'search',
107 + SCROLL = 'scroll',
108 + PROBLEMS = 'problems',
109 + LSP = 'lsp',
110 + VERSION_CONTROL = 'vcs',
111 + },
112 +}, {
113 + __call = function(_, ...)
114 + return bind(...)
115 + end,

neovim/lua/bugabinga/std/project.lua

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

neovim/lua/bugabinga/surround.lua

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

neovim/lua/bugabinga/terminal.lua

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

neovim/lua/bugabinga/todo.lua

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

neovim/lua/bugabinga/treesitter.lua

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

neovim/neovim.toml

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

neovim/neovim.yml

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

neovim/startuptime/x230_2022_07_02_12_20_21.txt

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

neovim/startuptime/x230_2022_07_05_08_27_43.txt

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

neovim/startuptime/x230_2022_07_05_08_31_54.txt

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

neovim/startuptime/x230_2022_07_15_13_34_39.txt

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

neovim/startuptime/x230_2022_07_17_17_59_39.txt

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

nushell/config.nu

Modified
84 84 sync_history_on_enter: true # Enable to share the history between multiple sessions, else you have to close the session to persist history to file
85 85 menus: [
86 86 # Configuration for default nushell menus
87 - # Note the lack of souce parameter
87 + # Note the lack of source parameter
89 89 name: completion_menu
90 90 only_buffer_difference: false

nushell/env.nu

Modified
7 7 let-env NOTES = if $env.WIN32? { "N:/" } else { "~/Notes" | path expand }
8 8 let-env CARGO_HOME = ( "~/.cargo" | path expand )
10 +# theme for ls and other programs, that use LS_COLORS
11 +let-env LS_COLORS = (vivid generate nord)
10 13 # Specifies how environment variables are:
11 14 # - converted from a string to a value on Nushell startup (from_string)
12 15 # - converted from a value back to a string when running external commands (to_string)
32 35 let-env NU_PLUGIN_DIRS = [
33 36 ($nu.config-path | path dirname | path join 'plugins'),
34 37 ($env.CARGO_HOME | path join 'bin'),
35 -]

nushell/modules/prompt.nu

Modified
137 137 # The prompt indicators are environmental variables that represent
138 138 # the state of the prompt
139 139 export env PROMPT_INDICATOR { $"(ansi purple) (char prompt) (ansi reset)" }
140 -export env PROMPT_INDICATOR_VI_INSERT { $"(ansi purple_reverse) (char pipe) (ansi reset)" }
141 -export env PROMPT_INDICATOR_VI_NORMAL { $"(ansi purple_bold) (char prompt) (ansi reset)" }
142 -export env PROMPT_MULTILINE_INDICATOR { $"(ansi purple_dimmed)(char prompt)(char prompt) (ansi reset)" }
140 +export env PROMPT_INDICATOR_VI_INSERT { $"(ansi purple) (char pipe) (ansi reset)" }
141 +export env PROMPT_INDICATOR_VI_NORMAL { $"(ansi purple) (char prompt) (ansi reset)" }
142 +export env PROMPT_MULTILINE_INDICATOR { $"(ansi purple) (char prompt)(char prompt) (ansi reset)" }

river/init

Modified
19 19 ctrl="Control"
21 21 riverctl map normal $super Return spawn wezterm
22 +riverctl map normal $super+Shift Return spawn foot
22 23 riverctl map normal $super B spawn firefox
23 -riverctl map normal $super asciicircum spawn 'fuzzel --terminal "wezterm start"'
24 +riverctl map normal $super grave spawn 'fuzzel --terminal "wezterm start"'
25 26 # close the focused view
26 27 riverctl map normal $super Q close

ssh/config

Modified
11 11 User git
12 12 IdentityFile ~/.ssh/github.key
14 +Host codeberg.org
15 + HostName codeberg.org
16 + User git
17 + IdentityFile ~/.ssh/codeberg.key
15 20 # catch-all pattern
16 21 Host *
17 22 User root
18 23 Compression yes
24 + AddKeysToAgent yes

tools/cargo-tools.nu

Modified
10 10 [ "inferno" "inferno" [] ]
11 11 [ "nu" "nu" [ "--features" "extra" ] ]
12 12 [ "sd" "sd" [] ]
13 - [ "cbs" "cbs" [] ]
14 13 [ "ouch" "ouch" [] ]
15 14 [ "fd-find" "fd" [] ]
16 15 [ "choose", "choose", [] ]
68 -let cargo_git_crates = [
69 - "https://github.com/mosmeh/indexa"
72 67 def install-helix-editor [] {
73 68 cd $env.WORKSPACE
74 69 if ( $env.WORKSPACE | path join "helix/.git" | path exists ) {
92 87 echo $"($crate.name) already installed"
95 - # crates, that are not even on crates.io are not likely to be packeged anywhere else.
96 - # so we skip the check if the binary is already in path
97 - $cargo_git_crates | each { |crate|
98 - cargo install --locked --git $crate
99 - }
100 90 install-helix-editor

topgrade/topgrade.linux.toml

Modified
45 45 # install tools from cargo, that are not already in path
46 46 # TODO: this could be annoying when setting up a machine first time?
47 47 "01 - Install Cargo Tools" = "nu --env-config ~/.config/nushell/env.nu ~/Workspace/dotfiles/tools/cargo-tools.nu"
49 -# Dateisystem-Indexer ix erfrischen
50 -"02 - Indexa Update" = "ix --update"

topgrade/topgrade.windows.toml

Modified
44 44 "01 - Install Cargo Tools" = "nu --env-config ~/AppData/Roaming/nushell/env.nu W:/dotfiles/tools/cargo-tools.nu"
45 45 "02 - Advantage-PM Client" = "nu X:/update_apm_client.nu"
46 46 "03 - MeMate" = "nu X:/update_memate.nu"
47 -"04 - Indexa Update" = "ix --update"

wezterm/bugabinga/nugu.lua

Added
new file mode 100644
1 +return {
2 + ['nugu-dark'] = {
3 + -- The default text color
4 + foreground = '#c9c9c9',
5 + -- The default background color
6 + background = '#131313',
8 + -- Overrides the cell background color when the current cell is occupied by the
9 + -- cursor and the cursor style is set to Block
10 + cursor_bg = '#814eaa',
11 + -- Overrides the text color when the current cell is occupied by the cursor
12 + cursor_fg = '#e0e0e0',
13 + -- Specifies the border color of the cursor when the cursor style is set to Block,
14 + -- or the color of the vertical or horizontal bar when the cursor style is set to
15 + -- Bar or Underline.
16 + cursor_border = '#8BABA5',
18 + -- the foreground color of selected text
19 + selection_fg = '#fefefe',
20 + -- the background color of selected text
21 + selection_bg = '#8BABA5',
23 + -- The color of the scrollbar "thumb"; the portion that represents the current viewport
24 + scrollbar_thumb = '#287F70',
26 + -- The color of the split lines between panes
27 + split = '#287F70',
29 + ansi = {
30 + '#113131', -- black
31 + '#A21300', -- red
32 + '#56968C', -- green
33 + '#A2A213', -- yellow
34 + '#2F77AE', -- blue
35 + '#992FAE', -- magenta
36 + '#13A2A2', -- cyan
37 + '#31ae99', -- white
38 + },
40 + brights = {
41 + '#638787',
42 + '#e17769',
43 + '#cacaca',
44 + '#d4d48a',
45 + '#b4c5d1',
46 + '#ccb4d1',
47 + '#8ad4d4',
48 + '#b6d1cd',
49 + },
51 + -- Since: 20220319-142410-0fcdea07
52 + -- When the IME, a dead key or a leader key are being processed and are effectively
53 + -- holding input pending the result of input composition, change the cursor
54 + -- to this color to give a visual cue about the compose state.
55 + compose_cursor = '#2F77AE',
56 + visual_bell = '#A21300',
57 + },
58 + ['nugu-light'] = {
59 + -- The default text color
60 + foreground = '#131313',
61 + -- The default background color
62 + background = '#c9c9c9',
64 + -- Overrides the cell background color when the current cell is occupied by the
65 + -- cursor and the cursor style is set to Block
66 + cursor_bg = '#814eaa',
67 + -- Overrides the text color when the current cell is occupied by the cursor
68 + cursor_fg = '#e0e0e0',
69 + -- Specifies the border color of the cursor when the cursor style is set to Block,
70 + -- or the color of the vertical or horizontal bar when the cursor style is set to
71 + -- Bar or Underline.
72 + cursor_border = '#8BABA5',
74 + -- the foreground color of selected text
75 + selection_fg = '#fefefe',
76 + -- the background color of selected text
77 + selection_bg = '#8BABA5',
79 + -- The color of the scrollbar "thumb"; the portion that represents the current viewport
80 + scrollbar_thumb = '#287F70',
82 + -- The color of the split lines between panes
83 + split = '#287F70',
85 + ansi = {
86 + '#113131', -- black
87 + '#A21300', -- red
88 + '#56968C', -- green
89 + '#A2A213', -- yellow
90 + '#2F77AE', -- blue
91 + '#992FAE', -- magenta
92 + '#13A2A2', -- cyan
93 + '#31ae99', -- white
94 + },
96 + brights = {
97 + '#638787',
98 + '#e17769',
99 + '#cacaca',
100 + '#d4d48a',
101 + '#b4c5d1',
102 + '#ccb4d1',
103 + '#8ad4d4',
104 + '#b6d1cd',
105 + },
107 + -- Since: 20220319-142410-0fcdea07
108 + -- When the IME, a dead key or a leader key are being processed and are effectively
109 + -- holding input pending the result of input composition, change the cursor
110 + -- to this color to give a visual cue about the compose state.
111 + compose_cursor = '#2F77AE',
112 + visual_bell = '#A21300',
113 + },

wezterm/selene.toml

Added
new file mode 100644
1 +std = "lua51"

wezterm/stylua.toml

Added
new file mode 100644
1 +column_width = 120
2 +line_endings = "Unix"
3 +indent_type = "Spaces"
4 +indent_width = 2
5 +quote_style = "AutoPreferSingle"
6 +call_parentheses = "None"

wezterm/wezterm.lua

Modified
1 -local wez = require("wezterm")
1 +local wez = require 'wezterm'
2 +local nugu = require 'bugabinga.nugu'
4 +local color_scheme = 'nugu-dark' -- not there yet ;)
5 +local color_schemes = nugu
3 7 local hostname = wez.hostname()
4 8 local enable_wayland = false
5 -local window_decorations = "RESIZE"
6 -local color_scheme = "nugu-dark" -- not there yet ;)
7 -local color_schemes = {
8 - ["nugu-dark"] = {
9 - -- The default text color
10 - foreground = "#c9c9c9",
11 - -- The default background color
12 - background = "#131313",
9 +local window_decorations = 'RESIZE'
10 +local font_size = 11.0
11 +local font = wez.font('BlexMono Nerd Font', { weight = 'Regular', stretch = 'Condensed' })
14 - -- Overrides the cell background color when the current cell is occupied by the
15 - -- cursor and the cursor style is set to Block
16 - cursor_bg = "#56968C",
17 - -- Overrides the text color when the current cell is occupied by the cursor
18 - cursor_fg = "#f0f0f0",
19 - -- Specifies the border color of the cursor when the cursor style is set to Block,
20 - -- or the color of the vertical or horizontal bar when the cursor style is set to
21 - -- Bar or Underline.
22 - cursor_border = "#52ad70",
24 - -- the foreground color of selected text
25 - selection_fg = "#ffffff",
26 - -- the background color of selected text
27 - selection_bg = "#287F70",
29 - -- The color of the scrollbar "thumb"; the portion that represents the current viewport
30 - scrollbar_thumb = "#56968C",
32 - -- The color of the split lines between panes
33 - split = "#31ae99",
35 - ansi = { "#18574C", "#A21300", "#31ae99", "#A2A213", "#818181", "#13A2A2", "#8BABA5", "#f0f0f0" },
36 - brights = { "#8BABA5", "#A21300", "#aefeff", "#A2A213", "#13A2A2", "#992FAE", "#2F77AE", "#ffffff" },
38 - -- Since: 20220319-142410-0fcdea07
39 - -- When the IME, a dead key or a leader key are being processed and are effectively
40 - -- holding input pending the result of input composition, change the cursor
41 - -- to this color to give a visual cue about the compose state.
42 - compose_cursor = "#2F77AE",
43 - visual_bell = "#A21300",
44 - },
45 -}
46 -local font_size = 12.0
47 -local font = wez.font("BlexMono Nerd Font", { weight = "Medium" })
49 -if hostname == "x230" then
13 +if hostname == 'x230' then
50 14 enable_wayland = true
51 - window_decorations = "NONE"
52 - font_size = 11.0
53 -elseif hostname == "pop-os" then
54 - font_size = 13.0
55 -elseif hostname == "PC-00625" then
56 - window_decorations = "TITLE|RESIZE"
57 - font_size = 11.0
58 - font = wez.font("CaskaydiaCove NF")
15 + window_decorations = 'NONE'
16 +elseif hostname == 'pop-os' then
17 + font_size = 12
18 +elseif hostname == 'PC-00625' then
19 + font_size = 12
20 + window_decorations = 'TITLE|RESIZE'
61 23 return {
63 25 font_size = font_size,
64 26 color_scheme = color_scheme,
65 27 color_schemes = color_schemes,
66 - default_prog = { "nu" },
28 + default_prog = { 'nu' },
67 29 window_decorations = window_decorations,
68 30 enable_tab_bar = true,
69 31 hide_tab_bar_if_only_one_tab = true,
70 32 check_for_updates = false,
71 33 show_update_window = false,
72 - audible_bell = "Disabled",
34 + audible_bell = 'Disabled',
73 35 visual_bell = {
74 36 fade_in_duration_ms = 75,
75 37 fade_out_duration_ms = 75,
76 - target = "CursorColor",
38 + target = 'CursorColor',
78 40 tab_max_width = 24,
79 41 enable_wayland = enable_wayland,