repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: add jdks for fedora wezterm: enable mux and show current (random) font

35ad98826903d7fe69359c02b80ec18d679f64ee

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (10)

neovim/lazy-lock.json

Modified
2 2 "Comment.nvim": { "branch": "master", "commit": "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },
3 - "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" },
4 - "actions-preview.nvim": { "branch": "master", "commit": "5072b1b1065a6b22bdd46b5c21780a91d6a08071" },
5 - "auto-dark-mode.nvim": { "branch": "master", "commit": "e328dc463d238cb7d690fb4daf068eba732a5a14" },
3 + "LuaSnip": { "branch": "master", "commit": "b152822e1a4bafb6bdf11a16cc26525cbd95ee00" },
4 + "actions-preview.nvim": { "branch": "master", "commit": "ceb6e06d1c8c30d8ddfe3afb03cd2c47b08b2798" },
6 5 "better-escape.nvim": { "branch": "master", "commit": "7e86edafb8c7e73699e0320f225464a298b96d12" },
7 6 "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
8 7 "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
10 9 "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
11 10 "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
12 11 "colorizer.nvim": { "branch": "master", "commit": "107719885290366c893e1c1c58b7474cbeabfef6" },
13 - "conform.nvim": { "branch": "master", "commit": "a6965ac128eba75537ec2bc5ddd5d5e357062bdc" },
12 + "conform.nvim": { "branch": "master", "commit": "12b3995537f52ba2810a9857e8ca256881febbda" },
14 13 "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
15 - "dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" },
14 + "dressing.nvim": { "branch": "master", "commit": "5162edb1442a729a885c45455a07e9a89058be2f" },
16 15 "fidget.nvim": { "branch": "main", "commit": "1ba38e4cbb24683973e00c2e36f53ae64da38ef5" },
17 - "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
18 - "gitsigns.nvim": { "branch": "main", "commit": "52f8da33cc0cadbf1164c4a91c8bfd6895533d67" },
16 + "flash.nvim": { "branch": "main", "commit": "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },
17 + "gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
19 18 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
20 19 "heirline.nvim": { "branch": "master", "commit": "03cff30d7e7d3ba6fdc00925f015822f79cef908" },
21 20 "indent-blankline.nvim": { "branch": "master", "commit": "3d08501caef2329aba5121b753e903904088f7e6" },
22 - "lazy.nvim": { "branch": "main", "commit": "bef521ac89c8d423f9d092e37b58e8af0c099309" },
21 + "lazy.nvim": { "branch": "main", "commit": "3f13f080434ac942b150679223d54f5ca91e0d52" },
23 22 "lspkind.nvim": { "branch": "master", "commit": "1735dd5a5054c1fb7feaf8e8658dbab925f4f0cf" },
24 - "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" },
25 - "mason-tool-installer.nvim": { "branch": "main", "commit": "b129892f783740e6cf741f2ea09fa5dd512aa584" },
26 - "mason.nvim": { "branch": "main", "commit": "c43eeb5614a09dc17c03a7fb49de2e05de203924" },
27 23 "mini.bracketed": { "branch": "main", "commit": "65c7dfb51e832de9e279e5d5b0741e7af6755ab5" },
28 24 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
29 25 "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
30 26 "neogen": { "branch": "main", "commit": "0daffcec249bf42275e322361fe55b89a05ff278" },
31 - "neorg": { "branch": "main", "commit": "c17b8e9e7327e03f78fbdccfb15abd09ec607bd0" },
32 - "neotest": { "branch": "master", "commit": "f03a78cef74db5638e4312e18b767294a90de8da" },
27 + "neotest": { "branch": "master", "commit": "5caac5cc235d495a2382bc2980630ef36ac87032" },
33 28 "neotest-plenary": { "branch": "master", "commit": "dcaf5ed67a9e28a246e9783319e5aa6c9ea1c584" },
34 29 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
35 - "nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
30 + "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" },
36 31 "nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" },
37 - "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
32 + "nvim-cmp": { "branch": "main", "commit": "8f3c541407e691af6163e2447f3af1bd6e17f9a3" },
38 33 "nvim-dap": { "branch": "master", "commit": "6ae8a14828b0f3bff1721a35a1dfd604b6a933bb" },
39 - "nvim-dap-ui": { "branch": "master", "commit": "edfa93f60b189e5952c016eee262d0685d838450" },
34 + "nvim-dap-ui": { "branch": "master", "commit": "5934302d63d1ede12c0b22b6f23518bb183fc972" },
40 35 "nvim-dap-virtual-text": { "branch": "master", "commit": "3e8e207513e6ef520894950acd76b79902714103" },
41 - "nvim-genghis": { "branch": "main", "commit": "1e6855be88e2266c612903dbc337222b59a06e44" },
36 + "nvim-genghis": { "branch": "main", "commit": "01eeb090ea4947df6b6b9d8589b324b9f1aaf851" },
42 37 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
43 - "nvim-jdtls": { "branch": "master", "commit": "a4746791876166dc146eae573a1b49d24a6652e7" },
44 38 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
45 - "nvim-lint": { "branch": "master", "commit": "f098232d70cebe90e27404928c9bc19ca7a5a7b5" },
39 + "nvim-lint": { "branch": "master", "commit": "861a04313501563bb1b11f125ae9b7237a517b9b" },
46 40 "nvim-lsp-file-operations": { "branch": "master", "commit": "223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" },
47 41 "nvim-navbuddy": { "branch": "master", "commit": "f34237e8a41ebc6e2716af2ebf49854d8c5289c8" },
48 42 "nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
49 43 "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
50 - "nvim-nio": { "branch": "master", "commit": "5a3a06e5df34f1b4fc1500622b10620c49c60da6" },
51 - "nvim-spectre": { "branch": "master", "commit": "9653847cf2f225648967f6e9363643e327387579" },
52 - "nvim-surround": { "branch": "main", "commit": "a4e30d33add8a9743b4f518b3a788b3c8e5def71" },
53 - "nvim-tree.lua": { "branch": "master", "commit": "ddd1d6eb21c45433bdc65cc8015f2457998f2bf2" },
54 - "nvim-treesitter": { "branch": "master", "commit": "baaae36ac709f405c0ee5d39ef9ffd8d8160f1a3" },
55 - "nvim-treesitter-context": { "branch": "master", "commit": "e6e71047bb323fb36f5664993a42adaac252bb36" },
56 - "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" },
44 + "nvim-nio": { "branch": "master", "commit": "8765cbc4d0c629c8158a5341e1b4305fd93c3a90" },
45 + "nvim-spectre": { "branch": "master", "commit": "4651801ba37a9407b7257287aec45b6653ffc5e9" },
46 + "nvim-surround": { "branch": "main", "commit": "6d0dc3dbb557bcc6a024969da461df4ba803fc48" },
47 + "nvim-tree.lua": { "branch": "master", "commit": "76db7ed0da3027882dd0a72de18643c2e26956dc" },
48 + "nvim-treesitter": { "branch": "master", "commit": "440f177277e6049d665382a94ce1af602900b5c7" },
49 + "nvim-treesitter-context": { "branch": "master", "commit": "2650e6431f7daba5d9c2c64134fa5eb2312eb3d7" },
50 + "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" },
57 51 "nvim-treesitter-textobjects": { "branch": "master", "commit": "23b820146956b3b681c19e10d3a8bc0cbd9a1d4c" },
58 52 "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
59 53 "nvim-ts-context-commentstring": { "branch": "main", "commit": "a6382f744f584bbf71d0a563af789af7190aabda" },
60 - "nvim-web-devicons": { "branch": "master", "commit": "b3468391470034353f0e5110c70babb5c62967d3" },
54 + "nvim-web-devicons": { "branch": "master", "commit": "794bba734ec95eaff9bb82fbd112473be2087283" },
61 55 "nvim-window": { "branch": "main", "commit": "fad0dc96de265b0bdcb21d1071329e5ab1deb4af" },
62 - "oil.nvim": { "branch": "master", "commit": "8bb35eb81a48f14c4a1ef480c2bbb87ceb7cd8bb" },
63 - "overseer.nvim": { "branch": "master", "commit": "dd701ed0639ef1e10d0ca8dec039719e916c4a7b" },
64 - "pair-ls.nvim": { "branch": "master", "commit": "e7a8f55f54a6a1956b782ddefba79dc6bb308d1d" },
56 + "oil.nvim": { "branch": "master", "commit": "bcfc0a2e01def5019aa14fac2fc6de20dedb6d3d" },
57 + "overseer.nvim": { "branch": "master", "commit": "89942ad366c8a9bb93f82411de17dc7c644b4e3b" },
58 + "pair-ls.nvim": { "branch": "master", "commit": "ccf3280d8cafec48e4947dd827abbc456435dfad" },
65 59 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
66 - "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
67 - "qf_helper.nvim": { "branch": "master", "commit": "91dad029c11d1c39b0d1276eda52616f651072be" },
60 + "plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
61 + "qf_helper.nvim": { "branch": "master", "commit": "301cea47118ccfc91a7cc48e316f2abc1ec7c1c6" },
68 62 "resession.nvim": { "branch": "master", "commit": "dc8825439c619030925543a444c4186a2487c200" },
69 - "schemastore.nvim": { "branch": "main", "commit": "f7cae6f1b38cb296f48ce1a9c5ed1a419d912a42" },
63 + "schemastore.nvim": { "branch": "main", "commit": "2ef728ff7e790431f1f71052bfd4c5568157e110" },
70 64 "specs.nvim": { "branch": "main", "commit": "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },
71 65 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
72 66 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
73 67 "substitute.nvim": { "branch": "main", "commit": "17ffaeb5a1dc2dbef39cf0865d8a4b6000836714" },
74 - "suda.vim": { "branch": "master", "commit": "04469d855e36fffcda6be036eb7ff005f64fa0d6" },
68 + "suda.vim": { "branch": "master", "commit": "b97fab52f9cdeabe2bbb5eb98d82356899f30829" },
75 69 "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
76 70 "telescope-symbols.nvim": { "branch": "master", "commit": "a6d0127a53d39b9fc2af75bd169d288166118aec" },
77 71 "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" },
78 72 "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" },
79 73 "text-case.nvim": { "branch": "main", "commit": "d62c63a4e9a996c7321885937ab89920fca2c1c8" },
80 - "tint.nvim": { "branch": "master", "commit": "862835626941d263466754b9c8e2ce2cb004f5ac" },
74 + "tint.nvim": { "branch": "master", "commit": "02bd0527a315a80e4e25bb2dd7b6994fb0daae01" },
81 75 "todo-comments.nvim": { "branch": "main", "commit": "a7e39ae9e74f2c8c6dc4eea6d40c3971ae84752d" },
82 - "tree-sitter-nu": { "branch": "main", "commit": "b090676f0205f52debb93745b9ad788385583276" },
83 - "treesj": { "branch": "main", "commit": "60e27280030f9cd8dfb6ceb335922c6ff76682cc" },
76 + "tree-sitter-nu": { "branch": "main", "commit": "a58513279e98dc3ff9ed149e3b4310cbb7e11068" },
77 + "treesj": { "branch": "main", "commit": "e1e82ab4237619d342c7102c9f13d4b9833bfd39" },
84 78 "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
85 79 "venn.nvim": { "branch": "main", "commit": "a5430d75875acbe93e9685cdeb78c6eb2a329ed5" },
86 80 "vim-vscode-snippets": { "branch": "master", "commit": "812e60d1c648f889328761ec71daff09d1eb3177" },

