dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Compare Notes Search neovim: better startup perf on win32
2aaa2b484ffa416860c3e5a81fe484f23129fb24
Oliver Krylow <o.krylow@isp-insoft.de > · 19 Mar 2024
unsigned
Browse files Compare with HEAD
Changed files (8) 41 - * replace nugu with nugu_fresh
42 - * write plugin to parse lsp settings locally and apply them
43 - * is there a use case for a plugin that parses local plugin configuration overrides?
44 - * kill custom lsp stuff in favor of lspconfig and try neoconf + nvim-java
41 + * which-key and lazy loaded keys are not clean yet
42 + * write plugin to parse lsp settings,plugin options and neovim settings locally and apply them ( can we repurpose editorconfig support in neovim for that?)
45 43 * does status bar fail to display if lsp fails to load?
46 44 * pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc
47 45 * use gen.ai to generate docs
neovim/lazy-lock.json Modified 2 - "Comment.nvim" : {
"branch" :
"master" ,
"commit" :
"0236521ea582747b58869cb72f70ccfa967d2e89" },
2 + "Comment.nvim" : {
"branch" :
"master" ,
"commit" :
"e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 3 "actions-preview.nvim" : {
"branch" :
"master" ,
"commit" :
"5072b1b1065a6b22bdd46b5c21780a91d6a08071" },
4 4 "better-escape.nvim" : {
"branch" :
"master" ,
"commit" :
"7e86edafb8c7e73699e0320f225464a298b96d12" },
5 5 "colorizer.nvim" : {
"branch" :
"master" ,
"commit" :
"107719885290366c893e1c1c58b7474cbeabfef6" },
8 8 "fidget.nvim" : {
"branch" :
"main" ,
"commit" :
"4e854f3299e21d1c18279add340428a97520fc44" },
9 9 "flash.nvim" : {
"branch" :
"main" ,
"commit" :
"48817af25f51c0590653bbc290866e4890fe1cbe" },
10 10 "gen.nvim" : {
"branch" :
"main" ,
"commit" :
"2cb643b1a827bcdfc665a37d5f8174249d2d5bf5" },
11 - "gitsigns.nvim" : {
"branch" :
"main" ,
"commit" :
"078041e9d060a386b0c9d3a8c7a7b019a35d3fb0" },
11 + "gitsigns.nvim" : {
"branch" :
"main" ,
"commit" :
"6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2" },
12 12 "glow.nvim" : {
"branch" :
"main" ,
"commit" :
"238070a686c1da3bccccf1079700eb4b5e19aea4" },
13 13 "heirline.nvim" : {
"branch" :
"master" ,
"commit" :
"03cff30d7e7d3ba6fdc00925f015822f79cef908" },
14 14 "hlargs.nvim" : {
"branch" :
"main" ,
"commit" :
"0f2dbf02ff948e8fc8ebe07b215f3174a12bbe3c" },
15 15 "hyper.nvim" : {
"branch" :
"main" ,
"commit" :
"b84fb39e703b1dd487d20c4faf028ee51374c88b" },
16 - "indent-blankline.nvim" : {
"branch" :
"master" ,
"commit" :
"3d08501caef2329aba5121b753e903904088f7e6" },
16 + "indent-blankline.nvim" : {
"branch" :
"master" ,
"commit" :
"821a7acd88587d966f7e464b0b3031dfe7f5680c" },
17 17 "lazy.nvim" : {
"branch" :
"main" ,
"commit" :
"83493db50a434a4c5c648faf41e2ead80f96e478" },
18 18 "mason-tool-installer.nvim" : {
"branch" :
"main" ,
"commit" :
"1212fb6082b7177dde17ea65e429e027835aeb40" },
19 - "mason.nvim" : {
"branch" :
"main" ,
"commit" :
"3b5068f0fc565f337d67a2d315d935f574848ee7" },
19 + "mason.nvim" : {
"branch" :
"main" ,
"commit" :
"c43eeb5614a09dc17c03a7fb49de2e05de203924" },
20 20 "mini.align" : {
"branch" :
"main" ,
"commit" :
"f845218c5fea89e49074e48270dc5e1b9511a0f9" },
21 21 "mini.bracketed" : {
"branch" :
"main" ,
"commit" :
"65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
22 22 "mini.starter" : {
"branch" :
"main" ,
"commit" :
"ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },
36 36 "nvim-neoclip.lua" : {
"branch" :
"main" ,
"commit" :
"798cd0592a81c185465db3a091a0ff8a21af60fd" },
37 37 "nvim-spectre" : {
"branch" :
"master" ,
"commit" :
"e7db8ebca7fd0a604027ebf85acee52f6642c91c" },
38 38 "nvim-surround" : {
"branch" :
"main" ,
"commit" :
"84a26afce16cffa7e3322cfa80a42cddf60616eb" },
39 - "nvim-tree.lua" : {
"branch" :
"master" ,
"commit" :
"f7c09bd72e50e1795bd3afb9e2a2b157b4bfb3c3" },
40 - "nvim-treesitter" : {
"branch" :
"master" ,
"commit" :
"567a76780cd4f982dae1ec57e3dad6174bef3680" },
39 + "nvim-tree.lua" : {
"branch" :
"master" ,
"commit" :
"707b24af91a1d05823099ed8c5450796290466ba" },
40 + "nvim-treesitter" : {
"branch" :
"master" ,
"commit" :
"f197a15b0d1e8d555263af20add51450e5aaa1f0" },
41 41 "nvim-treesitter-textobjects" : {
"branch" :
"master" ,
"commit" :
"d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" },
42 42 "nvim-ts-autotag" : {
"branch" :
"main" ,
"commit" :
"531f48334c422222aebc888fd36e7d109cb354cd" },
43 43 "nvim-ts-context-commentstring" : {
"branch" :
"main" ,
"commit" :
"7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
44 44 "nvim-web-devicons" : {
"branch" :
"master" ,
"commit" :
"cb0c967c9723a76ccb1be0cc3a9a10e577d2f6ec" },
45 45 "nvim-window" : {
"branch" :
"main" ,
"commit" :
"e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },
46 46 "oil.nvim" : {
"branch" :
"master" ,
"commit" :
"e462a3446505185adf063566f5007771b69027a1" },
47 - "persistence.nvim" : {
"branch" :
"main" ,
"commit" :
"4982499c1636eac254b72923ab826ee7827b3084" },
47 + "persistence.nvim" : {
"branch" :
"main" ,
"commit" :
"ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" },
48 48 "playground" : {
"branch" :
"master" ,
"commit" :
"ba48c6a62a280eefb7c85725b0915e021a1a0749" },
49 49 "plenary.nvim" : {
"branch" :
"master" ,
"commit" :
"f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
50 50 "schemastore.nvim" : {
"branch" :
"main" ,
"commit" :
"4d798fd5b692c8fce77268aba8f6f926b0c9f835" },
51 - "specs.nvim" : {
"branch" :
"main" ,
"commit" :
"2743e412bbe21c9d73954c403d01e8de7377890d" },
51 + "specs.nvim" : {
"branch" :
"main" ,
"commit" :
"e929006d3f6bb8e43f03e13ac364c67236eb5299" },
52 52 "speedtyper.nvim" : {
"branch" :
"main" ,
"commit" :
"2d158eed4c753995b0501a3a7a72464fbb213e3d" },
53 53 "ssr.nvim" : {
"branch" :
"main" ,
"commit" :
"bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
54 54 "substitute.nvim" : {
"branch" :
"main" ,
"commit" :
"17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
56 56 "telescope-ui-select.nvim" : {
"branch" :
"master" ,
"commit" :
"6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
57 57 "telescope-zoxide" : {
"branch" :
"main" ,
"commit" :
"68966349aa1b8e9ade403e18479ecf79447389a7" },
58 58 "telescope.nvim" : {
"branch" :
"master" ,
"commit" :
"6312868392331c9c0f22725041f1ec2bef57c751" },
59 - "todo-comments.nvim" : {
"branch" :
"main" ,
"commit" :
"833d8dd8b07eeda37a09e99460f72a02616935cb" },
59 + "todo-comments.nvim" : {
"branch" :
"main" ,
"commit" :
"8febc60a76feefd8203077ef78b6a262ea1a41f9" },
60 60 "toggleterm.nvim" : {
"branch" :
"main" ,
"commit" :
"193786e0371e3286d3bc9aa0079da1cd41beaa62" },
61 61 "tree-sitter-nu" : {
"branch" :
"main" ,
"commit" :
"c5b7816043992b1cdc1462a889bc74dc08576fa6" },
62 62 "treesj" : {
"branch" :
"main" ,
"commit" :
"60e27280030f9cd8dfb6ceb335922c6ff76682cc" },
63 63 "twilight.nvim" : {
"branch" :
"main" ,
"commit" :
"8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
64 64 "virt-column.nvim" : {
"branch" :
"master" ,
"commit" :
"b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
65 - "which-key.nvim" : {
"branch" :
"main" ,
"commit" :
"4433e5ec9a507e5097571ed55c02ea9658fb268a" },
65 + "which-key.nvim" : {
"branch" :
"main" ,
"commit" :
"ce741eb559c924d72e3a67d2189ad3771a231414" },
66 66 "zen-mode.nvim" : {
"branch" :
"main" ,
"commit" :
"78557d972b4bfbb7488e17b5703d25164ae64e6a" }
neovim/lua/bugabinga/plugins/fidget.lua Modified 3 3 local debug = require 'std.debug' 11 11 suppress_on_insert =
false ,
neovim/lua/bugabinga/plugins/genghis.lua Modified 13 + 'CopyFilepathWithTilde' ,
12 14 'CopyRelativePath' ,
13 15 'CopyDirectoryPath' ,
14 16 'CopyRelativeDirectoryPath' ,
20 22 config = function ()
21 23 local genghis
= require 'genghis' 22 24 local keymap
= vim.keymap.set
23 - keymap(
'n' ,
'<leader>yp' , genghis.copyFilepath )
24 - keymap(
'n' ,
'<leader>yn' , genghis.copyFilename )
25 - keymap(
'n' ,
'<leader>cx' , genghis.chmodx )
26 - keymap(
'n' ,
'<leader>rf' , genghis.renameFile )
27 - keymap(
'n' ,
'<leader>mf' , genghis.moveAndRenameFile )
28 - keymap(
'n' ,
'<leader>mc' , genghis.moveToFolderInCwd )
29 - keymap(
'n' ,
'<leader>nf' , genghis.createNewFile )
30 - keymap(
'n' ,
'<leader>yf' , genghis.duplicateFile )
31 - keymap(
'n' ,
'<leader>df' , genghis.trashFile )
32 - keymap(
'x' ,
'<leader>x' , genghis.moveSelectionToNewFile )
25 + keymap(
'n' ,
'<leader>fp' , genghis.copyFilepath )
26 + keymap(
'n' ,
'<leader>fN' , genghis.copyFilename )
27 + keymap(
'n' ,
'<leader>fc' , genghis.chmodx )
28 + keymap(
'n' ,
'<leader>fr' , genghis.renameFile )
29 + keymap(
'n' ,
'<leader>fm' , genghis.moveAndRenameFile )
30 + keymap(
'n' ,
'<leader>fi' , genghis.moveToFolderInCwd )
31 + keymap(
'n' ,
'<leader>fn' , genghis.createNewFile )
32 + keymap(
'n' ,
'<leader>fy' , genghis.duplicateFile )
33 + keymap(
'n' ,
'<leader>fd' , genghis.trashFile )
34 + keymap(
'x' ,
'<leader>fx' , genghis.moveSelectionToNewFile )
neovim/lua/bugabinga/plugins/hlargs.lua Deleted deleted file mode 100644 2 - 'm-demare/hlargs.nvim' ,
3 - event = {
'BufRead' ,
'BufLeave' ,
'BufEnter' ,
'SessionLoadPost' , },
6 - paint_arg_declarations =
true ,
7 - paint_arg_usages =
true ,
8 - paint_catch_blocks = {
12 - extras = {
named_parameter =
true , },
13 - excluded_argnames = {
15 - usages = {
lua = {}, },
19 - 'nvim-treesitter/nvim-treesitter' ,
neovim/lua/bugabinga/plugins/starter.lua Modified 9 9 local is_home
= vim.uv.cwd()
== vim.uv.os_homedir()
11 11 local custom_actions
= {
12 - {
name =
'Find files' ,
action =
'Telescope find_files' ,
section =
'Builtin actions' },
13 - {
name =
'Oil' ,
action =
'Oil' ,
section =
'Builtin actions' },
12 + {
name =
'Find files' ,
action =
'Telescope find_files' ,
section =
'Builtin actions' , },
13 + {
name =
'Oil' ,
action =
'Oil' ,
section =
'Builtin actions' , },
16 16 local sessions = function ( limit )
18 18 local persistence
= require 'persistence' 19 - local persistence_config
= require 'persistence.config' 20 19 local sessions
= persistence.list()
21 20 table .
sort ( sessions,
function ( a, b )
22 21 return vim.loop.fs_stat( a ).mtime.sec
> vim.loop.fs_stat( b ).mtime.sec
24 23 return vim.iter( sessions )
25 + :filter(
function ( session_path )
26 + return vim.fn.filereadable( session_path )
~= 0 26 28 :map(
function ( session_path )
32 - local name
= vim.fn.fnamemodify( session_path,
':t:r:gs_%_/_:~' )
33 - local session_restore
= 'silent! source ' .. vim.fn.fnameescape( session_path )
30 + local name
= vim.fs.basename( session_path:gsub(
'%%%%' ,
'/:' ):gsub(
'%%' ,
'/' ):gsub(
'%.vim' ,
'' ) )
34 31 local action = function ()
32 + local session_restore
= 'silent! source ' .. vim.fn.fnameescape( session_path )
35 33 vim.cmd( session_restore )
36 34 vim.notify(
'Restored session: ' .. name )
38 36 local section
= 'Sessions' 40 - return {
name = name,
action = action,
section = section }
38 + return {
name = name,
action = action,
section = section, }
52 50 pattern
= 'LazyVimStarted' ,
54 52 command
= vim.schedule_wrap(
function ()
55 - if vim.bo.filetype
== "starter" then 53 + if vim.bo.filetype
== 'starter' then 56 54 startuptime
= require 'lazy' .stats().startuptime
81 79 starter.gen_hook.adding_bullet(),
82 80 starter.gen_hook.aligning(
'center' ,
'center' ),
83 - starter.gen_hook.indexing(
'all' , {
'Recent files' ,
'Recent files (current directory)' ,
'Builtin actions' } ),
81 + starter.gen_hook.indexing(
'all' , {
'Recent files' ,
'Recent files (current directory)' ,
'Builtin actions' , } ),
neovim/lua/bugabinga/plugins/tree.lua Modified 2 2 local map
= require 'std.map' 5 5 'nvim-tree/nvim-tree.lua' ,
8 9 cmd =
'NvimTreeOpen' ,
21 22 config = function ()
22 23 require 'nvim-tree' .setup {
23 - sort_by =
'case_sensitive' ,
25 + sorter =
'case_sensitive' ,
neovim/lua/std/auto.lua Modified 3 - return function (group_name)
4 - local group
= vim.api.nvim_create_augroup(group_name, {
clear =
true })
5 - return function (list_of_autocommands)
3 + return function ( group_name )
4 + local group
= vim.api.nvim_create_augroup( group_name, {
clear =
true , } )
5 + return function ( list_of_autocommands )
6 6 if list_of_autocommands.events
then 7 - list_of_autocommands
= { list_of_autocommands }
7 + list_of_autocommands
= { list_of_autocommands, }
9 - for _, autocommand
in pairs (list_of_autocommands)
do 9 + for _, autocommand
in pairs ( list_of_autocommands )
do 12 12 local command
= nil 13 13 local callback
= nil 14 - if type (autocommand.command)
== 'function' then 14 + if type ( autocommand.command )
== 'function' then 15 15 callback
= autocommand.command
17 17 command
= autocommand.command
19 - vim.api.nvim_create_autocmd(autocommand.events, {
19 + vim.api.nvim_create_autocmd( autocommand.events, {
20 20 desc = autocommand.description,
22 22 buffer = autocommand.buffer,
24 24 once
= autocommand.once,
26 26 callback
= callback,