repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: use filetype.lua

d5d08ce0a39b8741ec38ecff23c8906909b33a96

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (18)

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 + -- lua = function(path)
15 + -- if path:match 'neovim' and path:match 'dotfiles' then
16 + -- -- TODO: a custom file type for lua neovim configuration can be used to
17 + -- -- start the lua lsp in a specific mode to neovim
18 + -- return 'neovim.lua'
19 + -- end
20 + -- return 'lua'
21 + -- end,
22 + },
23 + filename = {
24 + ['justfile'] = 'just',
25 + ['Justfile'] = 'just',
26 + ['.justfile'] = 'just',
27 + ['.Justfile'] = 'just',
28 + },

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'
10 +-- TODO C-V open markdown preview
12 +want { 'toggleterm.terminal' } (function(toggleterm)
13 + local Terminal = toggleterm.Terminal
14 + -- local buffer_content = vim.api.nvim_buf_get_lines(0, 0, -1, false)
15 + local file = vim.api.nvim_buf_get_name(0)
16 + local mdcat = Terminal:new {
17 + cmd = 'mdcat ' .. file,
18 + direction = 'float',
19 + float_opts = { border = 'curved' },
20 + start_in_insert = false,
21 + on_open = function(terminal)
22 + -- terminal:send(buffer_content)
23 + end,
24 + }
25 + map {
26 + name = 'Open Markdown Preview',
27 + description = 'Opens a preview of the current markdown buffer in a terminal.',
28 + category = map.CATEGORY.MARKDOWN,
29 + mode = map.MODE.NORMAL,
30 + keys = '<C-v>',
31 + command = function()
32 + mdcat:toggle()
33 + end,
34 + }
35 +end)

neovim/init.lua