neovim/lua/bugabinga/lsp/clients/java.lua

Modified
19 19 jdk11.path = '/usr/lib64/jvm/java-11-openjdk-11'
20 20 jdk17.path = '/usr/lib64/jvm/java-17-openjdk-17'
21 21 jdk21.path = '/usr/lib64/jvm/java-21-openjdk-21'
22 + elseif host == 'fedora' then
23 + jdk11.path = '/usr/lib/jvm/java-11-openjdk'
24 + jdk17.path = '/usr/lib/jvm/java-17-openjdk'
25 + jdk21.path = '/usr/lib/jvm/java-21-openjdk'
22 26 elseif host == 'NB-00718' then
23 27 jdk11.path = 'C:/Users/okr/scoop/apps/openjdk11/current'
24 28 jdk17.path = 'C:/Users/okr/scoop/apps/openjdk17/current'

neovim/lua/bugabinga/nugu/init.lua

Modified
46 46 local set_group_properties = function ( self, properties )
47 - vim.validate {
48 - properties = { properties, 'table', },
49 - -- • fg (or foreground): color name or "#RRGGBB", see note.
50 - ['properties.fg'] = { properties.fg, 'string', true, },
51 - -- • bg (or background): color name or "#RRGGBB", see note.
52 - ['properties.bg'] = { properties.bg, 'string', true, },
53 - -- • sp (or special): color name or "#RRGGBB"
54 - ['properties.sp'] = { properties.sp, 'string', true, },
55 - -- • blend: integer between 0 and 100
56 - ['properties.blend'] = { properties.blend, 'number', true, },
57 - -- • bold: boolean
58 - ['properties.bold'] = { properties.bold, 'boolean', true, },
59 - -- • standout: boolean
60 - ['properties.standout'] = { properties.standout, 'boolean', true, },
61 - -- • underline: boolean
62 - ['properties.underline'] = { properties.underline, 'boolean', true, },
63 - -- • undercurl: boolean
64 - ['properties.undercurl'] = { properties.undercurl, 'boolean', true, },
65 - -- • underdotted: boolean
66 - ['properties.underdotted'] = { properties.underdotted, 'boolean', true, },
67 - -- • underdashed: boolean
68 - ['properties.underdashed'] = { properties.underdashed, 'boolean', true, },
69 - -- • strikethrough: boolean
70 - ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true, },
71 - -- • italic: boolean
72 - ['properties.italic'] = { properties.italic, 'boolean', true, },
73 - -- • reverse: boolean
74 - ['properties.reverse'] = { properties.reverse, 'boolean', true, },
75 - -- • nocombine: boolean
76 - ['properties.nocombine'] = { properties.nocombine, 'boolean', true, },
77 - -- • default: Don't override existing definition |:hi-default|
78 - ['properties.default'] = { properties.default, 'boolean', true, },
79 - -- • ctermfg: Sets foreground of cterm color |ctermfg|
80 - ['properties.ctermfg'] = { properties.ctermfg, 'string', true, },
81 - -- • ctermbg: Sets background of cterm color |ctermbg|
82 - ['properties.ctermbg'] = { properties.ctermbg, 'string', true, },
83 - -- • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above.
84 - ['properties.cterm'] = { properties.cterm, 'table', true, },
85 - -- • force: if true force update the highlight group when it exists.
86 - ['properties.force'] = { properties.force, 'boolean', true, },
87 - }
88 - -- vim.print( 'SET GROUP PROPERTIES', self, properties )
89 - for key, value in pairs( properties ) do
90 - self[key] = value
91 - end
47 + vim.validate {
48 + properties = { properties, 'table', },
49 + -- • fg (or foreground): color name or "#RRGGBB", see note.
50 + ['properties.fg'] = { properties.fg, 'string', true, },
51 + -- • bg (or background): color name or "#RRGGBB", see note.
52 + ['properties.bg'] = { properties.bg, 'string', true, },
53 + -- • sp (or special): color name or "#RRGGBB"
54 + ['properties.sp'] = { properties.sp, 'string', true, },
55 + -- • blend: integer between 0 and 100
56 + ['properties.blend'] = { properties.blend, 'number', true, },
57 + -- • bold: boolean
58 + ['properties.bold'] = { properties.bold, 'boolean', true, },
59 + -- • standout: boolean
60 + ['properties.standout'] = { properties.standout, 'boolean', true, },
61 + -- • underline: boolean
62 + ['properties.underline'] = { properties.underline, 'boolean', true, },
63 + -- • undercurl: boolean
64 + ['properties.undercurl'] = { properties.undercurl, 'boolean', true, },
65 + -- • underdotted: boolean
66 + ['properties.underdotted'] = { properties.underdotted, 'boolean', true, },
67 + -- • underdashed: boolean
68 + ['properties.underdashed'] = { properties.underdashed, 'boolean', true, },
69 + -- • strikethrough: boolean
70 + ['properties.strikethrough'] = { properties.strikethrough, 'boolean', true, },
71 + -- • italic: boolean
72 + ['properties.italic'] = { properties.italic, 'boolean', true, },
73 + -- • reverse: boolean
74 + ['properties.reverse'] = { properties.reverse, 'boolean', true, },
75 + -- • nocombine: boolean
76 + ['properties.nocombine'] = { properties.nocombine, 'boolean', true, },
77 + -- • default: Don't override existing definition |:hi-default|
78 + ['properties.default'] = { properties.default, 'boolean', true, },
79 + -- • ctermfg: Sets foreground of cterm color |ctermfg|
80 + ['properties.ctermfg'] = { properties.ctermfg, 'string', true, },
81 + -- • ctermbg: Sets background of cterm color |ctermbg|
82 + ['properties.ctermbg'] = { properties.ctermbg, 'string', true, },
83 + -- • cterm: cterm attribute map, like |highlight-args|. If not set, cterm attributes will match those from the attribute map documented above.
84 + ['properties.cterm'] = { properties.cterm, 'table', true, },
85 + -- • force: if true force update the highlight group when it exists.
86 + ['properties.force'] = { properties.force, 'boolean', true, },
87 + }
88 + -- vim.print( 'SET GROUP PROPERTIES', self, properties )
89 + for key, value in pairs( properties ) do
90 + self[key] = value
91 + end
94 94 local new_group = function ()
95 - return setmetatable( {}, {
96 - __call = set_group_properties,
97 - } )
95 + return setmetatable( {}, {
96 + __call = set_group_properties,
97 + } )
100 100 local add_group = function ( self, key )
101 - if not self.groups[key] then
102 - self.groups[key] = new_group()
103 - end
104 - return self.groups[key]
101 + if not self.groups[key] then
102 + self.groups[key] = new_group()
103 + end
104 + return self.groups[key]
107 107 local link_group = function ( self, key, value )
108 - -- vim.print( 'linking group', self, key, value )
109 - local group = add_group( self, key )
110 - for name, link_group in pairs( self.groups ) do
111 - if link_group == value then
112 - -- vim.print( 'found group to link ' .. name .. ' to ' .. key )
113 - group.link = name
114 - return group
115 - end
116 - end
108 + -- vim.print( 'linking group', self, key, value )
109 + local group = add_group( self, key )
110 + for name, link_group in pairs( self.groups ) do
111 + if link_group == value then
112 + -- vim.print( 'found group to link ' .. name .. ' to ' .. key )
113 + group.link = name
114 + return group
115 + end
116 + end
119 119 local _ = setmetatable( { groups = {}, }, {
120 - __index = add_group,
121 - __newindex = link_group,
120 + __index = add_group,
121 + __newindex = link_group,
124 124 _.Debug { fg = ui_normal, bg = debug, bold = true, }
198 198 _.Label = _.Statement
199 199 _.Operator = _.Statement
200 200 _.Keyword = _.Statement
201 +_.Parameter { fg = content_focus, }
201 202 _.Exception = _.Statement
203 204 _.PreProc { fg = content_important_global, bg = content_unfocus, bold = true, }
205 206 _.Define = _.PreProc
206 207 _.Macro = _.PreProc
207 208 _.PreCondit = _.PreProc
208 -_.Parameter { fg = content_focus, }
210 -_.Type = _.Statement
210 +_.Type = _.Normal
211 211 _.StorageClass = _.Statement
212 212 _.Structure = _.Statement
213 213 _.Typedef = _.Statement
265 265 _['@constant'] = _.Constant
266 266 _['@constant.builtin'] = _.Special
267 267 _['@constant.macro'] = _.Define
268 +_['@attribute'] = _.Keyword
268 269 _['@define'] = _.Define
269 270 _['@macro'] = _.Macro
270 271 _['@string'] = _.String
291 292 _['@keyword.return'] { fg = _.Keyword.fg, bg = _.Keyword.bg, underline = true, bold = true, }
292 293 _['@exception'] = _.Exception
293 294 _['@variable'] = _.Identifier
295 +_['@variable.parameter'] = _.Parameter
294 296 _['@type'] = _.Type
297 +_['@type.builtin'] = _.Type
295 298 _['@type.definition'] = _.Typedef
296 299 _['@storageclass'] = _.StorageClass
297 300 _['@structure'] = _.Structure
298 -_['@namespace'] = _.PreProc
301 +_['@namespace'] = _.Italic
299 302 _['@include'] = _.Include
300 303 _['@preproc'] = _.PreProc
301 304 _['@debug'] = _.Debug
302 305 _['@tag'] = _.Tag
307 +_['@markup.raw.block'] = _.PreProc
304 309 _['@lsp.type.namespace'] = _['@namespace']
305 310 _['@lsp.type.type'] = _['@type']
311 +_['@lsp.type.modifier'] = _['@keyword']
306 312 _['@lsp.type.class'] = _['@type']
307 313 _['@lsp.type.enum'] = _['@type']
308 314 _['@lsp.type.interface'] = _['@type']
534 540 --TODO: Oil highlights
536 542 return function ()
537 - preview.setup()
538 - local namespace = 0
539 - for name, group in pairs( _.groups ) do
540 - vim.api.nvim_set_hl( namespace, name, group )
541 - end
543 + preview.setup()
544 + local namespace = 0
545 + for name, group in pairs( _.groups ) do
546 + vim.api.nvim_set_hl( namespace, name, group )
547 + end

neovim/lua/bugabinga/options/behaviour.lua

Modified
6 6 -- How long to wait between key sequences in order to chain them. e.g. <LEADER>b
7 7 vim.opt.timeoutlen = 250
9 +-- allow commands like find, grep, ... to search for files recursively
10 +vim.opt.path:append '**'
9 12 -- wrap line movements, when start/end is reached
10 13 vim.opt.whichwrap:append '<'
11 14 vim.opt.whichwrap:append '>'

neovim/lua/bugabinga/plugins/auto-dark-mode.lua

Modified
1 1 return {
2 2 'f-person/auto-dark-mode.nvim',
3 3 dev = true,
4 - -- event = 'VeryLazy',
5 4 lazy = false,
6 5 opts = {
7 6 -- interval of 0 freezes neovim on quit

neovim/lua/bugabinga/plugins/overseer.lua

Deleted
deleted file mode 100644
1 -local map = require 'std.map'
2 -local user_command = require 'std.user_command'
4 -map.normal {
5 - description = 'Toggle task view',
6 - category = 'tasks',
7 - keys = '<leader>99',
8 - command = function () prequire 'overseer'.toggle { enter = true, direction = 'right', } end,
9 -}
11 -map.normal {
12 - description = 'Run task',
13 - category = 'tasks',
14 - keys = '<leader>9r',
15 - command = function () prequire 'overseer'._run_template() end,
18 -map.normal {
19 - description = 'Run any command as task',
20 - category = 'tasks',
21 - keys = '<leader>9c',
22 - command = function () prequire 'overseer'._run_command() end,
25 -map.normal {
26 - description = 'Load task bundle',
27 - category = 'tasks',
28 - keys = '<leader>9r',
29 - command = function () prequire 'overseer'._load_bundle() end,
32 -map.normal {
33 - description = 'Run an action on the most recent task, or the task under the cursor',
34 - category = 'tasks',
35 - keys = '<leader>9d',
36 - command = function () prequire 'overseer'._quick_action() end,
39 -map.normal {
40 - description = 'Select a task to run an action on',
41 - category = 'tasks',
42 - keys = '<leader>9s',
43 - command = function () prequire 'overseer'._task_action() end,
46 -map.normal {
47 - description = 'Display diagnostic information about overseer',
48 - category = 'tasks',
49 - keys = '<leader>9i',
50 - command = function () prequire 'overseer'._info() end,
53 -user_command.OverseerDebugParser
54 -'Open a tab with windows laid out for debugging a parser' (
55 - function ()
56 - prequire 'overseer'.debug_parser()
57 - end
58 - )
60 -user_command.Grep
61 -'Run your grepprg as an Overseer task'
62 - { nargs = '*', bang = true, bar = true, complete = 'file', } (
63 - function ( params )
64 - local args = vim.fn.expandcmd( params.args )
65 - -- Insert args at the '$*' in the grepprg
66 - local cmd, num_subs = vim.o.grepprg:gsub( '%$%*', args )
67 - if num_subs == 0 then
68 - cmd = cmd .. ' ' .. args
69 - end
70 - local cwd
71 - prequire( 'oil', function ( oil )
72 - cwd = oil.get_current_dir()
73 - end )
74 - local task = prequire 'overseer'.new_task {
75 - cmd = cmd,
76 - cwd = cwd,
77 - name = 'grep ' .. args,
78 - components = {
79 - {
80 - 'on_output_quickfix',
81 - errorformat = vim.o.grepformat,
82 - open = not params.bang,
83 - open_height = 8,
84 - items_only = true,
85 - },
86 - -- We don't care to keep this around as long as most tasks
87 - { 'on_complete_dispose', timeout = 30, },
88 - 'default',
89 - },
90 - }
91 - task:start()
92 - end
93 - )
95 -user_command.Make
96 -'Run your makeprg as an Overseer task'
97 - { nargs = '*', bang = true, } (
98 - function ( params )
99 - -- Insert args at the '$*' in the makeprg
100 - local cmd, num_subs = vim.o.makeprg:gsub( '%$%*', params.args )
101 - if num_subs == 0 then
102 - cmd = cmd .. ' ' .. params.args
103 - end
104 - local task = prequire 'overseer'.new_task {
105 - cmd = vim.fn.expandcmd( cmd ),
106 - components = {
107 - { 'on_output_quickfix', open = not params.bang, open_height = 8, },
108 - 'unique',
109 - 'default',
110 - },
111 - }
112 - task:start()
113 - end
114 - )
116 -return {
117 - {
118 - 'stevearc/resession.nvim',
119 - lazy = true,
120 - opts = {
121 - extensions = {
122 - overseer = {
123 - status = { 'RUNNING', },
124 - },
125 - },
126 - },
127 - },
128 - {
129 - 'stevearc/overseer.nvim',
130 - opts = {
131 - strategy = { 'jobstart', },
132 - dap = false,
133 - log = {
134 - {
135 - type = 'echo',
136 - level = vim.log.levels.WARN,
137 - },
138 - {
139 - type = 'file',
140 - filename = 'overseer.log',
141 - level = vim.log.levels.DEBUG,
142 - },
143 - },
144 - component_aliases = {
145 - default = {
146 - {
147 - 'display_duration',
148 - detail_level = 2,
149 - },
150 - 'on_output_summarize',
151 - 'on_exit_set_status',
152 - { 'on_complete_notify', system = 'unfocused', },
153 - 'on_complete_dispose',
154 - },
155 - default_neotest = {
156 - 'unique',
157 - { 'on_complete_notify', system = 'unfocused', on_change = true, },
158 - 'default',
159 - },
160 - },
161 - },
162 - }, }

wezterm/bugabinga/key_binds.lua

Modified
6 6 local font_size_mode = ' Change Font Size (=-+)'
7 7 local pane_mode = ' Pane (hjklqr)'
8 8 local resize_pane_mode = 'ﭕ Resize Pane (hjkl)'
9 -local bracketed_mode = ' Navigate to...'
10 -local navigate_forward_mode = ' Navigate forward ...'
11 -local navigate_backward_mode = ' Navigate backward ...'
9 +local navigate_forward_mode = ' Navigate forward (bw)'
10 +local navigate_backward_mode = ' Navigate backward (bw)'
13 12 local key_tables = {
14 13 [resize_pane_mode] = {
21 20 { key = 'Escape', action = 'PopKeyTable' },
23 22 [font_size_mode] = {
24 - { key = '+', action = wez.action.IncreaseFontSize },
23 + { key = '+', mods = 'SHIFT', action = wez.action.IncreaseFontSize },
25 24 { key = '-', action = wez.action.DecreaseFontSize },
26 25 { key = '=', action = wez.action.ResetFontSize },
33 32 { key = 'k', action = wez.action.ActivatePaneDirection 'Up' },
34 33 { key = 'l', action = wez.action.ActivatePaneDirection 'Right' },
36 - { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
37 - { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' }, },
35 + { key = 'v', action = wez.action.SplitHorizontal { domain = 'CurrentPaneDomain' }, },
36 + { key = 's', action = wez.action.SplitVertical { domain = 'CurrentPaneDomain' }, },
39 38 { key = 'r', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false } },
43 42 { key = 'Escape', action = 'PopKeyTable' },
45 - [bracketed_mode] = {
46 - },
47 44 [navigate_forward_mode] = {
49 46 key = 'b', -- b as in buffer in vim
50 47 action = wez.action.ActivateTabRelative(1),
49 + {
50 + key = 'w', -- next workspace
51 + action = wez.action.SwitchWorkspaceRelative(1),
52 + },
53 54 [navigate_backward_mode] = {
55 56 key = 'b',
56 57 action = wez.action.ActivateTabRelative(-1),
59 + {
60 + key = 'w', -- prev workspace
61 + action = wez.action.SwitchWorkspaceRelative(-1),
62 + },

wezterm/bugabinga/status.lua

Modified
3 3 local wez = require 'wezterm'
5 5 local DELIMITER = ' · '
7 7 local zoomed = function(pane)
8 - local tab = pane:tab()
9 - local any_is_zoomed = false
10 - if tab then
11 - for _, info in ipairs(tab:panes_with_info()) do
12 - if info.is_zoomed then
13 - any_is_zoomed = true
14 - end
15 - end
16 - end
17 - return any_is_zoomed and '🔎 Zoomed Pane' .. DELIMITER or ''
8 + local tab = pane:tab()
9 + local any_is_zoomed = false
10 + if tab then
11 + for _, info in ipairs(tab:panes_with_info()) do
12 + if info.is_zoomed then
13 + any_is_zoomed = true
14 + end
15 + end
16 + end
17 + return any_is_zoomed and '🔎 Zoomed Pane' or nil
20 --- Show which key table is active in the status area
21 -wez.on('update-right-status', function(window, pane)
22 - local name = window:active_key_table()
23 - local current_workspace = ' ' .. window:active_workspace() .. DELIMITER
24 - local zoomed_state = zoomed(pane)
20 +-- TODO: docs have crazy example of styling the status bar, check them out
26 - local status = name or current_workspace
27 - window:set_right_status(zoomed_state .. status)
22 +-- Show which key table is active in the status area
23 +wez.on('update-status', function(window, pane)
24 + local name = window:active_key_table()
25 + local current_workspace = window:active_workspace()
26 + local zoomed_state = zoomed(pane)
27 + local leader = nil
28 + if window:leader_is_active() then
29 + leader = 'LEADER'
30 + end
31 + local fonts = {}
32 + for _, font in pairs(window:effective_config().font.font) do
33 + table.insert(fonts, font.family)
34 + end
35 + local font = wez.format {
36 + { Text = ' Font ' },
37 + { Attribute = { Intensity = 'Bold' } },
38 + { Text = table.concat(fonts, ', ') },
39 + 'ResetAttributes'
40 + }
42 + local status = { ' ' }
43 + if zoomed_state then table.insert(status, zoomed_state) end
44 + if current_workspace then table.insert(status, current_workspace) end
45 + if leader then table.insert(status, leader) end
46 + if font then table.insert(status, font) end
48 + window:set_right_status(table.concat(status, DELIMITER))
28 49 end)

wezterm/bugabinga/workspaces.lua

Modified
26 26 local dork_ws = 'dorkfiles editing'
27 27 local dork_cwd = WORKSPACE .. '/dotfiles'
28 28 local dork_tab, dork_pane, dork_window = mux.spawn_window { cwd = dork_cwd, workspace = dork_ws }
29 - local dork_top_pane = dork_pane:split { cwd = dork_cwd, direction = 'Top', size = 0.55 }
30 - dork_top_pane:split { cwd = dork_cwd, direction = 'Left', size = 0.7 }
29 + local dork_top_pane = dork_pane:split { cwd = dork_cwd, direction = 'Top', size = 0.42 }
30 + dork_top_pane:split { cwd = dork_cwd, direction = 'Left', size = 0.69 }
31 31 dork_tab:set_title 'Dorkfiles Editing'
32 32 local wezterm_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/wezterm' }
33 33 wezterm_config_tab:set_title 'Wezterm'
34 - wezterm_config_tab:active_pane():split { cwd = dork_cwd .. '/wezterm', direction = 'Left', size = 0.7 }
35 - local helix_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/helix' }
36 - helix_config_tab:set_title 'Helix'
37 - helix_config_tab:active_pane():split { cwd = dork_cwd .. '/helix', direction = 'Left', size = 0.7 }
34 + wezterm_config_tab:active_pane():split { cwd = dork_cwd .. '/wezterm', direction = 'Left', size = 0.69 }
35 + local helix_config_tab = dork_window:spawn_tab { cwd = dork_cwd .. '/neovim' }
36 + helix_config_tab:set_title 'Neovim'
37 + helix_config_tab:active_pane():split { cwd = dork_cwd .. '/neovim', direction = 'Left', size = 0.69 }
40 + local code_ws = 'code'
41 + local code_cwd = wez.home_dir
42 + local code_tab, code_pane, code_window = mux.spawn_window { cwd = code_cwd, workspace = code_ws }
43 + local code_top_pane = code_pane:split { cwd = code_cwd, direction = 'Top', size = 0.42 }
44 + code_pane:split { cwd = code_cwd, direction = 'Right', size = 0.42 }
45 + code_top_pane:split { cwd = code_cwd, direction = 'Right', size = 0.42 }
46 + code_window:spawn_tab { args = { 'nvim' } }
47 + code_tab:set_title 'Code'
48 + code_top_pane:activate()
40 50 local default_ws = 'default'
41 51 local default_cwd = wez.home_dir
42 52 local default_tab, default_pane, default_window = mux.spawn_window { cwd = default_cwd, workspace = default_ws }
43 - local default_top_pane = default_pane:split { cwd = default_cwd, direction = 'Top', size = 0.5 }
44 - default_pane:split { cwd = default_cwd, direction = 'Right', size = 0.5 }
45 - default_top_pane:split { cwd = default_cwd, direction = 'Right', size = 0.5 }
53 + local default_top_pane = default_pane:split { cwd = default_cwd, direction = 'Top', size = 0.42 }
54 + default_pane:split { cwd = default_cwd, direction = 'Right', size = 0.42 }
55 + default_top_pane:split { cwd = default_cwd, direction = 'Right', size = 0.42 }
46 56 default_window:spawn_tab { args = { 'btm' } }
47 57 default_tab:set_title 'Default'
48 58 default_top_pane:activate()
53 63 wez.on('gui-attached', function()
54 64 maximize_window()
55 - -- mux server seems very slow on windows...
56 - if win32 then setup_workspaces() end
57 65 end)
59 67 -- NOTE(oli): errors in here do not show up as configuration errors

wezterm/wezterm.lua

Modified
3 3 local wez = require 'wezterm'
4 4 local nugu = require 'bugabinga.nugu'
6 6 local key_binds = require 'bugabinga.key_binds'
7 7 local auto_dark_mode = require 'bugabinga.auto_dark_mode'
8 --- local workspaces = require 'bugabinga.workspaces'
8 +local workspaces = require 'bugabinga.workspaces'
9 9 require 'bugabinga.status'
10 10 local zen_mode = require 'bugabinga.neovim_zen_mode'
11 11 zen_mode(wez)
13 13 local hostname = wez.hostname()
14 14 local enable_wayland = false
15 -local window_decorations = 'RESIZE'
15 +local window_decorations = 'INTEGRATED_BUTTONS|RESIZE'
16 16 local font_size = 11.0
17 17 -- local font = wez.font 'IBM Plex Mono'
18 18 local font = wez.font 'Cousine'
23 23 font_size = 16
24 24 local font_names = {}
25 25 local nerdfonts = io.open(wez.config_dir .. '/nerdfonts', 'r')
26 - for font_name in nerdfonts:lines() do
27 - table.insert(font_names,font_name)
26 + if nerdfonts then
27 + for font_name in nerdfonts:lines() do
28 + table.insert(font_names, font_name)
29 + end
30 + local random_font = font_names[math.random(#font_names)]
31 + font = wez.font(random_font)
29 - local random_font = font_names[math.random(#font_names)]
30 - font = wez.font(random_font)
34 + window_decorations = 'NONE'
33 37 return {
38 42 default_prog = { 'nu', '--login' },
39 43 default_cursor_style = 'SteadyBlock',
45 + unix_domains = {
46 + {
47 + name = 'mux'
48 + }
49 + },
50 + default_gui_startup_args = { 'connect', 'mux' },
41 52 font = font,
42 53 font_size = font_size,
43 54 freetype_load_target = 'Light',
44 55 freetype_render_target = 'HorizontalLcd',
45 - underline_position = "-2pt",
56 + -- underline_position = "-2pt",
46 57 warn_about_missing_glyphs = false,
48 59 color_scheme = auto_dark_mode,
49 60 color_schemes = nugu,
50 61 cursor_blink_rate = 0,
51 62 -- https://github.com/wez/wezterm/issues/2635
52 - force_reverse_video_cursor = true,
63 + -- force_reverse_video_cursor = true,
53 64 -- cursor_thickness = '1cell',
54 65 window_decorations = window_decorations,
55 66 enable_wayland = enable_wayland,