repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: more incubation !

fd04fca0c5a610b7e623a560d87a4be980bdac50

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (14)

neovim/README.md

Modified
41 41 * indent line bg overwrites visual selection bg
42 42 * fix bg highlight of treesitter-context
43 +* stabilize plugins that are only dependencies. move to own file?
43 44 * fix markdown rendering in doc popup
44 45 * make highlights more visible when expanding snippets
45 46 * kill mason again and get lsps via packages.nu

neovim/lazy-lock.json

Modified
2 2 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 + "CopilotChat.nvim": { "branch": "canary", "commit": "9333944fde3c65868818e245c73aa29eef826e9b" },
3 4 "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
4 5 "better-escape.nvim": { "branch": "master", "commit": "f45b52f8f87792e8659526f23261ffe278a54be5" },
6 + "cmd-parser.nvim": { "branch": "master", "commit": "6363b8bddef968c3ec51a38172af44f675f01ef3" },
5 7 "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
8 + "cmp-dotenv": { "branch": "main", "commit": "4dd53aab60982f1f75848aec5e6214986263325e" },
6 9 "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
7 10 "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "031e6ba70b0ad5eee49fd2120ff7a2e325b17fa7" },
8 11 "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
9 12 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
10 13 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
11 - "colorizer.nvim": { "branch": "master", "commit": "c1602ff3f11566bb7f16f90985b0c59d3d7db0ef" },
12 14 "conform.nvim": { "branch": "master", "commit": "50649648851cd0e126dfedd0f3c33b900a6f1ef8" },
15 + "copilot-cmp": { "branch": "master", "commit": "b6e5286b3d74b04256d0a7e3bd2908eabec34b44" },
16 + "copilot.lua": { "branch": "master", "commit": "1a237cf50372830a61d92b0adf00d3b23882e0e1" },
13 17 "decisive.nvim": { "branch": "main", "commit": "a7251adebccbc9c899cff39a524b20d06e2b78b5" },
14 18 "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
15 19 "dressing.nvim": { "branch": "master", "commit": "1b7921eecc65af1baf8ac1dc06f0794934cbcfb2" },
20 + "eagle.nvim": { "branch": "main", "commit": "f590404f510be11ef2cf7c68e135441bfa48c9a8" },
16 21 "flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
17 22 "heirline.nvim": { "branch": "master", "commit": "7a79753c1a42c3f52e89a6c42429e7f871e560cd" },
18 23 "in-and-out.nvim": { "branch": "master", "commit": "ab24cafadc3418dffb0c7e9b0621cff60b9ac551" },
19 24 "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" },
25 + "iswap.nvim": { "branch": "master", "commit": "e02cc91f2a8feb5c5a595767d208c54b6e3258ec" },
20 26 "ivy.nvim": { "branch": "0.x", "commit": "cfa7e29ae4d955508d4f7f2ef08cc0c51ee745ed" },
27 + "layers.nvim": { "branch": "main", "commit": "67666f59a2dbe36a469766be6a4c484ae98c4895" },
21 28 "lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
29 + "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
22 30 "lspkind.nvim": { "branch": "master", "commit": "59c3f419af48a2ffb2320cea85e44e5a95f71664" },
23 31 "markdown-table-mode.nvim": { "branch": "main", "commit": "f830cd15a97deb3acc53d9f6607bc609f7f32e49" },
24 32 "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
25 33 "mini.bracketed": { "branch": "main", "commit": "833d66df6e0588222312a963780c6ec42ed7437d" },
26 34 "mini.bufremove": { "branch": "main", "commit": "1ee294a97e091d3cf967974df622c0d887890dc2" },
27 35 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
36 + "neodim": { "branch": "master", "commit": "d87470828690342d0139efc2fd56ea0b29e9ecb3" },
37 + "no-neck-pain.nvim": { "branch": "main", "commit": "c0d8061f18bccceff0991e096c8f864a720e1ebf" },
28 38 "nui.nvim": { "branch": "main", "commit": "b58e2bfda5cea347c9d58b7f11cf3012c7b3953f" },
29 39 "nvim-autopairs": { "branch": "master", "commit": "f158dcb865c36f72c92358f87787dab2c272eaf3" },
30 40 "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" },
41 + "nvim-dap": { "branch": "master", "commit": "7ff6936010b7222fea2caea0f67ed77f1b7c60dd" },
42 + "nvim-docs-view": { "branch": "master", "commit": "365593534e0acd762bfddce6e8313315ffa4fa36" },
43 + "nvim-dr-lsp": { "branch": "main", "commit": "bbed27eb6eba20242d59fc6ac11852730c9af632" },
31 44 "nvim-genghis": { "branch": "main", "commit": "ca258b1e466d131e17eacf0c632abe932bce20ab" },
32 45 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
46 + "nvim-highlight-colors": { "branch": "main", "commit": "a411550ef85cae467b889ba7d1a96bd78332d90e" },
33 47 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
34 48 "nvim-lint": { "branch": "master", "commit": "968a35d54b3a4c1ce66609cf80b14d4ae44fe77f" },
35 49 "nvim-lsp-endhints": { "branch": "main", "commit": "391ef40521b631a8a2fb7aef78db6967ead6b39d" },
50 + "nvim-luapad": { "branch": "master", "commit": "176686eb616a5ada5dfc748f2b5109194bbe8a71" },
36 51 "nvim-neoclip.lua": { "branch": "main", "commit": "32e05f2d23dc5b6a284a688c0535a83d1bfc633f" },
52 + "nvim-rulebook": { "branch": "main", "commit": "bc5e3874a9870709ec91152f9efce6dad49ca862" },
37 53 "nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
38 - "nvim-treesitter": { "branch": "master", "commit": "f027762845fa35ff27fe0487c86537a74a480a0c" },
54 + "nvim-treesitter": { "branch": "master", "commit": "36b78d112bddd69a05e24679241962e29e494d9e" },
39 55 "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
40 56 "nvim-treesitter-textobjects": { "branch": "master", "commit": "4a2d05ec24eaa6b655c7d19092a3b6c0219d46b9" },
41 57 "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
42 - "nvim-web-devicons": { "branch": "master", "commit": "26220156aafb198b2de6a4cf80c1b120a3768da0" },
58 + "nvim-web-devicons": { "branch": "master", "commit": "1e5a2a796a88b5d696acb07dd5c285b13d13da21" },
43 59 "oil.nvim": { "branch": "master", "commit": "1eb9fb35a4613518f79790117ed82c367a0b4a22" },
44 60 "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
45 61 "precognition.nvim": { "branch": "main", "commit": "8a81c310b4e76b4884fc5350a5741cf683c645c7" },
62 + "range-highlight.nvim": { "branch": "master", "commit": "8b5e8ccb3460b2c3675f4639b9f54e64eaab36d9" },
63 + "refjump.nvim": { "branch": "main", "commit": "ae526d94864ddabced9cdb44d2158c9b3d6e0d9c" },
46 64 "scratch.nvim": { "branch": "main", "commit": "3e3d2ad0d7f565bc794d9d3ad40e92509802ecad" },
47 65 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
48 66 "spellwarn.nvim": { "branch": "main", "commit": "2f4dbc58bb90bc63b295461216b91ccf4e7f782d" },
49 67 "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
68 + "surround-ui.nvim": { "branch": "main", "commit": "40abcba017a943d6d3dd304e523f34a43d80405b" },
69 + "symbol-usage.nvim": { "branch": "main", "commit": "0f9b3da014b7e41559b643e7461fcabb2a7dc83a" },
50 70 "telescope-frecency.nvim": { "branch": "master", "commit": "f67baca08423a6fd00167801a54db38e0b878063" },
51 71 "telescope-fzf-native.nvim": { "branch": "main", "commit": "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },
52 72 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
73 + "telescope-undo.nvim": { "branch": "main", "commit": "51be9ae7c42fc27c0b05505e3a0162e0f05fbb6a" },
53 74 "telescope-zoxide": { "branch": "main", "commit": "54bfe630bad08dc9891ec78c7cf8db38dd725c97" },
54 75 "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
55 76 "text-case.nvim": { "branch": "main", "commit": "13daf28a829e6d0646904c94214cb289bb0c6f34" },
61 82 "treesj": { "branch": "main", "commit": "0d81326b5afd36babe7dd480aabbb0b05f33e688" },
62 83 "vim-vscode-snippets": { "branch": "master", "commit": "c34e9edee6a00cf3d0b8edb515e08e3df450bcfa" },
63 84 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
85 + "wezterm-types": { "branch": "main", "commit": "1518752906ba3fac0060d9efab6e4d3ec15d4b5a" },
64 86 "which-key.nvim": { "branch": "main", "commit": "fb070344402cfc662299d9914f5546d840a22126" },
65 87 "zen-mode.nvim": { "branch": "main", "commit": "04b52674b8c800f8b7d4609e8bd8d0212e3ffa79" }

neovim/lua/bugabinga/lsp/init.lua

Modified
299 299 buffer = bufnr,
300 300 keys = '<leader>ti',
301 301 command = function ()
302 - vim.lsp.inlay_hint.enable( vim.lsp.inlay_hint.is_enabled() )
302 + vim.lsp.inlay_hint.enable( not vim.lsp.inlay_hint.is_enabled() )

neovim/lua/bugabinga/nugu/init.lua

Modified
181 181 _.VisualNOS { bg = ui_unfocus }
182 182 _.WarningMsg { fg = warning, bold = true }
183 183 _.WildMenu = _.Debug
184 +_.TextYankPost { fg = content_backdrop, bg = ui_important_local }
185 186 _.String { fg = content_important_local, italic = true }
186 187 _.Constant = _.String

neovim/lua/bugabinga/nugu/palette.lua

Modified
10 10 return {
11 - debug = choose { light = '#3dd45d', dark = '#3dd45d', },
12 - error = choose { light = '#740523', dark = '#f27a9a', },
13 - info = choose { light = '#4187a7', dark = '#e7f0f3', },
14 - warning = choose { light = '#a7802d', dark = '#f1e8d6', },
11 + debug = choose { light = '#3dd45d', dark = '#3dd45d' },
12 + error = choose { light = '#740523', dark = '#f27a9a' },
13 + info = choose { light = '#4187a7', dark = '#e7f0f3' },
14 + warning = choose { light = '#a7802d', dark = '#f1e8d6' },
16 - content_normal = choose { light = '#494949', dark = '#cfcfcf', },
17 - content_backdrop = choose { light = '#e3e3e3', dark = '#131313', },
18 - content_accent = choose { light = '#800080', dark = '#800080', },
19 - content_minor = choose { light = '#878787', dark = '#727272', },
20 - content_focus = choose { light = '#646464', dark = '#a5bdb6', },
21 - content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543', },
22 - content_important_global = choose { light = '#48256e', dark = '#8e58cc', },
23 - content_important_local = choose { light = '#643398', dark = '#7a3bc3', },
16 + content_normal = choose { light = '#494949', dark = '#cfcfcf' },
17 + content_backdrop = choose { light = '#e3e3e3', dark = '#131313' },
18 + content_accent = choose { light = '#800080', dark = '#800080' },
19 + content_minor = choose { light = '#878787', dark = '#727272' },
20 + content_focus = choose { light = '#646464', dark = '#a5bdb6' },
21 + content_unfocus = choose { light = '#c9c9c9', dark = '#3f4543' },
22 + content_important_global = choose { light = '#48256e', dark = '#8e58cc' },
23 + content_important_local = choose { light = '#643398', dark = '#7a3bc3' },
25 - ui_normal = choose { light = '#929292', dark = '#e2e2e2', },
26 - ui_backdrop = choose { light = '#f9f9f9', dark = '#000000', },
27 - ui_accent = choose { light = '#d43dd4', dark = '#7a067a', },
28 - ui_minor = choose { light = '#d0d0d0', dark = '#424242', },
29 - ui_focus = choose { light = '#646464', dark = '#788984', },
30 - ui_unfocus = choose { light = '#c9c9c9', dark = '#121212', },
31 - ui_important_global = choose { light = '#9170b5', dark = '#5f368d', },
32 - ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72', },
25 + ui_normal = choose { light = '#929292', dark = '#e2e2e2' },
26 + ui_backdrop = choose { light = '#f9f9f9', dark = '#000000' },
27 + ui_accent = choose { light = '#d43dd4', dark = '#7a067a' },
28 + ui_minor = choose { light = '#d0d0d0', dark = '#424242' },
29 + ui_focus = choose { light = '#646464', dark = '#788984' },
30 + ui_unfocus = choose { light = '#c9c9c9', dark = '#121212' },
31 + ui_important_global = choose { light = '#9170b5', dark = '#5f368d' },
32 + ui_important_local = choose { light = '#ae95c8', dark = '#4c2b72' },

neovim/lua/bugabinga/options/keymaps.lua

Modified
10 10 vim.g.mapleader = ' '
11 11 vim.g.maplocalleader = ' '
13 -map.normal.visual {
14 - description = 'Yanks the selected text (in normal mode or visual mode) to the system clipboard.',
15 - category = 'editing',
16 - keys = '<leader>y',
17 - command = '"+y',
20 -map.normal {
21 - description = 'Pastes from the system clipboard (in normal mode or visual mode).',
22 - category = 'editing',
23 - keys = '<leader>p',
24 - command = '"+p',
27 -map.normal.visual {
28 - description = 'Yanks the entire line (when used in normal mode with motion).',
29 - category = 'editing',
30 - keys = '<leader>Y',
31 - command = '"+Y',
34 13 -- disable command history keymap, because i fatfinger it too often
35 14 map {
36 15 keys = 'q:',

neovim/lua/bugabinga/options/ui.lua

Modified
7 7 description = 'briefly highlight yanked text',
8 8 events = 'TextYankPost',
9 9 pattern = '*',
10 - command = function () vim.highlight.on_yank() end,
10 + command = function ()
11 + vim.highlight.on_yank {
12 + higroup = 'TextYankPost',
13 + timeout = 333,
14 + }
15 + end,
13 18 auto 'disable_columns_in_special_buffers' {

neovim/lua/bugabinga/plugins/cmp.lua

Modified
12 12 'hrsh7th/cmp-path',
13 13 'hrsh7th/cmp-nvim-lua',
14 14 'hrsh7th/cmp-nvim-lsp-signature-help',
15 + 'SergioRibera/cmp-dotenv',
15 16 'saadparwaiz1/cmp_luasnip',
16 17 'onsails/lspkind.nvim',
17 18 'L3MON4D3/LuaSnip',
49 50 ['<C-x>'] = cmp.mapping.complete(),
52 - local formatting = {}
53 - local ok, lspkind = pcall( require, 'lspkind' )
54 - if ok then
55 - formatting.format = lspkind.cmp_format {
56 - mode = 'symbol',
57 - symbol_map = {
58 - Copilot = icon.copilot,
59 - Class = icon.class,
60 - Color = icon.color,
61 - Constant = icon.constant,
62 - Constructor = icon.constructor,
63 - Enum = icon.enum,
64 - EnumMember = icon.enum_member,
65 - Event = icon.event,
66 - Field = icon.field,
67 - File = icon.file,
68 - Folder = icon.folder,
69 - Function = icon['function'],
70 - Interface = icon.interface,
71 - Keyword = icon.keyword,
72 - Method = icon.method,
73 - Module = icon.module,
74 - Operator = icon.operator,
75 - Property = icon.property,
76 - Reference = icon.reference,
77 - Snippet = icon.snippet,
78 - Struct = icon.struct,
79 - Text = icon.text,
80 - TypeParameter = icon.type_parameter,
81 - Unit = icon.unit,
82 - Value = icon.value,
83 - Variable = icon.variable,
84 - },
85 - menu = {
86 - buffer = '[buf]',
87 - nvim_lsp = '[LSP]',
88 - nvim_lua = '[nvim]',
89 - path = '[path]',
90 - luasnip = '[snip]',
91 - },
92 - }
93 - end
53 + local lspkind = prequire 'lspkind'
54 + local colors = prequire 'nvim-highlight-colors'
55 + local lspkind_params = {
56 + mode = 'symbol',
57 + symbol_map = {
58 + Copilot = icon.copilot,
59 + Class = icon.class,
60 + Color = icon.color,
61 + Constant = icon.constant,
62 + Constructor = icon.constructor,
63 + Enum = icon.enum,
64 + EnumMember = icon.enum_member,
65 + Event = icon.event,
66 + Field = icon.field,
67 + File = icon.file,
68 + Folder = icon.folder,
69 + Function = icon['function'],
70 + Interface = icon.interface,
71 + Keyword = icon.keyword,
72 + Method = icon.method,
73 + Module = icon.module,
74 + Operator = icon.operator,
75 + Property = icon.property,
76 + Reference = icon.reference,
77 + Snippet = icon.snippet,
78 + Struct = icon.struct,
79 + Text = icon.text,
80 + TypeParameter = icon.type_parameter,
81 + Unit = icon.unit,
82 + Value = icon.value,
83 + Variable = icon.variable,
84 + },
85 + menu = {
86 + buffer = '[buf]',
87 + nvim_lsp = '[LSP]',
88 + nvim_lua = '[nvim]',
89 + path = '[path]',
90 + luasnip = '[snip]',
91 + copilot = '[cop]',
92 + },
93 + }
94 + local formatting = {
95 + format = function ( entry, item )
96 + local color_item = colors.format( entry, { kind = item.kind } )
97 + item = lspkind.cmp_format( lspkind_params )( entry, item )
98 + if color_item.abbr_hl_group then
99 + item.kind_hl_group = color_item.abbr_hl_group
100 + item.kind = color_item.abbr
101 + end
102 + return item
103 + end,
95 106 local sources = {
107 + { name = 'copilot' }, -- FIXME: depends on incubating plugin!
96 108 { name = 'nvim_lua' },
97 109 { name = 'nvim_lsp_signature_help' },
98 110 { name = 'nvim_lsp' },
111 + { name = 'dotenv' },
99 112 { name = 'path' },
100 - { name = 'luasnip' },
102 114 name = 'buffer',
103 115 keyword_length = 4,

neovim/lua/bugabinga/plugins/colorizer.lua

Modified
1 1 return {
3 - 'litoj/colorizer.nvim',
4 - commit = 'c1602ff3f11566bb7f16f90985b0c59d3d7db0ef',
5 - event = 'VeryLazy',
3 + 'brenoprata10/nvim-highlight-colors',
4 + commit = 'a411550ef85cae467b889ba7d1a96bd78332d90e',
5 + lazy = false,
6 + init = function ()
7 + vim.opt.termguicolors = true
8 + end,
6 9 opts = {
7 - filetypes = { '*' },
8 - user_default_options = {
9 - RGB = true, -- #RGB hex codes
10 - RRGGBB = true, -- #RRGGBB hex codes
11 - RRGGBBAA = true, -- #RRGGBBAA hex codes
12 - AARRGGBB = true, -- 0xAARRGGBB hex codes
13 - rgb_fn = true, -- CSS rgb() and rgba() functions
14 - hsl_fn = true, -- CSS hsl() and hsla() functions
15 - css = false, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
16 - css_fn = false, -- Enable all CSS *functions*: rgb_fn, hsl_fn
17 - -- Available modes for `mode`: foreground, background, virtualtext
18 - mode = 'virtualtext', -- Set the display mode.
19 - -- names = function () return require 'bugabinga.nugu.palette' end,
20 - -- parsers can contain values used in |user_default_options|
21 - sass = { enable = false, parsers = { 'css' } }, -- Enable sass colors
22 - virtualtext = '██',
23 - -- update color values even if buffer is not focused
24 - -- example use: cmp_menu, cmp_docs
25 - always_update = false,
26 - },
27 - -- all the sub-options of filetypes apply to buftypes
28 - buftypes = {
29 - '*',
30 - '!prompt',
31 - '!popup',
32 - '!nofile',
33 - },
10 + render = 'virtual',

neovim/lua/bugabinga/plugins/heirline.lua

Modified
236 + -- FIXME: still incubating
237 + local lsp_dr_count = {
238 + condition = conditions.lsp_attached,
239 + update = { 'CursorMoved' },
240 + provider = function ()
241 + local lsp_count = prequire 'dr-lsp'.lspCount()
242 + return lsp_count and lsp_count:gsub( 'LSP', '' )
243 + end,
236 246 local lsp_active = {
237 247 condition = conditions.lsp_attached,
238 - -- FIXME: updates from parent components do not seem to update children,
239 - -- if those have their own updates?
240 248 update = { 'LspAttach', 'LspDetach', 'BufEnter', 'BufLeave' },
242 250 provider = function ()
474 482 space,
475 483 escape_status,
476 484 space,
485 + lsp_dr_count,
486 + space,
477 487 lsp_active,
478 488 space,
479 489 file_encoding,

neovim/lua/bugabinga/plugins/incubator.lua

Modified
1 -local ignored = require 'std.ignored'
2 -local icon = require 'std.icon'
4 1 -- this file lists plugins in their "incubation" phase.
5 2 -- that means i am testing those out of curiosity, but am not sure yet i wish
6 3 -- to use and depend on them.
7 ---
5 +-- global toggle for all incubating plugins. set to false to quickly, but
6 +-- temporarily, get rid of all incubating plugins.
7 +local FUCK_STABILITY = true
9 +local ignored = require 'std.ignored'
10 +local icon = require 'std.icon'
8 12 return {
9 13 -------------------------------------------------------------------------------
12 16 lazy = false,
13 17 version = '2.0',
14 18 config = true,
19 + enable = FUCK_STABILITY,
20 + },
21 + -------------------------------------------------------------------------------
22 + {
23 + 'zbirenbaum/copilot-cmp',
24 + event = 'InsertEnter',
25 + config = function () require 'copilot_cmp'.setup() end,
26 + dependencies = {
27 + 'zbirenbaum/copilot.lua',
28 + cmd = 'Copilot',
29 + config = function ()
30 + require 'copilot'.setup {
31 + suggestion = { enabled = false },
32 + panel = { enabled = false },
33 + }
34 + end,
35 + },
36 + enable = FUCK_STABILITY,
37 + },
38 + -------------------------------------------------------------------------------
39 + {
40 + -- FIXME: if view stays open, when saving session, reloading the session results in borked view.
41 + 'amrbashir/nvim-docs-view',
42 + keys = {
43 + {
44 + '<leader>tk',
45 + '<cmd>DocsViewToggle<cr>',
46 + mode = { 'n' },
47 + desc = 'Toggle stable documentation panel.',
48 + },
49 + },
50 + cmd = 'DocsViewToggle',
51 + opts = {
52 + position = 'right',
53 + width = 69,
54 + },
55 + enable = FUCK_STABILITY,
56 + },
57 + -------------------------------------------------------------------------------
58 + {
59 + -- TODO: look into demicolon.nvim for ,; repition
60 + 'mawkler/refjump.nvim',
61 + dependencies = {
63 + },
64 + keys = { ']r', '[r' },
65 + opts = {},
66 + enable = FUCK_STABILITY,
67 + },
68 + -------------------------------------------------------------------------------
69 + {
70 + 'CopilotC-Nvim/CopilotChat.nvim',
71 + branch = 'canary',
72 + cmd = 'CopilotChat',
73 + dependencies = {
74 + { 'zbirenbaum/copilot.lua' }, -- or github/copilot.vim
75 + { 'nvim-lua/plenary.nvim' }, -- for curl, log wrapper
76 + },
77 + build = 'make tiktoken', -- Only on MacOS or Linux
78 + opts = {
79 + debug = true, -- Enable debugging
80 + },
81 + enable = FUCK_STABILITY,
82 + },
83 + -------------------------------------------------------------------------------
84 + {
85 + 'chrisgrieser/nvim-rulebook',
86 + keys = {
87 + { '<leader>ri', function () require 'rulebook'.ignoreRule() end },
88 + { '<leader>rl', function () require 'rulebook'.lookupRule() end },
89 + { '<leader>ry', function () require 'rulebook'.yankDiagnosticCode() end },
90 + { '<leader>sf', function () require 'rulebook'.suppressFormatter() end, mode = { 'n', 'x' } },
91 + },
92 + enable = FUCK_STABILITY,
93 + },
94 + -------------------------------------------------------------------------------
95 + {
96 + 'chrisgrieser/nvim-dr-lsp',
97 + event = 'LspAttach',
98 + opts = {},
99 + enable = FUCK_STABILITY,
100 + },
101 + -------------------------------------------------------------------------------
103 + 'Wansmer/symbol-usage.nvim',
104 + event = 'LspAttach',
105 + opts = {},
106 + enable = FUCK_STABILITY,
107 + },
108 + -------------------------------------------------------------------------------
110 + -- FIXME: no worky in wezterm ?
111 + -- mouse idle seems to send no event.
112 + 'soulis-1256/eagle.nvim',
113 + lazy = false,
114 + init = function ()
115 + vim.o.mousemoveevent = true
116 + end,
117 + enable = FUCK_STABILITY,
16 119 -------------------------------------------------------------------------------
21 124 '<leader>tS',
22 125 '<cmd>:ShowTimeSpent<cr>',
23 - mode = {
24 - 'n',
25 - },
126 + mode = { 'n' },
26 127 desc = 'Show time spent',
130 + enable = FUCK_STABILITY,
30 132 -------------------------------------------------------------------------------
41 143 desc = 'telescope: Show recently and frequently used files.',
146 + enable = FUCK_STABILITY,
47 150 'cenk1cenk2/scratch.nvim',
151 + enable = FUCK_STABILITY,
49 153 -------------------------------------------------------------------------------
52 156 lazy = false,
53 157 build = 'cargo build --release',
54 158 opts = {},
159 + enable = FUCK_STABILITY,
160 + },
161 + -------------------------------------------------------------------------------
163 + 'roobert/surround-ui.nvim',
164 + lazy = false,
165 + dependencies = {
166 + 'kylechui/nvim-surround',
167 + 'folke/which-key.nvim',
168 + },
169 + opts = {
170 + root_key = 'ms',
171 + },
172 + enable = FUCK_STABILITY,
56 174 -------------------------------------------------------------------------------
60 178 config = function ()
61 179 require 'tiny-inline-diagnostic'.setup()
181 + enable = FUCK_STABILITY,
182 + },
183 + -------------------------------------------------------------------------------
185 + 'winston0410/range-highlight.nvim',
186 + lazy = false,
187 + dependencies = { 'winston0410/cmd-parser.nvim' },
188 + opts = { highlight = 'Visual' },
189 + enable = FUCK_STABILITY,
64 191 -------------------------------------------------------------------------------
67 194 event = 'LspAttach',
68 195 opts = {
69 196 icons = {
70 - type = icon.tye,
197 + type = icon.type .. ' ',
71 198 parameter = icon.paramter,
72 199 offspec = '', -- hint kind not defined in official LSP spec
73 200 unknown = icon.hint, -- hint kind
76 203 padding = 2,
206 + enable = FUCK_STABILITY,
207 + },
208 + -------------------------------------------------------------------------------
210 + -- FIXME: does not seem to worky? at least for lua.
211 + 'zbirenbaum/neodim',
212 + event = 'LspAttach',
213 + opts = {},
214 + enable = FUCK_STABILITY,
215 + },
216 + -------------------------------------------------------------------------------
218 + 'rafcamlet/nvim-luapad',
219 + cmd = { 'Luapad', 'LuaRun' },
220 + opts = {},
221 + enable = FUCK_STABILITY,
80 224 -------------------------------------------------------------------------------
82 226 'ravibrock/spellwarn.nvim',
83 227 event = 'VeryLazy',
84 228 config = true,
229 + enable = FUCK_STABILITY,
86 231 -------------------------------------------------------------------------------
97 242 { '[c', ":lua require('decisive').align_csv_prev_col()<cr>", { silent = true }, desc = 'Align CSV prev col', mode = 'n' },
98 243 { ']c', ":lua require('decisive').align_csv_next_col()<cr>", { silent = true }, desc = 'Align CSV next col', mode = 'n' },
245 + enable = FUCK_STABILITY,
101 247 -------------------------------------------------------------------------------
127 273 disabled_fts = ignored.filetypes,
275 + enable = FUCK_STABILITY,
130 277 -------------------------------------------------------------------------------
279 + 'folke/lazydev.nvim',
280 + dependencies = { 'justinsgithub/wezterm-types' },
281 + ft = 'lua', -- only load on lua files
282 + opts = {
283 + library = {
284 + -- Or relative, which means they will be resolved from the plugin dir.
285 + 'lazy.nvim',
286 + -- It can also be a table with trigger words / mods
287 + -- Only load luvit types when the `vim.uv` word is found
288 + { path = 'luvit-meta/library', words = { 'vim%.uv' } },
289 + -- Load the wezterm types when the `wezterm` module is required
290 + -- Needs `justinsgithub/wezterm-types` to be installed
291 + { path = 'wezterm-types', mods = { 'wezterm' } },
292 + },
293 + },
294 + enable = FUCK_STABILITY,
295 + },
297 + 'shortcuts/no-neck-pain.nvim',
298 + lazy = false,
299 + enable = FUCK_STABILITY,
300 + },
301 + -------------------------------------------------------------------------------
303 + -- TODO: bind IMove* to alt+h and alt+l with fallback to gomove
304 + -- NOTE: if this one does not work out, check https://github.com/Wansmer/sibling-swap.nvim
305 + 'mizlan/iswap.nvim',
306 + event = 'VeryLazy',
307 + enable = FUCK_STABILITY,
308 + },
309 + -------------------------------------------------------------------------------
311 + 'mfussenegger/nvim-dap',
312 + dependencies = {
314 + 'debugloop/layers.nvim',
315 + opts = {},
316 + },
317 + },
318 + keys = {
320 + '<leader>d',
321 + function ()
322 + local dap = require 'dap'
323 + if dap.session() ~= nil then
324 + DEBUG_MODE:activate()
325 + return
326 + end
327 + dap.continue()
328 + end,
329 + desc = 'launch debugger',
330 + },
331 + opts = {},
332 + config = function ( _, opts )
333 + local dap = require 'dap'
334 + -- do the setup you'd do anyway for your language of choice
335 + dap.adapters = opts.adapters
336 + dap.configurations = opts.configurations
337 + -- this is where the example starts
338 + DEBUG_MODE = Layers.mode.new() -- global, accessible from anywhere
339 + DEBUG_MODE:auto_show_help()
340 + -- this actually relates to the next example, but it is most convenient to add here
341 + DEBUG_MODE:add_hook( function ( _ )
342 + vim.cmd 'redrawstatus' -- update status line when toggled
343 + end )
344 + -- nvim-dap hooks
345 + dap.listeners.after.event_initialized['debug_mode'] = function ()
346 + DEBUG_MODE:activate()
347 + end
348 + dap.listeners.before.event_terminated['debug_mode'] = function ()
349 + DEBUG_MODE:deactivate()
350 + end
351 + dap.listeners.before.event_exited['debug_mode'] = function ()
352 + DEBUG_MODE:deactivate()
353 + end
354 + -- map our custom mode keymaps
355 + DEBUG_MODE:keymaps {
356 + n = {
358 + 's',
359 + function ()
360 + dap.step_over()
361 + end,
362 + { desc = 'step forward' },
363 + },
365 + 'c',
366 + function ()
367 + dap.continue()
368 + end,
369 + { desc = 'continue' },
370 + },
371 + { -- this acts as a way to leave debug mode without quitting the debugger
372 + '<esc>',
373 + function ()
374 + DEBUG_MODE:deactivate()
375 + end,
376 + { desc = 'exit' },
377 + },
378 + },
380 + end,
381 + },
382 + enable = FUCK_STABILITY,
383 + },

neovim/lua/bugabinga/plugins/telescope.lua

Modified
64 64 command = function () require 'telescope.builtin'.live_grep() end,
67 +map.normal {
68 + description = 'Open undo hisory...',
69 + category = 'undo',
70 + keys = '<c-p><c-u>',
71 + command = function () require 'telescope'.extensions.undo.undo() end,
67 74 map.normal {
68 75 description = 'Open search for current buffer content...',
69 76 category = 'search',
97 104 build =
98 105 function ( plugin_spec )
99 106 local result
100 - result = vim.system( { 'cmake', '-S.', '-Bbuild', '-DCMAKE_BUILD_TYPE=Release', },
101 - { text = true, cwd = plugin_spec.dir, } ):wait()
107 + result = vim.system( { 'cmake', '-S.', '-Bbuild', '-DCMAKE_BUILD_TYPE=Release' },
108 + { text = true, cwd = plugin_spec.dir } ):wait()
102 109 if result.code ~= 0 then error( result.stderr ) end
103 - result = vim.system( { 'cmake', '--build', 'build', '--config', 'Release', },
104 - { text = true, cwd = plugin_spec.dir, } ):wait()
110 + result = vim.system( { 'cmake', '--build', 'build', '--config', 'Release' },
111 + { text = true, cwd = plugin_spec.dir } ):wait()
105 112 if result.code ~= 0 then error( result.stderr ) end
106 - result = vim.system( { 'cmake', '--install', 'build', '--prefix', 'build', },
107 - { text = true, cwd = plugin_spec.dir, } ):wait()
113 + result = vim.system( { 'cmake', '--install', 'build', '--prefix', 'build' },
114 + { text = true, cwd = plugin_spec.dir } ):wait()
108 115 if result.code ~= 0 then error( result.stderr ) end
113 120 'nvim-telescope/telescope-symbols.nvim',
114 121 'jvgrootveld/telescope-zoxide',
115 122 'AckslD/nvim-neoclip.lua',
123 + 'debugloop/telescope-undo.nvim',
117 125 config = function ()
118 126 local telescope = require 'telescope'
119 127 local actions = require 'telescope.actions'
120 128 local themes = require 'telescope.themes'
122 - local ivy = themes.get_ivy { layout_config = { preview_width = 0.23, }, }
130 + local ivy = themes.get_ivy { layout_config = { preview_width = 0.23 } }
124 132 telescope.setup {
125 133 defaults = {
145 153 ['<c-s>'] = actions.file_split,
146 154 ['g?'] = actions.which_key,
148 - n = { q = actions.close, },
156 + n = { q = actions.close },
151 159 pickers = {
160 168 help_tags = ivy,
162 170 extensions = {
163 - zoxide = { prompt_title = 'Navigate deez nuts!', },
171 + zoxide = { prompt_title = 'Navigate deez nuts!' },
169 177 telescope.load_extension 'fzf'
170 178 telescope.load_extension 'zoxide'
171 179 telescope.load_extension 'neoclip'
180 + telescope.load_extension 'undo'

neovim/lua/bugabinga/save_actions.lua

Modified
13 13 action = { action, 'string' },
15 15 local parsed_command = vim.api.nvim_parse_cmd( action, {} )
16 + ---@diagnostic disable-next-line: param-type-mismatch
16 17 vim.api.nvim_cmd( parsed_command, { output = true } )
24 25 user_command.SaveActions 'Execute all declared save actions' ( apply_save_actions )
26 -map.normal.visual {
27 +map.normal.insert.visual {
27 28 description = 'Save all buffers and apply save actions',
28 29 category = 'actions',
29 30 keys = '<c-s>',

neovim/lua/std/ignored.lua

Modified
1 +-- TODO: add functions to add stuff to lists so that plugins can register these
2 +-- and they get cleaned up when plugins get removed
1 3 local filetypes = {
2 4 'NvimTree',
3 5 'Outline',
8 10 '^git.*',
9 11 'flash_prompt',
10 12 'help',
13 + 'ivy',
11 14 'lazy',
12 15 'noice',
13 16 'notify',
16 19 'starter',
17 20 'svn',
18 21 'toggleterm',
22 + 'copilot-chat',
21 25 local buftypes = {