dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
c5f9ef36544a6025e02e029143a66b78f54f4bdd
Oliver Jan Krylow <oliver@bugabinga.net > · 13 Mar 2024
unsigned
Browse files Compare with HEAD
Changed files (24) Diff layout Auto Unified Split
+46 / −114 text lines
1 - # bugabingas personal dotfiles, 33rd attempt 1 + # bugabinga neovim config 3 - Shared configuration files between some Linux and some Windows hosts.3 + neovim configuration is scripting.4 + scripting with lua + neovim api is programming.5 - ## bootstrapping a new host 9 - 1. `git clone git@github.com:bugabinga/dotfiles`11 - 1. `java bootstripper.java`12 + : standard lib. can only depend on itself and neovim apis.15 + : config modules. in aggregation, defines all of the config. can depend on itself, std and plugins.18 + : third party plugins and their config glue integrating it into the config.24 + : file type specific config13 - > Pay attention to already existing symlinks!17 - Initial setup on windows is a little more sophisticated, because I am used to a developers environment.30 + I am the bone of my code, bugs are my body and exceptions are my blood.31 + I have created over a thousand bugs, unknown to testers, nor known to debuggers.32 + Have withstood pain to create many programs, yet those hands will never hold a working program.33 + So as I pray, Unlimited Bug Works.19 - 1. Enable Developer Mode, so that it is allowed to make symlinks without admin permissions.20 - 1. Install Build Tools with C++ Option (for Rust and cargo tools)21 - 1. Install Git without internal SSH22 - 1. Start ssh-agent service23 - 1. Enable `UTF-8` in regional settings27 - - minimal amount of dependencies28 - This helps in setting up new host.29 - But it is really hard to achieve when hosts are allowed to be Windows and Linux AND [OpenBSD] ...30 - The current state is a compromise reached after some experimentation.31 - - editing and applying configs is "natural"32 - Natural in this context is to mean: as if there was no dotfiles repository used for sharing.33 - This is achieved by sym-linking the files from the dotfiles repository into their normal locations.34 - So when it comes time to edit a config file, you can stay blissfully unaware of the dotfiles repository.36 - ## handling per host differences 38 - There are two classes of differences in configurations between platforms (specifically Linux and Windows in my case).40 - ### differing locations of config files 42 - For example, [NeoVim] stores its configuration at `~/.config/nvim` in Linux and at `~/AppData/Roaming/nvim` in Windows.43 - In order to handle theses differences each host gets its own symlink file with the naming pattern `(hostname).symlinks`.44 - The format of this file is:47 - path to configuration file/directory relative to dotfiles root48 - absolute path of symlink on host51 - Each symlink path pair is to be delimited by a newline.62 - This file will be parsed by [bootstripper] in order to create those symlinks.64 - ### differing values in configuration files 66 - Most often, these come down to different paths of stuff, that get referred to in config files.67 - For example, [topgrade], an abstraction over a bunch of package managers and updaters, might want to know the location of your git repositories, so it can pull them for you.68 - Some programs, e.g. [NeoVim], have rich configuration languages that are powerful enough for you to resolve those differences with conditionals.69 - However some programs, e.g. [topgrade], offer only declarative configuration languages, which make it impossible to resolve this problem in the config.70 - I tried solving this problem with some kind of a templating engine.71 - But I quickly gave up on that, because it was too annoying to manage.72 - Specifically, editing configuration stopped being "natural", meaning you cannot simply open and edit the file at the location you expect the config to be anymore.73 - This natural flow is the reason symlinks are used.74 - With templating in the mix, an intermediary step is necessary, between editing and applying config.76 - Instead, I use the `(hostname).symlink` files to resolve such cases.77 - That means, that config files are completely independent per host, and as such some duplication of configuration occurs.78 - A tradeoff well worth it in my opinion.82 - Secrets are encrypted and saved as file into the `tresor` folder.83 - The name of these file is a random UUID, which I map to their original purpose somewhere else.84 - Those secret files are decrypted either by [bootstripper] or on demand in my scripts.86 - ## the trouble with bootstrapping dotfiles 88 - Most of my previous attempts at managing my configuration files failed because it is tricky to share them between Windows and Unix systems.89 - If all my hosts were Unix(y), I would write a POSIX shell script and be done with it.90 - But that does not work for Windows.92 - Since I find it important to be able to setup my configuration files on any fresh new host, it is important to have as few dependencies as possible.93 - However, with Windows in the mix, this is pretty hard, so I settled on a compromise: JDK.95 - Things I tried in the past to solve this problem:97 - - dotfiles managers (e.g. [chezmoi])99 - - writing a bootstrap/installer with [cosmopolitan]100 - > extremely cool tech. unfortunately I am not a C programmer so I struggled a lot.101 - > also, the resulting binary rewrites itself on first run. How do I keep a file version controlled that is allowed to change on first use, but should not result in a new modification...?102 - > furthermore, managing the [cosmopolitan] toolchain for windows made extra work.103 - - use POSIX shell for Unix, use PowerShell for Windows104 - > too much work. maintaining the same program in 2 different languages ... depressing not because you have to write twice, but because you have to test twice.105 - - Pretend Windows is Unix by only interfacing with it through [WSL].106 - > Windows is not Unix. [WSL] is cute, even useful for cross-compilation and testing. But when I am on Windows I want to use Windows, when I am on Linux I want to use Linux. Fighting the platform constantly is too tiring.108 - Things I have not tried (yet?):110 - - Use a language with a pleasant cross-compile story ([golang], [Rust], [ziglang]) and version control a binary for those platforms I care about.111 - - Use [PowerShell Core] and maybe a script per platform to install it. This could be nice if [PowerShell Core] would replace [PowerShell Windows] and it was my main shell.113 - [NeoVim ]: https://neovim.io/114 - [topgrade ]: https://github.com/r-darwish/topgrade115 - [bootstripper ]: https://github.com/bugabinga/dotfiles/blob/trunk/bootstripper.java116 - [chezmoi ]: https://github.com/twpayne/chezmoi117 - [golang ]: https://golang.org/118 - [Rust ]: https://www.rust-lang.org/119 - [ziglang ]: https://ziglang.org/120 - [WSL ]: https://docs.microsoft.com/en-us/windows/wsl/about121 - [PowerShell Core ]: https://github.com/PowerShell/PowerShell122 - [PowerShell Windows ]: https://de.wikipedia.org/wiki/PowerShell123 - [OpenBSD ]: https://www.openbsd.org/124 - [cosmopolitan ]: https://github.com/jart/cosmopolitan42 + * write plugin to parse lsp settings locally and apply them43 + * 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-java45 + * does status bar fail to display if lsp fails to load?46 + * pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc47 + * use gen.ai to generate docs48 + * learn marks and refactor mark.lua49 + * use ltex-ls for markdown, code comments and commit messages50 + * create a floating window that shows plugins, that have commands, as reminder52 + * add nu-check to nvim-lint53 + * create facade over vim.api.nvim_create_user_command54 + * create skeleton-plugin for default file content based on file type55 + * add support for Java multi line string in autopairs56 + * nvim spell for camel case wordsneovim/.editorconfig Modified +4 / −4 text lines
17 17 max_line_length = 120 max_line_length = 120 21 21 end_of_line = lf end_of_line = lf 24 24 table_separator_style = comma table_separator_style = comma 27 - trailing_table_separator = keep 27 + trailing_table_separator = always 30 30 call_arg_parentheses = remove call_arg_parentheses = remove +2 / −0 text lines
41 + * write plugin to parse lsp settings locally and apply them42 + * is there a use case for a plugin that parses local plugin configuration overrides?41 43 * kill custom lsp stuff in favor of lspconfig and try neoconf + nvim-java* kill custom lsp stuff in favor of lspconfig and try neoconf + nvim-java42 44 * does status bar fail to display if lsp fails to load?* does status bar fail to display if lsp fails to load?43 45 * pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandoc* pandoc with lua filters for diagrams for generating documents and previewing --> https://github.com/tex/vimpreviewpandocneovim/lazy-lock.json Modified +19 / −19 text lines
2 - "Comment.nvim" : { "branch" : "master" , "commit" : "0236521ea582747b58869cb72f70ccfa967d2e89" },3 - "actions-preview.nvim" : { "branch" : "master" , "commit" : "5c240e6356156b72cfbf7c05feefadae61d7a06f" },2 + "Comment.nvim" : { "branch" : "master" , "commit" : "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },3 + "actions-preview.nvim" : { "branch" : "master" , "commit" : "5072b1b1065a6b22bdd46b5c21780a91d6a08071" },4 4 "auto-dark-mode.nvim" : { "branch" : "master" , "commit" : "e328dc463d238cb7d690fb4daf068eba732a5a14" }, "auto-dark-mode.nvim" : { "branch" : "master" , "commit" : "e328dc463d238cb7d690fb4daf068eba732a5a14" },5 5 "better-escape.nvim" : { "branch" : "master" , "commit" : "7e86edafb8c7e73699e0320f225464a298b96d12" }, "better-escape.nvim" : { "branch" : "master" , "commit" : "7e86edafb8c7e73699e0320f225464a298b96d12" },6 6 "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },7 - "dressing.nvim" : { "branch" : "master" , "commit" : "6f212262061a2120e42da0d1e87326e8a41c0478" },7 + "dressing.nvim" : { "branch" : "master" , "commit" : "18e5beb3845f085b6a33c24112b37988f3f93c06" },8 8 "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" }, "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" },9 - "gen.nvim" : { "branch" : "main" , "commit" : "85a739cea06148a56d52f26b01d63de6671ce4ce" },10 - "gitsigns.nvim" : { "branch" : "main" , "commit" : "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },9 + "gen.nvim" : { "branch" : "main" , "commit" : "9682435008677a329f8b1f1cd812903fd2b9d6f4" },10 + "gitsigns.nvim" : { "branch" : "main" , "commit" : "6ef8c54fb526bf3a0bc4efb0b2fe8e6d9a7daed2" },11 11 "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" }, "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" },12 12 "heirline.nvim" : { "branch" : "master" , "commit" : "03cff30d7e7d3ba6fdc00925f015822f79cef908" }, "heirline.nvim" : { "branch" : "master" , "commit" : "03cff30d7e7d3ba6fdc00925f015822f79cef908" },13 13 "hlargs.nvim" : { "branch" : "main" , "commit" : "0f2dbf02ff948e8fc8ebe07b215f3174a12bbe3c" }, "hlargs.nvim" : { "branch" : "main" , "commit" : "0f2dbf02ff948e8fc8ebe07b215f3174a12bbe3c" },16 16 "lazy.nvim" : { "branch" : "main" , "commit" : "83493db50a434a4c5c648faf41e2ead80f96e478" }, "lazy.nvim" : { "branch" : "main" , "commit" : "83493db50a434a4c5c648faf41e2ead80f96e478" },17 17 "lush.nvim" : { "branch" : "main" , "commit" : "2e8d34e748642621d761a65e3c2a198154b914e8" }, "lush.nvim" : { "branch" : "main" , "commit" : "2e8d34e748642621d761a65e3c2a198154b914e8" },18 18 "mason-tool-installer.nvim" : { "branch" : "main" , "commit" : "1212fb6082b7177dde17ea65e429e027835aeb40" }, "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" }, "mini.align" : { "branch" : "main" , "commit" : "f845218c5fea89e49074e48270dc5e1b9511a0f9" },21 21 "mini.bracketed" : { "branch" : "main" , "commit" : "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" }, "mini.bracketed" : { "branch" : "main" , "commit" : "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },22 22 "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" }, "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },23 23 "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" }, "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },24 24 "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" }, "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" },25 - "neoconf.nvim" : { "branch" : "main" , "commit" : "db1d1bd45f4e91da6abc898281711fa47eda0ece" },
26 25 "neogen" : { "branch" : "main" , "commit" : "b95347a588401a755eadd17482edc1662876bd58" }, "neogen" : { "branch" : "main" , "commit" : "b95347a588401a755eadd17482edc1662876bd58" },27 26 "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" }, "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" },28 - "nui.nvim" : { "branch" : "main" , "commit" : "756c59f46057cd2d43619cd3a6d4e01b2aa60295" },27 + "nui.nvim" : { "branch" : "main" , "commit" : "3dc46d725f7b94bee5117c0a699b57b1902b5d65" },29 28 "nvim-autopairs" : { "branch" : "master" , "commit" : "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" }, "nvim-autopairs" : { "branch" : "master" , "commit" : "c6139ca0d5ad7af129ea6c89cb4c56093f2c034a" },30 29 "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" }, "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" },31 30 "nvim-genghis" : { "branch" : "main" , "commit" : "8613fc1b43db6cc761733b3630eabff9e86296f7" }, "nvim-genghis" : { "branch" : "main" , "commit" : "8613fc1b43db6cc761733b3630eabff9e86296f7" },35 34 "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" }, "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" },36 35 "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" }, "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },37 36 "nvim-surround" : { "branch" : "main" , "commit" : "84a26afce16cffa7e3322cfa80a42cddf60616eb" }, "nvim-surround" : { "branch" : "main" , "commit" : "84a26afce16cffa7e3322cfa80a42cddf60616eb" },38 - "nvim-tree.lua" : { "branch" : "master" , "commit" : "efafd73efa9bc8c26282aed563ba0f01c7465b06" },39 - "nvim-treesitter" : { "branch" : "master" , "commit" : "9775d5d7c724f81acdd441e7e9edefc4514e990b" },40 - "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "b7a0bfa3e93697ca5b61b15df633404bf8f45883" },37 + "nvim-tree.lua" : { "branch" : "master" , "commit" : "041dbd18f440207ad161503a384e7c82d575db66" },38 + "nvim-treesitter" : { "branch" : "master" , "commit" : "f197a15b0d1e8d555263af20add51450e5aaa1f0" },39 + "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" },41 40 "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" },42 41 "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" }, "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },43 - "nvim-web-devicons" : { "branch" : "master" , "commit" : "4adea17610d140a99c313e3f79a9dc01825d59ae" },42 + "nvim-web-devicons" : { "branch" : "master" , "commit" : "75df79feb02d5e0ec114e447453775d4d291ea03" },44 43 "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" }, "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },45 - "oil.nvim" : { "branch" : "master" , "commit" : "18dfd2458dc741fea683357a17aaa95870b25a3c" },46 - "persistence.nvim" : { "branch" : "main" , "commit" : "4982499c1636eac254b72923ab826ee7827b3084" },44 + "oil.nvim" : { "branch" : "master" , "commit" : "32e18df30f937e02135398c270b72a4d24b40120" },45 + "persistence.nvim" : { "branch" : "main" , "commit" : "ad538bfd5336f1335cdb6fd4e0b0eebfa6e12f32" },47 46 "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" },48 47 "plenary.nvim" : { "branch" : "master" , "commit" : "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, "plenary.nvim" : { "branch" : "master" , "commit" : "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },49 - "schemastore.nvim" : { "branch" : "main" , "commit" : "6eb5d8d9ec9f81b75aaa6d15d0f6dc12a066fd3f" },48 + "schemastore.nvim" : { "branch" : "main" , "commit" : "7a4bac1aa44c50979432b71f34f237bad3a0a232" },50 49 "specs.nvim" : { "branch" : "main" , "commit" : "e929006d3f6bb8e43f03e13ac364c67236eb5299" }, "specs.nvim" : { "branch" : "main" , "commit" : "e929006d3f6bb8e43f03e13ac364c67236eb5299" },51 50 "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" }, "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" },52 51 "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" }, "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },55 54 "telescope-symbols.nvim" : { "branch" : "master" , "commit" : "a6d0127a53d39b9fc2af75bd169d288166118aec" }, "telescope-symbols.nvim" : { "branch" : "master" , "commit" : "a6d0127a53d39b9fc2af75bd169d288166118aec" },56 55 "telescope-ui-select.nvim" : { "branch" : "master" , "commit" : "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope-ui-select.nvim" : { "branch" : "master" , "commit" : "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },57 56 "telescope-zoxide" : { "branch" : "main" , "commit" : "68966349aa1b8e9ade403e18479ecf79447389a7" }, "telescope-zoxide" : { "branch" : "main" , "commit" : "68966349aa1b8e9ade403e18479ecf79447389a7" },58 - "telescope.nvim" : { "branch" : "0.1.x" , "commit" : "d90956833d7c27e73c621a61f20b29fdb7122709" },59 - "todo-comments.nvim" : { "branch" : "main" , "commit" : "833d8dd8b07eeda37a09e99460f72a02616935cb" },57 + "telescope.nvim" : { "branch" : "master" , "commit" : "6312868392331c9c0f22725041f1ec2bef57c751" },58 + "todo-comments.nvim" : { "branch" : "main" , "commit" : "8febc60a76feefd8203077ef78b6a262ea1a41f9" },60 59 "toggleterm.nvim" : { "branch" : "main" , "commit" : "193786e0371e3286d3bc9aa0079da1cd41beaa62" }, "toggleterm.nvim" : { "branch" : "main" , "commit" : "193786e0371e3286d3bc9aa0079da1cd41beaa62" },61 - "tree-sitter-nu" : { "branch" : "main" , "commit" : "7dd29f9616822e5fc259f5b4ae6c4ded9a71a132" },60 + "transparent.nvim" : { "branch" : "main" , "commit" : "fd35a46f4b7c1b244249266bdcb2da3814f01724" },61 + "tree-sitter-nu" : { "branch" : "main" , "commit" : "c5b7816043992b1cdc1462a889bc74dc08576fa6" },62 62 "treesj" : { "branch" : "main" , "commit" : "60e27280030f9cd8dfb6ceb335922c6ff76682cc" }, "treesj" : { "branch" : "main" , "commit" : "60e27280030f9cd8dfb6ceb335922c6ff76682cc" },63 63 "twilight.nvim" : { "branch" : "main" , "commit" : "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" }, "twilight.nvim" : { "branch" : "main" , "commit" : "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },64 64 "virt-column.nvim" : { "branch" : "master" , "commit" : "b62b4ef0774d19452d4ed18e473e824c7a756f2f" }, "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" } "zen-mode.nvim" : { "branch" : "main" , "commit" : "78557d972b4bfbb7488e17b5703d25164ae64e6a" }67 67 }No final newline }No final newline neovim/lua/bugabinga/lsp/clients/init.lua Modified +1 / −0 text lines
7 7 require 'bugabinga.lsp.clients.c' , require 'bugabinga.lsp.clients.c' ,8 8 require 'bugabinga.lsp.clients.graphviz' , require 'bugabinga.lsp.clients.graphviz' ,9 9 require 'bugabinga.lsp.clients.markdown' , require 'bugabinga.lsp.clients.markdown' ,
10 + require 'bugabinga.lsp.clients.nu' ,10 11 require 'bugabinga.lsp.clients.rust' , require 'bugabinga.lsp.clients.rust' ,11 12 require 'bugabinga.lsp.clients.toml' , require 'bugabinga.lsp.clients.toml' ,12 13 require 'bugabinga.lsp.clients.vim' , require 'bugabinga.lsp.clients.vim' ,neovim/lua/bugabinga/lsp/clients/nu.lua Added new file mode 100644+10 / −0 text lines
1 + local project = require 'std.project' 5 + command = { 'nu' , '--lsp' },7 + root_dir = project.find_project_root,8 + single_file_support = true ,neovim/lua/bugabinga/lsp/clients/zig.lua Modified +2 / −2 text lines
1 - local project = require 'std.project' 1 + local project = require 'std.project' 4 4 name = 'zls' , name = 'zls' ,6 6 filetypes = { 'zig' , 'zir' }, filetypes = { 'zig' , 'zir' },7 7 root_dir = project.find_zig_project_root, root_dir = project.find_zig_project_root,8 8 single_file_support = true , single_file_support = true ,neovim/lua/bugabinga/nugu/init.lua Modified +1 / −0 text lines
471 471 IblScope { fg = ui_focus, bg = Normal.bg }, IblScope { fg = ui_focus, bg = Normal.bg },473 473 Hlargs { fg = content_important_local }, Hlargs { fg = content_important_local },474 475 MiniStarterCurrent { fg = ui_accent.readable(), bg = ui_accent }, MiniStarterCurrent { fg = ui_accent.readable(), bg = ui_accent }, 475 476 MiniStarterFooter { Keyword }, MiniStarterFooter { Keyword }, 476 477 MiniStarterHeader { Comment }, MiniStarterHeader { Comment }, neovim/lua/bugabinga/plugins/comment.lua Modified +15 / −14 text lines
2 - 'numToStr/Comment.nvim' ,4 - { "gc" , mode = { "n" , "v" }, desc = "Comment toggle linewise" },5 - { "gb" , mode = { "n" , "v" }, desc = "Comment toggle blockwise" },8 - "JoosepAlviste/nvim-ts-context-commentstring" ,11 - local commentstring_avail, commentstring = pcall (require , "ts_context_commentstring.integrations.comment_nvim" )12 - return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook() } or {}2 + 'numToStr/Comment.nvim' ,5 + { 'gc' , mode = { 'n' , 'v' , }, desc = 'Comment toggle linewise' , },6 + { 'gb' , mode = { 'n' , 'v' , }, desc = 'Comment toggle blockwise' , },9 + 'JoosepAlviste/nvim-ts-context-commentstring' ,12 + local commentstring_avail, commentstring = pcall ( require , 'ts_context_commentstring.integrations.comment_nvim' )13 + return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook(), } or {}neovim/lua/bugabinga/plugins/flash.lua Modified +6 / −5 text lines
2 2 'folke/flash.nvim' , 'folke/flash.nvim' ,3 4 event = 'VeryLazy' , event = 'VeryLazy' ,5 - highlight = { backdrop = false },6 - modes = { char = { highlight = { backdrop = false , } },6 + highlight = { backdrop = false , },7 + modes = { char = { highlight = { backdrop = false , }, },12 - mode = { 'n' , 'x' , 'o' },13 + mode = { 'n' , 'x' , 'o' , },13 14 function () require 'flash' .jump() end , function () require 'flash' .jump() end ,14 15 desc = 'Flash' , desc = 'Flash' ,18 - mode = { 'n' , 'o' , 'x' },19 + mode = { 'n' , 'o' , 'x' , },19 20 function () require 'flash' .treesitter() end , function () require 'flash' .treesitter() end ,neovim/lua/bugabinga/plugins/genghis.lua Modified +12 / −11 text lines
17 17 dependencies = { dependencies = {18 18 'stevearc/dressing.nvim' , 'stevearc/dressing.nvim' ,22 20 config = function () config = function ()24 - local cmp = require 'cmp' 29 - sources = cmp.config.sources { { name = 'omni' } }21 + local genghis = require 'genghis' 22 + local keymap = vim.keymap.set23 + 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 )neovim/lua/bugabinga/plugins/gitsigns.lua Modified +12 / −11 text lines
4 4 'lewis6991/gitsigns.nvim' , 'lewis6991/gitsigns.nvim' ,5 6 event = 'VeryLazy' , event = 'VeryLazy' ,9 - change = { text = '│' },10 - delete = { text = '_' },11 - topdelete = { text = '‾' },12 - changedelete = { text = '~' },13 - untracked = { text = '┆' },9 + add = { text = '│' , },10 + change = { text = '│' , },11 + delete = { text = '_' , },12 + topdelete = { text = '‾' , },13 + changedelete = { text = '~' , },14 + untracked = { text = '┆' , },15 16 preview_config = { preview_config = {16 17 border = vim.g.border_style, border = vim.g.border_style,52 53 category = 'git' , category = 'git' ,53 54 keys = '<leader>hs' , keys = '<leader>hs' ,54 55 buffer = bufnr, buffer = bufnr,55 - command = function () gitsigns.stage_hunk { vim.fn.line '.' , vim.fn.line 'v' } end ,56 + command = function () gitsigns.stage_hunk { vim.fn.line '.' , vim.fn.line 'v' , } end ,58 59 map.normal { map.normal {68 69 category = 'git' , category = 'git' ,69 70 keys = '<leader>hr' , keys = '<leader>hr' ,70 71 buffer = bufnr, buffer = bufnr,71 - command = function () gitsigns.reset_hunk { vim.fn.line '.' , vim.fn.line 'v' } end ,72 + command = function () gitsigns.reset_hunk { vim.fn.line '.' , vim.fn.line 'v' , } end ,74 75 map.normal { map.normal {108 109 category = 'git' , category = 'git' ,109 110 keys = '<leader>hb' , keys = '<leader>hb' ,110 111 buffer = bufnr, buffer = bufnr,111 - command = function () gitsigns.blame_line { full = true } end ,112 + command = function () gitsigns.blame_line { full = true , } end ,114 115 map.normal { map.normal {148 149 category = 'git' , category = 'git' ,149 150 keys = 'ih' , keys = 'ih' ,150 151 buffer = bufnr, buffer = bufnr,151 - command = ':<C-U>Gitsigns select_hunk<CR>' 152 + command = ':<C-U>Gitsigns select_hunk<CR>' , neovim/lua/bugabinga/plugins/heirline.lua Modified +43 / −42 text lines
10 10 'rebelot/heirline.nvim' , 'rebelot/heirline.nvim' ,11 12 event = 'BufEnter' , event = 'BufEnter' ,12 13 dependencies = { dependencies = {13 14 'nvim-tree/nvim-web-devicons' , 'nvim-tree/nvim-web-devicons' ,83 84 r = 'ui_important_global' , r = 'ui_important_global' ,84 85 ['!' ] = 'ui_important_global' , ['!' ] = 'ui_important_global' ,85 86 t = 'ui_important_global' , t = 'ui_important_global' ,89 90 provider = function ( self ) provider = function ( self )94 95 hl = function ( self ) hl = function ( self )95 96 local mode = self.mode:sub( 1 , 1 ) local mode = self.mode:sub( 1 , 1 ) 96 - return { fg = self.mode_colors[mode], bold = true }97 + return { fg = self.mode_colors[mode], bold = true , }99 100 update = { update = {107 108 init = function ( self ) init = function ( self )108 109 local filename = self.filename local filename = self.filename109 110 local extension = vim.fn.fnamemodify( filename, ':e' ) local extension = vim.fn.fnamemodify( filename, ':e' )110 - self.icon = require 'nvim-web-devicons' .get_icon_color( filename, extension, { default = true } )111 + self.icon = require 'nvim-web-devicons' .get_icon_color( filename, extension, { default = true , } )112 113 provider = function ( self ) provider = function ( self )113 114 return self.icon and (self.icon .. ' ' ) return self.icon and (self.icon .. ' ' )160 161 file_icon, file_icon,162 + { provider = ' ' , },162 163 file_name, file_name,163 164 file_flags, file_flags,165 + { provider = '%<' , }, 167 168 local file_type = { local file_type = {186 187 provider = function ( self ) provider = function ( self )187 188 local fileformat = vim.bo.fileformat local fileformat = vim.bo.fileformat188 189 return self[fileformat] return self[fileformat]192 193 local file_size = { local file_size = {193 194 provider = function () provider = function ()196 - local suffix = { 'b' , 'k' , 'M' , 'G' , 'T' , 'P' , 'E' }197 + local suffix = { 'b' , 'k' , 'M' , 'G' , 'T' , 'P' , 'E' , }197 198 local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) ) local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) )198 199 fsize = (fsize < 0 and 0 ) or fsize fsize = (fsize < 0 and 0 ) or fsize199 200 if fsize < 1024 then if fsize < 1024 then 217 218 local lsp_active = { local lsp_active = {218 219 condition = conditions.lsp_attached, condition = conditions.lsp_attached,219 - update = { 'LspAttach' , 'LspDetach' , 'BufEnter' },220 + update = { 'LspAttach' , 'LspDetach' , 'BufEnter' , },221 222 provider = function () provider = function ()222 223 local names = {} local names = {}223 - for _, client in pairs ( vim.lsp.get_clients { bufnr = 0 } ) do 224 + for _, client in pairs ( vim.lsp.get_clients { bufnr = 0 , } ) do 224 225 table .insert ( names, client.name ) table .insert ( names, client.name )226 227 return icon.lsp .. ' ' .. table .concat ( names, ' ' ) return icon.lsp .. ' ' .. table .concat ( names, ' ' )249 250 init = function ( self ) init = function ( self )250 - self.errors = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.ERROR } )251 - self.warnings = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.WARN } )252 - self.hints = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.HINT } )253 - self.info = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.INFO } )251 + self.errors = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.ERROR, } )252 + self.warnings = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.WARN, } )253 + self.hints = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.HINT, } )254 + self.info = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.INFO, } )256 - update = { 'DiagnosticChanged' , 'BufEnter' },257 + update = { 'DiagnosticChanged' , 'BufEnter' , },259 260 provider = function ( self ) provider = function ( self )296 297 local svn_get_relative_url = function () local svn_get_relative_url = function ()298 299 local job = require 'plenary.job' local job = require 'plenary.job' 299 - local relative_url = { '[ERR]' }300 + local relative_url = { '[ERR]' , }301 302 job:new { job:new {302 303 command = 'svn' , command = 'svn' ,303 - args = { 'info' , '--show-item' , 'relative-url' , '--no-newline' },304 + args = { 'info' , '--show-item' , 'relative-url' , '--no-newline' , },304 305 on_exit = function ( current_job, exit_code ) on_exit = function ( current_job, exit_code )305 306 if exit_code == 0 then relative_url = current_job:result() end if exit_code == 0 then relative_url = current_job:result() end 384 385 provider = '' , provider = '' ,388 389 local help_file_name = { local help_file_name = {419 420 provider = icon.macro .. ' ' , provider = icon.macro .. ' ' ,420 421 hl = 'PreProc' , hl = 'PreProc' ,421 - utils.surround( { '░▒▓ ' , ' ▓▒░' }, nil , {422 + utils.surround( { '░▒▓ ' , ' ▓▒░' , }, nil , {422 423 provider = function () provider = function ()423 424 return vim.fn.reg_recording() return vim.fn.reg_recording()427 428 update = { update = {428 429 'RecordingEnter' , 'RecordingEnter' ,429 430 'RecordingLeave' , 'RecordingLeave' ,433 434 local lazy = { local lazy = {435 436 local ok, lazy_status = pcall ( require , 'lazy.status' ) local ok, lazy_status = pcall ( require , 'lazy.status' )436 437 return ok and lazy_status.has_updates() return ok and lazy_status.has_updates()438 - update = { 'User' , pattern = 'LazyUpdate' },439 + update = { 'User' , pattern = 'LazyUpdate' , },439 440 provider = function () return ' ' .. icon.lazy .. ' ' .. require 'lazy.status' .updates() .. ' ' end , provider = function () return ' ' .. icon.lazy .. ' ' .. require 'lazy.status' .updates() .. ' ' end ,440 441 on_click = { on_click = {441 442 callback = function () require 'lazy' .update() end , callback = function () require 'lazy' .update() end ,446 - local align = { provider = '%=' }447 - local space = { provider = ' ' }447 + local align = { provider = '%=' , }448 + local space = { provider = ' ' , }449 450 local default_statusline = { local default_statusline = {450 451 vi_mode, macro_recording, align, vi_mode, macro_recording, align,465 466 file_type, file_type,467 468 help_file_name, help_file_name,471 472 local terminal_statusline = { local terminal_statusline = {473 474 condition = function () condition = function ()474 - return conditions.buffer_matches { buftype = { 'terminal' } }475 + return conditions.buffer_matches { buftype = { 'terminal' , }, }477 - { condition = conditions.is_active, vi_mode, space },478 + { condition = conditions.is_active, vi_mode, space, },478 479 file_type, file_type,480 481 terminal_name, terminal_name,521 522 condition = function () condition = function ()522 - return conditions.buffer_matches { buftype = { 'terminal' } }523 + return conditions.buffer_matches { buftype = { 'terminal' , }, }525 526 file_type, file_type,537 538 hl = function ( self ) hl = function ( self )538 539 if self.is_active then if self.is_active then 539 - return { fg = utils.get_highlight 'TabLineSel' .fg }540 + return { fg = utils.get_highlight 'TabLineSel' .fg, }540 541 elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then 541 - return { fg = 'ui_normal' }542 + return { fg = 'ui_normal' , }543 - return { fg = utils.get_highlight 'TabLine' .fg }544 + return { fg = utils.get_highlight 'TabLine' .fg, }550 551 local name = self.file_name local name = self.file_name551 552 return name == '' and NEW_FILE or vim.fs.normalize( vim.fn.fnamemodify( name, ':t' ) ) return name == '' and NEW_FILE or vim.fs.normalize( vim.fn.fnamemodify( name, ':t' ) )553 - hl = function ( self ) return { bold = self.is_active or self.is_visible, italic = true } end ,554 + hl = function ( self ) return { bold = self.is_active or self.is_visible, italic = true , } end ,556 557 local tabline_file_flags = { local tabline_file_flags = {558 - condition = function ( self ) return vim.api.nvim_get_option_value( 'modified' , { buf = self.bufnr } ) end ,559 + condition = function ( self ) return vim.api.nvim_get_option_value( 'modified' , { buf = self.bufnr, } ) end ,559 560 provider = icon.modified .. ' ' , provider = icon.modified .. ' ' ,562 563 condition = function ( self ) condition = function ( self )563 - return not vim.api.nvim_get_option_value( 'modifiable' , { buf = self.bufnr } ) or 564 - vim.api.nvim_get_option_value( 'readonly' , { buf = self.bufnr } )564 + return not vim.api.nvim_get_option_value( 'modifiable' , { buf = self.bufnr, } ) or 565 + vim.api.nvim_get_option_value( 'readonly' , { buf = self.bufnr, } )566 567 provider = function ( self ) provider = function ( self )567 - if vim.api.nvim_get_option_value( 'buftype' , { buf = self.bufnr } ) == 'terminal' then 568 + if vim.api.nvim_get_option_value( 'buftype' , { buf = self.bufnr, } ) == 'terminal' then 568 569 return icon.terminal return icon.terminal570 571 return icon.lock return icon.lock583 584 if self.is_active then if self.is_active then 584 585 return 'TabLineSel' return 'TabLineSel' 585 586 elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then 586 - return { fg = 'ui_normal' }587 + return { fg = 'ui_normal' , }588 589 return 'TabLine' return 'TabLine' 593 594 callback = function ( _, minwid, _, button ) callback = function ( _, minwid, _, button )594 595 if button == 'm' then if button == 'm' then 595 596 vim.schedule( function () vim.schedule( function ()596 - vim.api.nvim_buf_delete( minwid, { force = false } )597 + vim.api.nvim_buf_delete( minwid, { force = false , } )597 598 vim.cmd.redrawtabline() vim.cmd.redrawtabline()607 608 file_icon, file_icon,609 + { provider = ' ' , },609 610 tabline_file_name, tabline_file_name,610 611 tabline_buffer_number, tabline_buffer_number,611 612 tabline_file_flags, tabline_file_flags,623 624 return utils.get_highlight 'TabLine' .bg return utils.get_highlight 'TabLine' .bg626 - { tabline_file_name_block }627 + { tabline_file_name_block, }629 630 local buffer_line = utils.make_buflist( local buffer_line = utils.make_buflist(630 631 tabline_buffer_block, tabline_buffer_block,631 - { provider = icon.arrow_left .. ' ' , hl = 'TabLineFill' },632 - { provider = ' ' .. icon.arrow_right, hl = 'TabLineFill' }632 + { provider = icon.arrow_left .. ' ' , hl = 'TabLineFill' , },633 + { provider = ' ' .. icon.arrow_right, hl = 'TabLineFill' , }635 636 local tabpage = { local tabpage = {648 649 local tab_pages = { local tab_pages = {649 - { provider = '%=' },650 + { provider = '%=' , },650 651 utils.make_tablist( tabpage ), utils.make_tablist( tabpage ),653 - local tabline = { buffer_line, tab_pages }654 + local tabline = { buffer_line, tab_pages, }neovim/lua/bugabinga/plugins/hlargs.lua Modified +19 / −18 text lines
2 - 'm-demare/hlargs.nvim' ,5 - paint_arg_declarations = true ,6 - paint_arg_usages = true ,7 - paint_catch_blocks = {11 - extras = { named_parameter = true },12 - excluded_argnames = {14 - usages = { lua = {} },18 - 'nvim-treesitter/nvim-treesitter' 2 + 'm-demare/hlargs.nvim' ,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/indent_blankline.lua Modified +3 / −2 text lines
1 - local icon = require 'std.icon' 1 + local icon = require 'std.icon' 4 4 'lukas-reineke/indent-blankline.nvim' , 'lukas-reineke/indent-blankline.nvim' ,5 6 main = 'ibl' , main = 'ibl' ,6 - event = { 'BufReadPost' , 'BufNew' },7 + event = { 'BufReadPost' , 'BufNew' , },7 8 config = function () config = function ()8 9 local ibl = require 'ibl' local ibl = require 'ibl' neovim/lua/bugabinga/plugins/lush.lua Modified +4 / −1 text lines
3 3 'rktjmp/lush.nvim' , 'rktjmp/lush.nvim' ,4 6 branch = 'main' , branch = 'main' ,5 7 lazy = false , lazy = false ,6 8 priority = 1000 , priority = 1000 ,7 9 config = function () config = function ()8 - vim.cmd.colorscheme 'nugu' neovim/lua/bugabinga/plugins/mason.lua Modified +8 / −7 text lines
2 - " williamboman/mason.nvim" ,3 - cmd = { 'Mason' , 'MasonUpdate' , 'MasonInstall' , 'MasonUninstall' , 'MasonUninstallAll' , 'MasonLog' },2 + ' williamboman/mason.nvim' ,4 + cmd = { 'Mason' , 'MasonUpdate' , 'MasonInstall' , 'MasonUninstall' , 'MasonUninstallAll' , 'MasonLog' , },6 7 border = vim.g.border_style, border = vim.g.border_style,7 8 width = 0.69 , width = 0.69 ,8 9 height = 0.69 , height = 0.69 ,11 12 dependencies = { dependencies = {13 14 'WhoIsSethDaniel/mason-tool-installer.nvim' , 'WhoIsSethDaniel/mason-tool-installer.nvim' ,14 15 lazy = false , lazy = false ,15 - cmd = { " MasonToolsInstall" , " MasonToolsInstallSync" , " MasonToolsUpdate" , " MasonToolsUpdateSync" , " MasonToolsClean" },16 + cmd = { ' MasonToolsInstall' , ' MasonToolsInstallSync' , ' MasonToolsUpdate' , ' MasonToolsUpdateSync' , ' MasonToolsClean' , },17 18 ensure_installed = { ensure_installed = {18 19 'lua-language-server' , 'lua-language-server' ,25 26 'lemminx' , 'lemminx' ,26 27 'marksman' , 'marksman' ,neovim/lua/bugabinga/plugins/persistence.lua Modified +9 / −9 text lines
1 - local map = require 'std.map' 1 + local map = require 'std.map' 4 4 'folke/persistence.nvim' , 'folke/persistence.nvim' ,7 - config = function (_, opts)8 - local persistence = require 'persistence' 9 - persistence.setup(opts)8 + config = function ( _, opts )9 + local persistence = require 'persistence' 10 + persistence.setup( opts )11 12 map.normal { map.normal {12 13 description = 'Restore session for current directory' , description = 'Restore session for current directory' ,13 14 category = 'history' , category = 'history' ,14 15 keys = '<F4>' , keys = '<F4>' ,15 - command = function () persistence.load() end ,16 + command = function () persistence.load() end ,18 19 map.normal { map.normal {19 20 description = 'Restore last session' , description = 'Restore last session' ,20 21 category = 'history' , category = 'history' ,21 22 keys = '<F4><F4>' , keys = '<F4><F4>' ,22 - command = function () persistence.load{last = true } end ,23 + command = function () persistence.load { last = true , } end ,neovim/lua/bugabinga/plugins/telescope.lua Modified +12 / −12 text lines
5 5 require 'bugabinga.health' .add_dependencyrequire 'bugabinga.health' .add_dependency7 7 name = 'ripgrep' , name = 'ripgrep' ,8 - name_of_executable = 'rg' 8 + name_of_executable = 'rg' , 11 11 name = 'find-fd' , name = 'find-fd' ,12 - name_of_executable = 'fd' 12 + name_of_executable = 'fd' , 16 16 'nvim-telescope/telescope.nvim' , 'nvim-telescope/telescope.nvim' ,18 18 cmd = 'Telescope' , cmd = 'Telescope' ,19 19 event = 'VeryLazy' , event = 'VeryLazy' ,20 20 dependencies = { dependencies = {30 30 local actions = require 'telescope.actions' local actions = require 'telescope.actions' 31 31 local themes = require 'telescope.themes' local themes = require 'telescope.themes' 33 - local ivy = themes.get_ivy { hidden = true , layout_config = { preview_width = 0.69 } }34 - local dropdown = themes.get_dropdown { layout_config = { width = 0.69 } }35 - local cursor = themes.get_cursor { layout_config = { preview_width = 0.42 , width = 0.69 } }33 + local ivy = themes.get_ivy { hidden = true , layout_config = { preview_width = 0.69 , }, }34 + local dropdown = themes.get_dropdown { layout_config = { width = 0.69 , }, }35 + local cursor = themes.get_cursor { layout_config = { preview_width = 0.42 , width = 0.69 , }, }37 37 telescope.setup { telescope.setup {38 38 defaults = { defaults = {39 - path_display = { 'truncate' },39 + path_display = { 'truncate' , },40 40 sorting_strategy = 'ascending' , sorting_strategy = 'ascending' ,41 41 layout_config = { layout_config = {42 - horizontal = { prompt_position = 'bottom' , preview_width = 0.69 },43 - vertical = { mirror = false },42 + horizontal = { prompt_position = 'bottom' , preview_width = 0.69 , },43 + vertical = { mirror = false , },44 44 width = 0.69 , width = 0.69 ,45 45 height = 0.42 , height = 0.42 ,46 46 preview_cutoff = 124 , preview_cutoff = 124 ,69 69 ['<c-p>' ] = actions.move_selection_previous, ['<c-p>' ] = actions.move_selection_previous,70 70 ['<c-s>' ] = actions.file_split, ['<c-s>' ] = actions.file_split,72 - n = { q = actions.close },72 + n = { q = actions.close, },75 75 pickers = { pickers = {83 83 buffers = cursor, buffers = cursor,85 85 extensions = { extensions = {86 - ['ui-select' ] = { cursor },87 - zoxide = { prompt_title = 'Navigate deez nuts!' },86 + ['ui-select' ] = { cursor, },87 + zoxide = { prompt_title = 'Navigate deez nuts!' , },neovim/lua/bugabinga/plugins/todo-comments.lua Modified +2 / −1 text lines
2 2 'folke/todo-comments.nvim' , 'folke/todo-comments.nvim' ,3 - dependencies = { 'nvim-lua/plenary.nvim' },4 + dependencies = { 'nvim-lua/plenary.nvim' , },4 5 event = 'BufReadPost' , event = 'BufReadPost' ,neovim/lua/bugabinga/plugins/toggleterm.lua Modified +7 / −6 text lines
9 9 name_of_executable = 'mdcat' , name_of_executable = 'mdcat' ,12 - name_of_executable = 'dot' 12 + name_of_executable = 'dot' , 16 16 'akinsho/toggleterm.nvim' , 'akinsho/toggleterm.nvim' ,48 49 toggleterm.setup( opts ) toggleterm.setup( opts )50 51 local set_terminal_keymaps = function () local set_terminal_keymaps = function ()51 - local local_to_buffer = { buffer = 0 }52 + local local_to_buffer = { buffer = 0 , }52 53 map.terminal { map.terminal {53 54 description = 'Quit insert mode' , description = 'Quit insert mode' ,54 55 category = 'terminal' , category = 'terminal' ,69 70 description = 'Open vertical Terminal' , description = 'Open vertical Terminal' ,70 71 category = 'terminal' , category = 'terminal' ,71 72 keys = '<F8>' , keys = '<F8>' ,72 - command = '<CMD>exe v:count1 . "ToggleTerm size=60 direction=vertical"<CR>' 73 + command = '<CMD>exe v:count1 . "ToggleTerm size=60 direction=vertical"<CR>' , 75 76 map.normal { map.normal {76 77 description = 'Open horizontal Terminal' , description = 'Open horizontal Terminal' ,77 78 category = 'terminal' , category = 'terminal' ,78 79 keys = '<F9>' , keys = '<F9>' ,79 - command = '<CMD>exe v:count1 . "ToggleTerm size=20 direction=horizontal"<CR>' 80 + command = '<CMD>exe v:count1 . "ToggleTerm size=20 direction=horizontal"<CR>' , 82 83 local Terminal = require 'toggleterm.terminal' .Terminal local Terminal = require 'toggleterm.terminal' .Terminal99 100 command = toggle_gitui, command = toggle_gitui,102 - vim.api.nvim_create_user_command( 'Gitui' , toggle_gitui, { desc = 'Toggle Gitui' } )103 + vim.api.nvim_create_user_command( 'Gitui' , toggle_gitui, { desc = 'Toggle Gitui' , } )neovim/lua/bugabinga/plugins/treesitter.lua Modified +56 / −55 text lines
3 3 require 'bugabinga.health' .add_dependencyrequire 'bugabinga.health' .add_dependency5 5 name = 'CMake' , name = 'CMake' ,6 - name_of_executable = 'cmake' 9 - name_of_executable = 'make' 12 - name_of_executable = 'zig' 15 - name = 'TreeSitter CLI' ,16 - name_of_executable = 'tree-sitter' 19 - name_of_executable = 'tar' 6 + name_of_executable = 'cmake' ,
9 + name_of_executable = 'make' ,12 + name_of_executable = 'zig' ,15 + name = 'TreeSitter CLI' ,16 + name_of_executable = 'tree-sitter' ,19 + name_of_executable = 'tar' ,23 23 'nvim-treesitter/nvim-treesitter' , 'nvim-treesitter/nvim-treesitter' ,25 - event = { 'BufReadPre' , 'BufNewFile' },26 + event = { 'BufReadPre' , 'BufNewFile' , },26 27 build = function () build = function ()27 - require 'nvim-treesitter.install' .update { with_sync = true }28 + require 'nvim-treesitter.install' .update { with_sync = true , }29 30 dependencies = { dependencies = {30 31 'windwp/nvim-ts-autotag' , 'windwp/nvim-ts-autotag' ,38 39 local parsers = require 'nvim-treesitter.parsers' local parsers = require 'nvim-treesitter.parsers' 40 41 install.prefer_git = false install.prefer_git = false 41 - install.compilers = { 'zig' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' }42 + install.compilers = { 'zig' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' , }44 45 configs.setup { configs.setup {73 - ignore_install = { 'oil' },74 + ignore_install = { 'oil' , },75 76 auto_install = true , auto_install = true ,77 - autotag = { enable = true },78 + autotag = { enable = true , },79 80 highlight = { highlight = {80 81 enable = true , enable = true ,101 - indent = { enable = true },102 + indent = { enable = true , },103 104 playground = { playground = {104 105 enable = true , enable = true ,124 125 enable = true , enable = true ,125 126 lookahead = true , lookahead = true ,126 127 keymaps = { keymaps = {127 - ['af' ] = { query = '@call.outer' , desc = 'outer function call' },128 - ['if' ] = { query = '@call.inner' , desc = 'inner function call' },128 + ['af' ] = { query = '@call.outer' , desc = 'outer function call' , },129 + ['if' ] = { query = '@call.inner' , desc = 'inner function call' , },130 - ['am' ] = { query = '@function.outer' , desc = 'outer function definition' },131 - ['im' ] = { query = '@function.inner' , desc = 'inner function definition' },131 + ['am' ] = { query = '@function.outer' , desc = 'outer function definition' , },132 + ['im' ] = { query = '@function.inner' , desc = 'inner function definition' , },133 - ['aa' ] = { query = '@assignment.outer' , desc = 'outer assignment' },134 - ['ia' ] = { query = '@assignment.inner' , desc = 'inner assignment' },134 + ['aa' ] = { query = '@assignment.outer' , desc = 'outer assignment' , },135 + ['ia' ] = { query = '@assignment.inner' , desc = 'inner assignment' , },140 - ['ac' ] = { query = '@class.outer' , desc = 'outer class' },141 - ['ic' ] = { query = '@class.inner' , desc = 'inner class' },141 + ['ac' ] = { query = '@class.outer' , desc = 'outer class' , },142 + ['ic' ] = { query = '@class.inner' , desc = 'inner class' , },143 - ['ao' ] = { query = '@conditional.outer' , desc = 'outer conditional' },144 - ['io' ] = { query = '@conditional.inner' , desc = 'inner conditional' },144 + ['ao' ] = { query = '@conditional.outer' , desc = 'outer conditional' , },145 + ['io' ] = { query = '@conditional.inner' , desc = 'inner conditional' , },146 - ['al' ] = { query = '@loop.outer' , desc = 'outer loop' },147 - ['il' ] = { query = '@loop.inner' , desc = 'inner loop' },147 + ['al' ] = { query = '@loop.outer' , desc = 'outer loop' , },148 + ['il' ] = { query = '@loop.inner' , desc = 'inner loop' , },150 - ['ap' ] = { query = '@parameter.outer' , desc = 'outer parameter' },151 - ['ip' ] = { query = '@parameter.inner' , desc = 'inner parameter' },151 + ['ap' ] = { query = '@parameter.outer' , desc = 'outer parameter' , },152 + ['ip' ] = { query = '@parameter.inner' , desc = 'inner parameter' , },153 - ['at' ] = { query = '@comment.outer' , desc = 'outer comment' },154 + ['at' ] = { query = '@comment.outer' , desc = 'outer comment' , },155 - ['as' ] = { query = '@scope' , query_group = 'locals' , desc = 'language scope' },156 + ['as' ] = { query = '@scope' , query_group = 'locals' , desc = 'language scope' , },157 158 selection_modes = { selection_modes = {158 159 ['@parameter.outer' ] = 'v' , ['@parameter.outer' ] = 'v' ,167 168 enable = true , enable = true ,168 169 swap_next = { swap_next = {169 - ['<leader>spn' ] = { query = '@parameter.inner' , desc = 'Swap parameter with next' },170 + ['<leader>spn' ] = { query = '@parameter.inner' , desc = 'Swap parameter with next' , },171 172 swap_previous = { swap_previous = {172 - ['<leader>spp' ] = { query = '@parameter.inner' , desc = 'Swap parameter with previous' },173 + ['<leader>spp' ] = { query = '@parameter.inner' , desc = 'Swap parameter with previous' , },178 179 border = vim.g.border_style, border = vim.g.border_style,179 180 floating_preview_opts = {}, floating_preview_opts = {},180 181 peek_definition_code = { peek_definition_code = {181 - ['<leader>lpf' ] = { query = '@function.outer' , desc = 'Peek definition of outer function.' },182 - ['<leader>lpc' ] = { query = '@class.outer' , desc = 'Peek definition of outer class.' },182 + ['<leader>lpf' ] = { query = '@function.outer' , desc = 'Peek definition of outer function.' , },183 + ['<leader>lpc' ] = { query = '@class.outer' , desc = 'Peek definition of outer class.' , },187 188 enable = true , enable = true ,188 189 set_jumps = true , set_jumps = true ,189 190 goto_next = { goto_next = {190 - [']f' ] = { query = '@call.outer' , desc = 'Goto next function call' },191 - [']m' ] = { query = '@fucntion.outer' , desc = 'Goto next function definition' },192 - [']c' ] = { query = '@class.outer' , desc = 'Goto next class' },193 - [']o' ] = { query = '@conditional.outer' , desc = 'Goto next conditional' },194 - [']p' ] = { query = '@parameter.outer' , desc = 'Goto next parameter' },191 + [']f' ] = { query = '@call.outer' , desc = 'Goto next function call' , },192 + [']m' ] = { query = '@fucntion.outer' , desc = 'Goto next function definition' , },193 + [']c' ] = { query = '@class.outer' , desc = 'Goto next class' , },194 + [']o' ] = { query = '@conditional.outer' , desc = 'Goto next conditional' , },195 + [']p' ] = { query = '@parameter.outer' , desc = 'Goto next parameter' , },196 197 goto_previous = { goto_previous = {197 - ['[f' ] = { query = '@call.outer' , desc = 'Goto previous function call' },198 - ['[m' ] = { query = '@function.outer' , desc = 'Goto previous function definition' },199 - ['[c' ] = { query = '@class.outer' , desc = 'goto previous class' },200 - ['[o' ] = { query = '@conditional.outer' , desc = 'Goto previous conditional' },201 - ['[p' ] = { query = '@parameter.outer' , desc = 'Goto previous parameter' },198 + ['[f' ] = { query = '@call.outer' , desc = 'Goto previous function call' , },199 + ['[m' ] = { query = '@function.outer' , desc = 'Goto previous function definition' , },200 + ['[c' ] = { query = '@class.outer' , desc = 'goto previous class' , },201 + ['[o' ] = { query = '@conditional.outer' , desc = 'Goto previous conditional' , },202 + ['[p' ] = { query = '@parameter.outer' , desc = 'Goto previous parameter' , },208 209 parsers.get_parser_configs().just = { parsers.get_parser_configs().just = {209 210 install_info = { install_info = {210 211 url = 'https://github.com/IndianBoy42/tree-sitter-just' , url = 'https://github.com/IndianBoy42/tree-sitter-just' , 211 - files = { 'src/parser.c' , 'src/scanner.cc' },212 + files = { 'src/parser.c' , 'src/scanner.cc' , },212 213 branch = 'main' , branch = 'main' ,214 - maintainers = { '@IndianBoy42' },215 + maintainers = { '@IndianBoy42' , },neovim/lua/bugabinga/plugins/virt-column.lua Modified +4 / −3 text lines
5 5 'lukas-reineke/virt-column.nvim' , 'lukas-reineke/virt-column.nvim' ,6 - event = { 'BufReadPost' , 'BufNew' },7 + event = { 'BufReadPost' , 'BufNew' , },9 10 enabled = false , enabled = false ,10 - char = { '░' , '▒' , '▓' },11 + char = { '░' , '▒' , '▓' , },11 12 exclude = { exclude = {12 13 filetypes = ignored.filetypes, filetypes = ignored.filetypes,13 14 buftypes = ignored.buftypes, buftypes = ignored.buftypes,neovim/lua/bugabinga/plugins/whichkey.lua Modified +14 / −13 text lines
5 5 'folke/which-key.nvim' , 'folke/which-key.nvim' ,6 7 event = 'VeryLazy' , event = 'VeryLazy' ,7 8 init = function () init = function ()8 9 vim.o.timeout = true vim.o.timeout = true 24 25 border = vim.g.border_style, border = vim.g.border_style,25 26 winblend = vim.o.winblend, winblend = vim.o.winblend,27 - layout = { align = 'center' },28 + layout = { align = 'center' , },28 29 disable = { disable = {29 30 buftypes = ignored.buftypes, buftypes = ignored.buftypes,32 33 config = function ( _, opts ) config = function ( _, opts )33 34 local wk = require 'which-key' local wk = require 'which-key' 40 41 wk.register { wk.register {41 42 ['<leader>' ] = { ['<leader>' ] = {42 - m = { name = 'mark' , _ = 'which_key_ignore' },43 - h = { name = 'hunk' , _ = 'which_key_ignore' },44 - l = { name = 'lsp' , _ = 'which_key_ignore' },45 - r = { name = 'refactor' , _ = 'which_key_ignore' },43 + m = { name = 'mark' , _ = 'which_key_ignore' , },44 + h = { name = 'hunk' , _ = 'which_key_ignore' , },45 + l = { name = 'lsp' , _ = 'which_key_ignore' , },46 + r = { name = 'refactor' , _ = 'which_key_ignore' , },47 48 name = 'swap' , name = 'swap' ,48 49 _ = 'which_key_ignore' , _ = 'which_key_ignore' ,50 - p = { name = 'parameter' , _ = 'which_key_ignore' },51 + p = { name = 'parameter' , _ = 'which_key_ignore' , },54 55 name = 'toggle' , name = 'toggle' ,55 56 _ = 'which_key_ignore' , _ = 'which_key_ignore' ,57 - o = { name = 'options' , _ = 'which_key_ignore' },58 + o = { name = 'options' , _ = 'which_key_ignore' , },60 - z = { name = 'lazy' , _ = 'which_key_ignore' },61 - [' ' ] = { name = 'fun' , _ = 'which_key_ignore' },61 + z = { name = 'lazy' , _ = 'which_key_ignore' , },62 + [' ' ] = { name = 'fun' , _ = 'which_key_ignore' , },