Modified
8 8 -- ▀▀▀ █ █ ██ █
9 9 -- ▀ ▀
11 -local profiler = require 'plenary.profile'
12 -profiler.start('profile.log', { flame = true })
14 11 -- the order of the first module to load is non-obvious.
15 12 -- we want to load the plugins first, because the config depends on those.
16 13 -- but we also want to load the module-cache plugin first, in order to benefit from caching most modules.
49 46 require 'bugabinga.problems'
51 48 -- load editor features
52 -require 'bugabinga.filetype'
53 49 require 'bugabinga.move-code'
54 50 require 'bugabinga.last-known-position'
55 51 require 'bugabinga.fast-navigation'
67 63 -- lsp
68 64 require 'bugabinga.lsp'
70 --- should be one of the last things to do.
71 --- applies all the declared keybindings to neovim.
72 -local keymap_build = require('bugabinga.std.keymap').build
73 -keymap_build()
75 -profiler.stop()
76 66 -- TODO:
77 67 -- [ ] DAP
68 +-- [ ] preview multimedia with telescope
78 69 -- [ ] icon facade: icon.get("name")
70 +-- [ ] make keymap facade immediate and support buffer local binds
79 71 -- [ ] put all keybinds into facade
80 72 -- [ ] hydra cycle buffers
81 --- [ ] make keymap facade immediate and support buffer local binds
82 --- [ ] change style for read only files
83 73 -- [ ] add fstabfmt to null-ls
84 --- [ ] undofile not work?
85 --- [ ] why does redo not work?
86 74 -- [ ] add keybind to dismiss notify window
87 75 -- [ ] start a toggleterm with: watch <buffer> { clear; mdcat <buffer> }
88 76 -- [ ] load plugins/init.lua and sync on write. reload init.lua?
89 --- [ ] disable gomove in special buffers
90 --- [ ] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
77 +-- [ ] change style for read only files
78 +-- [~] disable gomove in special buffers
79 +-- [x] replace filetype.lua plugin with builtin: https://neovim.io/news/2022/04
80 +-- [x] undofile not work?
81 +-- [x] why does redo not work?
91 82 -- [x] JDTLS
92 83 -- [~] bindings for luadev
93 84 -- [~] close toogleterms on quit

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 3 want { 'telescope', 'command_center', 'dressing' }(function(telescope, command_center, dressing)
4 4 -- Command Center gets loaded here to configure it in the context of Telescope.
8 8 map {
9 9 name = 'Open Command Center',
10 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,
11 + mode = map.MODE.NORMAL,
12 + keys = '<C-p>',
15 13 command = function()
16 14 telescope.extensions.command_center.command_center()
17 15 end,

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'
16 17 -- Disable some in built plugins completely
17 18 local disabled_built_ins = {
18 - 'netrw',
19 - 'netrwPlugin',
20 - 'netrwSettings',
21 - 'netrwFileHandlers',
22 - 'gzip',
23 - 'zip',
24 - 'zipPlugin',
25 - 'tar',
26 - 'tarPlugin',
27 - 'getscript',
28 - 'getscriptPlugin',
29 - 'vimball',
30 - 'vimballPlugin',
31 - '2html_plugin',
32 - 'logipat',
33 - 'rrhelper',
34 - 'spellfile_plugin',
35 - 'matchit',
36 - --'matchparen',
19 + 'netrw',
20 + 'netrwPlugin',
21 + 'netrwSettings',
22 + 'netrwFileHandlers',
23 + 'gzip',
24 + 'zip',
25 + 'zipPlugin',
26 + 'tar',
27 + 'tarPlugin',
28 + 'getscript',
29 + 'getscriptPlugin',
30 + 'vimball',
31 + 'vimballPlugin',
32 + '2html_plugin',
33 + 'logipat',
34 + 'rrhelper',
35 + 'spellfile_plugin',
36 + 'matchit',
37 + --'matchparen',
38 39 for _, plugin in pairs(disabled_built_ins) do
39 - vim.g['loaded_' .. plugin] = 1
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,
24 69 local function open_link_under_cursor()
25 - local file_under_cursor = vim.fn.expand '<cfile>'
26 - --check that it vaguely resembles an URI
27 - if file_under_cursor and file_under_cursor:match '%a+://.+' then
28 - local Job = require 'plenary.job'
29 - Job
30 - :new({
31 - --FIXME: a x-platform command is needed here
32 - command = 'firefox',
33 - args = { file_under_cursor },
34 - on_exit = function(status, code)
35 - print(status:result(), code)
36 - vim.notify('Openend ' .. file_under_cursor)
37 - end,
38 - })
39 - :start()
40 - end
70 + local file_under_cursor = vim.fn.expand '<cfile>'
71 + --check that it vaguely resembles an URI
72 + if file_under_cursor and file_under_cursor:match '%a+://.+' then
73 + local Job = require 'plenary.job'
74 + Job
75 + :new({
76 + --FIXME: a x-platform command is needed here
77 + command = 'firefox',
78 + args = { file_under_cursor },
79 + on_exit = function(status, code)
80 + print(status:result(), code)
81 + vim.notify('Openend ' .. file_under_cursor)
82 + end,
83 + })
84 + :start()
85 + end
43 -vim.keymap.set('n', 'gx', open_link_under_cursor, { silent = true })
88 +map {
89 + description = 'Open web link under cursor in browser',
90 + category = map.CATEGORY.NAVIGATION,
91 + mode = map.MODE.NORMAL,
92 + keys = 'gx',
93 + command = open_link_under_cursor,
96 +map {
97 + description = 'Dismiss current notifications',
98 + category = map.CATEGORY.NOTIFY,
99 + mode = map.MODE.NORMAL,
100 + keys = map.KEY.ESCAPE,
101 + command = function()pcall(vim.notify.dismiss)end,

neovim/lua/bugabinga/plugins/init.lua

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

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 or true
5 + map.options = map.options or {}
6 + local options = vim.tbl_extend('keep', map.options, { silent = true })
7 + if map.visible then
8 + command_center.add({
9 + name = map.name,
10 + description = map.description,
11 + category = map.category,
12 + cmd = map.command,
13 + keybindings = { map.mode, map.keys, options },
14 + }, command_center.mode.ADD_ONLY)
15 + end
16 + -- use neovim api to add keybind instead of command_center, because it has
17 + -- nicer defaults.
18 + vim.keymap.set(map.mode, map.keys, map.command, options)
19 + end
20 +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 -}
22 +return setmetatable({
23 + MODE = {
24 + NORMAL = 'n',
25 + ALL = '',
26 + },
27 + KEY = {
28 + SPACE = '<SPACE>',
29 + ENTER = '<CR>',
30 + ESCAPE = '<ESC>',
31 + UP = '<Up>',
32 + DOWN = '<Down>',
33 + LEFT = '<Left>',
34 + RIGHT = '<Right>',
35 + },
36 + COMMAND = {
37 + NOP = function() end,
38 + },
39 + CATEGORY = {
40 + NAVIGATION = 'navigation',
41 + NOTIFY = 'notify',
42 + },
43 +},{
44 + __call = function(_, ...) return bind(...) end,
45 +})

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

nushell/config.nu

Modified
85 85 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
86 86 menus: [
87 87 # Configuration for default nushell menus
88 - # Note the lack of souce parameter
88 + # Note the lack of source parameter
90 90 name: completion_menu
91 91 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 -]

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,