repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm: font size keybinds/mouse, mode badge, resize HJKL, tab move neovim: remove opencode, update surround, trim plugins nushell: config updates git/ssh: cleanup

a9de7bde0e0b53b21c07bf8af1bede01a4ec87f4

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (15)

git/gitconfig

Modified
27 27 symlinks = true
28 28 untrackedcache = true
29 29 pager = delta
30 + compression = 9
30 31 whitespace = error
32 33 [log]
121 122 cmd = "nvim -d \"$LOCAL\" \"$MERGED\" \"$REMOTE\" "
123 124 [branch]
124 - sort = commiterdate
125 + sort = committerdate
126 + autoSetupMerge = inherit
127 129 sort = version:refname

git/gitconfig.isp

Modified
18 18 autocrlf = false
19 19 [branch]
20 20 # Immer den neusten Branch auf anhieb finden, da diese wahrscheinlich relevanter sind
21 - sort = commiterdate
21 + sort = committerdate
22 22 [pull]
23 23 # führt git pull mit --rebase aus, um unnötige Merge-Commits zu vermeiden
24 24 rebase = true

neovim/init.lua

Modified
101 101 --[[ PLUGINS ]]
102 102 --TODO: slowly move over plugins to "my stuff"
103 -require 'bugabinga.opencode'
104 103 require 'bugabinga.autotag'
105 104 require 'bugabinga.colorizer'
106 105 require 'bugabinga.devicons'

neovim/lua/bugabinga/opencode.lua

Deleted
deleted file mode 100644
1 -local map = require 'std.map'
2 -local auto = require 'std.auto'
3 -local puk = require 'std.puk'
5 -puk 'opencode'
7 -vim.g.opencode_opts = {
8 - lsp = {
9 - enabled = true,
10 - },
11 - events = {
12 - enabled = true,
13 - reload = true,
14 - permissions = {
15 - enabled = true,
16 - edits = {
17 - enabled = true,
18 - },
19 - },
20 - },
23 -vim.o.autoread = true -- Required for `opts.events.reload`
25 -local opencode = require 'opencode'
27 -require('bugabinga.statusline').register(function()
28 - local ok, status = pcall(opencode.statusline)
29 - if not ok then return '' end
30 - return status
31 -end)
33 -map.normal.terminal {
34 - description = 'toggle opencode terminal',
35 - category = 'opencode',
36 - keys = '<C-.>',
37 - command = function ()
38 - opencode.toggle()
39 - end,
42 -map.normal.visual {
43 - description = 'ask opencode (with @this)',
44 - category = 'opencode',
45 - keys = '<leader>oa',
46 - command = function ()
47 - opencode.ask( '@this: ', { submit = true } )
48 - end,
51 -map.normal {
52 - description = 'ask opencode (free form)',
53 - category = 'opencode',
54 - keys = '<leader>oA',
55 - command = function ()
56 - opencode.ask()
57 - end,
60 -map.normal.visual {
61 - description = 'opencode picker',
62 - category = 'opencode',
63 - keys = '<leader>ox',
64 - command = function ()
65 - opencode.select()
66 - end,
69 -map.normal {
70 - description = 'scroll opencode up',
71 - category = 'opencode',
72 - keys = '<S-C-u>',
73 - command = function ()
74 - opencode.command 'session.half.page.up'
75 - end,
78 -map.normal {
79 - description = 'scroll opencode down',
80 - category = 'opencode',
81 - keys = '<S-C-d>',
82 - command = function ()
83 - opencode.command 'session.half.page.down'
84 - end,
87 -map.normal.visual {
88 - description = 'send motion to opencode',
89 - category = 'opencode',
90 - keys = 'go',
91 - command = function ()
92 - return opencode.operator '@this '
93 - end,
94 - expr = true,
97 -map.normal {
98 - description = 'send current line to opencode',
99 - category = 'opencode',
100 - keys = 'goo',
101 - command = function ()
102 - return opencode.operator '@this ' .. '_'
103 - end,
104 - expr = true,
107 -auto 'opencode_events' {
108 - events = 'User',
109 - pattern = 'OpencodeEvent:*',
110 - command = function ( args )
111 - local event = args.data.event
112 - if event.type == 'session.idle' then
113 - vim.notify( '`opencode` finished responding', vim.log.levels.INFO )
114 - elseif event.type == 'session.error' then
115 - vim.notify( '`opencode` encountered an error', vim.log.levels.ERROR )
116 - end
117 - end,

neovim/lua/bugabinga/surround.lua

Modified
1 1 local puk = require 'std.puk'
2 +local map = require 'std.map'
3 -puk.defer 'nvim-surround' (function(surround)
4 - surround.setup {
5 - -- setting key maps for this plugin is pretty intricate.
6 - -- normally I would set them myself, but in this case not...
7 - keymaps = {
8 - insert = '<C-g>s',
9 - insert_line = '<C-g>S',
4 +puk.defer 'nvim-surround' ( function ( surround )
5 + vim.g.nvim_surround_no_mappings = true
6 + surround.setup {
7 + move_cursor = 'sticky',
8 + }
11 - normal = 'sa',
12 - normal_line = 'sA',
14 - normal_cur = 'sc',
15 - normal_cur_line = 'sC',
17 - visual = 'sa',
18 - visual_line = 'sA',
20 - delete = 'sd',
22 - change = 'sr',
23 - change_line = 'sR',
24 - },
25 - }
26 -end)
10 + map.normal { keys = 'ma', command = '<Plug>(nvim-surround-normal)', category = 'surround', description = 'pair around motion' }
11 + map.normal { keys = 'ml', command = '<Plug>(nvim-surround-normal-cur)', category = 'surround', description = 'pair around current line' }
12 + map.normal { keys = 'mL', command = '<Plug>(nvim-surround-normal-cur-line)', category = 'surround', description = 'pair around current line, new lines' }
13 + map.normal { keys = 'mm', command = '<Plug>(nvim-surround-normal-line)', category = 'surround', description = 'pair around motion, new lines' }
14 + map.normal.visual { keys = 'm', command = '<Plug>(nvim-surround-visual)', category = 'surround', description = 'pair around selection' }
15 + map.normal.visual { keys = 'M', command = '<Plug>(nvim-surround-visual-line)', category = 'surround', description = 'pair around selection, new lines' }
16 + map.normal { keys = 'md', command = '<Plug>(nvim-surround-delete)', category = 'surround', description = 'delete' }
17 + map.normal { keys = 'mr', command = '<Plug>(nvim-surround-change)', category = 'surround', description = 'change' }
18 + map.normal { keys = 'mR', command = '<Plug>(nvim-surround-change-line)', category = 'surround', description = 'change pair, new lines' }
19 +end )

neovim/puk.plugins.nuon

Modified
2 - [
3 - name,
4 - source,
5 - repo,
6 - branch,
7 - commit,
8 - build
9 - ];
10 - [
11 - nvim-treesitter,
12 - github,
13 - nvim-treesitter/nvim-treesitter,
14 - main,
15 - "4916d6592ede8c07973490d9322f187e07dfefac",
16 - [
2 + [name, source, repo, branch, commit, build];
3 + [nvim-treesitter, github, nvim-treesitter/nvim-treesitter, main, "4916d6592ede8c07973490d9322f187e07dfefac", [
17 4 nvim,
18 5 --headless,
22 9 "lua require 'bugabinga.treesitter'",
23 10 "+:TSUpdate",
25 - ]
26 - ],
27 - [
28 - nvim-treesitter-textobjects,
29 - github,
30 - nvim-treesitter/nvim-treesitter-textobjects,
31 - main,
32 - "93d60a475f0b08a8eceb99255863977d3a25f310",
33 - null
34 - ],
35 - [
36 - nvim-ts-autotag,
37 - github,
38 - windwp/nvim-ts-autotag,
39 - main,
40 - "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595",
41 - null
42 - ],
43 - [
44 - oil,
45 - github,
46 - "stevearc/oil.nvim",
47 - master,
48 - "0fcc83805ad11cf714a949c98c605ed717e0b83e",
49 - null
50 - ],
51 - [
52 - nvim-surround,
53 - github,
54 - kylechui/nvim-surround,
55 - main,
56 - "19e39478ccf5fa2eefdb3595af2f2927d0ff2416",
57 - null
58 - ],
59 - [
60 - conform,
61 - github,
62 - "stevearc/conform.nvim",
63 - master,
64 - "086a40dc7ed8242c03be9f47fbcee68699cc2395",
65 - null
66 - ],
67 - [
68 - plenary,
69 - github,
70 - "nvim-lua/plenary.nvim",
71 - master,
72 - "b9fd5226c2f76c951fc8ed5923d85e4de065e509",
73 - null
74 - ],
75 - [
76 - "mini.splitjoin",
77 - github,
78 - "echasnovski/mini.splitjoin",
79 - main,
80 - "8bd5a3d581b9f3dd3bc91fe495e210b8b0ee981d",
81 - null
82 - ],
83 - [
84 - "mini.pick",
85 - github,
86 - "echasnovski/mini.pick",
87 - main,
88 - "fd7e7efadddcec3f3d7f3b363a99aa44e7286c65",
89 - null
90 - ],
91 - [
92 - "mini.extra",
93 - github,
94 - "echasnovski/mini.extra",
95 - main,
96 - "ca1932c95c6e757c06d2cc133b87835a01d909dd",
97 - null
98 - ],
99 - [
100 - "mini.hipatterns",
101 - github,
102 - "echasnovski/mini.hipatterns",
103 - main,
104 - "a3ffba45e4119917b254c372df82e79f7d8c4aad",
105 - null
106 - ],
107 - [
108 - "mini.clue",
109 - github,
110 - "echasnovski/mini.clue",
111 - main,
112 - "f8a11789cf34a7bae396dc0f828d06cdb5066793",
113 - null
114 - ],
115 - [
116 - "mini.bracketed",
117 - github,
118 - "echasnovski/mini.bracketed",
119 - main,
120 - "efb969a6a9583a5d48bfbe36363769351e38f967",
121 - null
122 - ],
123 - [
124 - "mini.diff",
125 - github,
126 - "echasnovski/mini.diff",
127 - main,
128 - "ab11575a6c147ecfba894d676d0c93e855021d34",
129 - null
130 - ],
131 - [
132 - "mini.jump2d",
133 - github,
134 - "echasnovski/mini.jump2d",
135 - main,
136 - "c0df3170873b712b61951781aeee9942a92ba1f1",
137 - null
138 - ],
139 - [
140 - "mini.move",
141 - github,
142 - "echasnovski/mini.move",
143 - main,
144 - "74d140143b1bb905c3d0aebcfc2f216fd237080e",
145 - null
146 - ],
147 - [
148 - "mini.icons",
149 - github,
150 - "echasnovski/mini.icons",
151 - main,
152 - "7fdae2443a0e2910015ca39ad74b50524ee682d3",
153 - null
154 - ],
155 - [
156 - nvim-autopairs,
157 - github,
158 - windwp/nvim-autopairs,
159 - master,
160 - "59bce2eef357189c3305e25bc6dd2d138c1683f5",
161 - null
162 - ],
163 - [
164 - colorizer,
165 - github,
166 - "catgoose/nvim-colorizer.lua",
167 - master,
168 - "c8c2c19436d33165ec34fa90c975bc0a739fe3fb",
169 - null
170 - ],
171 - [
172 - specs,
173 - github,
174 - "cxwx/specs.nvim",
175 - main,
176 - "4a2f6f71eaa054a9355a2f424b4723e68f7ce22c",
177 - null
178 - ],
179 - [
180 - rulebook,
181 - github,
182 - chrisgrieser/nvim-rulebook,
183 - main,
184 - "4c20ae78964cbf25333c0af141f9231c93b27566",
185 - null
186 - ],
187 - [
188 - profile,
189 - github,
190 - "stevearc/profile.nvim",
191 - master,
192 - "30433d7513f0d14665c1cfcea501c90f8a63e003",
193 - null
194 - ],
195 - [
196 - grug-far,
197 - github,
198 - "MagicDuck/grug-far.nvim",
199 - main,
200 - "dc4684e163971bb1f5bfb93fbd4bb3e892bf9b15",
201 - null
202 - ],
203 - [
204 - incline,
205 - github,
206 - "b0o/incline.nvim",
207 - main,
208 - "8b54c59bcb23366645ae10edca6edfb9d3a0853e",
209 - null
210 - ],
211 - [
212 - dap,
213 - github,
214 - mfussenegger/nvim-dap,
215 - master,
216 - "4f5deb110d9ff8994d96c21df95e2271d11214f9",
217 - null
218 - ],
219 - [
220 - dapui,
221 - github,
222 - rcarriga/nvim-dap-ui,
223 - master,
224 - "d9770a55188bb34c2bdce7d90a6151181beb6966",
225 - null
226 - ],
227 - [
228 - nio,
229 - github,
230 - nvim-neotest/nvim-nio,
231 - master,
232 - "21f5324bfac14e22ba26553caf69ec76ae8a7662",
233 - null
234 - ],
235 - [
236 - dap-disasm,
237 - github,
238 - Jorenar/nvim-dap-disasm,
239 - master,
240 - "1119f3f2b22e411adcd123cdcf6d0425b61a31a7",
241 - null
242 - ],
243 - [
244 - nvim-dap-virtual-text,
245 - github,
246 - theHamsta/nvim-dap-virtual-text,
247 - master,
248 - "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6",
249 - null
250 - ],
251 - [
252 - grapple,
253 - github,
254 - "cbochs/grapple.nvim",
255 - main,
256 - "b41ddfc1c39f87f3d1799b99c2f0f1daa524c5f7",
257 - null
258 - ],
259 - [
260 - "mini.notify",
261 - github,
262 - "echasnovski/mini.notify",
263 - main,
264 - "32d3544b9368c76c562f22027ab25b750647fdf1",
265 - null
266 - ],
267 - [
268 - opencode,
269 - github,
270 - "nickjvandyke/opencode.nvim",
271 - main,
272 - "fa0a495fa2c229115404cb3c1970578f9c6d2f76",
273 - null
274 - ]
12 + ]],
13 + [nvim-treesitter-textobjects, github, nvim-treesitter/nvim-treesitter-textobjects, main, "851e865342e5a4cb1ae23d31caf6e991e1c99f1e", null],
14 + [nvim-ts-autotag, github, windwp/nvim-ts-autotag, main, "88c1453db4ba7dd24131086fe51fdf74e587d275", null],
15 + [oil, github, "stevearc/oil.nvim", master, "0fcc83805ad11cf714a949c98c605ed717e0b83e", null],
16 + [nvim-surround, github, kylechui/nvim-surround, main, "9291040de8cd8a4439eb64c441e8d5d2bf884a5a", null],
17 + [conform, github, "stevearc/conform.nvim", master, "086a40dc7ed8242c03be9f47fbcee68699cc2395", null],
18 + [plenary, github, "nvim-lua/plenary.nvim", master, "74b06c6c75e4eeb3108ec01852001636d85a932b", null],
19 + ["mini.splitjoin", github, "echasnovski/mini.splitjoin", main, "8bd5a3d581b9f3dd3bc91fe495e210b8b0ee981d", null],
20 + ["mini.pick", github, "echasnovski/mini.pick", main, "437d44eb57312f23e6b931704694fc294922cd88", null],
21 + ["mini.extra", github, "echasnovski/mini.extra", main, "bc4e872500fd6d2ce252604e0ffa100f64f02280", null],
22 + ["mini.hipatterns", github, "echasnovski/mini.hipatterns", main, "9eff319bbe66adfaf781a0d0e174baa08ba94909", null],
23 + ["mini.clue", github, "echasnovski/mini.clue", main, "43bd6cf1c3ccdea46d403c32dbc4629fa6afa09d", null],
24 + ["mini.bracketed", github, "echasnovski/mini.bracketed", main, "efb969a6a9583a5d48bfbe36363769351e38f967", null],
25 + ["mini.diff", github, "echasnovski/mini.diff", main, "ab11575a6c147ecfba894d676d0c93e855021d34", null],
26 + ["mini.jump2d", github, "echasnovski/mini.jump2d", main, "c0df3170873b712b61951781aeee9942a92ba1f1", null],
27 + ["mini.move", github, "echasnovski/mini.move", main, "74d140143b1bb905c3d0aebcfc2f216fd237080e", null],
28 + ["mini.icons", github, "echasnovski/mini.icons", main, "bac6317300e205335df425296570d84322730067", null],
29 + [nvim-autopairs, github, windwp/nvim-autopairs, master, "59bce2eef357189c3305e25bc6dd2d138c1683f5", null],
30 + [colorizer, github, "catgoose/nvim-colorizer.lua", master, "5cfe7fffbd01e17b3c1e14af85d5febdef88bd8c", null],
31 + [specs, github, "cxwx/specs.nvim", main, "4a2f6f71eaa054a9355a2f424b4723e68f7ce22c", null],
32 + [rulebook, github, chrisgrieser/nvim-rulebook, main, "083dd66b498bc142386a7c96dddab73acbf4ec20", null],
33 + [profile, github, "stevearc/profile.nvim", master, "30433d7513f0d14665c1cfcea501c90f8a63e003", null],
34 + [grug-far, github, "MagicDuck/grug-far.nvim", main, "21604255d0e8f9968322f61f2b6c09e5efe1285a", null],
35 + [incline, github, "b0o/incline.nvim", main, "8b54c59bcb23366645ae10edca6edfb9d3a0853e", null],
36 + [dap, github, mfussenegger/nvim-dap, master, "45a69eba683a2c448dd9ecfc4de89511f0646b5f", null],
37 + [dapui, github, rcarriga/nvim-dap-ui, master, "1a66cabaa4a4da0be107d5eda6d57242f0fe7e49", null],
38 + [nio, github, nvim-neotest/nvim-nio, master, "21f5324bfac14e22ba26553caf69ec76ae8a7662", null],
39 + [dap-disasm, github, Jorenar/nvim-dap-disasm, master, "1119f3f2b22e411adcd123cdcf6d0425b61a31a7", null],
40 + [nvim-dap-virtual-text, github, theHamsta/nvim-dap-virtual-text, master, "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6", null],
41 + [grapple, github, "cbochs/grapple.nvim", main, "b41ddfc1c39f87f3d1799b99c2f0f1daa524c5f7", null],
42 + ["mini.notify", github, "echasnovski/mini.notify", main, "9e68ab0a54f90567b4fec2de22c851dba8480439", null],

nushell/config.nu

Modified
23 23 highlight_resolved_externals : true
24 - use_kitty_protocol : true
24 + use_kitty_protocol : (not $env.WIN32)
26 26 color_config: {
27 27 # -- primitives (data types) --

nushell/env.nu

Modified
90 90 # generate carapace hooks for sourcing later on
91 -$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
91 +# $env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
92 92 $env.CARAPACE_LENIENT = 1
93 93 let carapace_config_path = $nu.default-config-dir | path join 'carapace.nu'
94 94 if not (which carapace | is-empty) {

nushell/modules/ssh.nu

Modified
13 13 key: path # path to private key
15 15 require-binary ssh-keygen
16 - ssh-keygen -y -f $key | save --raw $"($key + .pub)"
16 + ssh-keygen -y -f $key | save --raw $"($key + '.pub')"
19 19 export extern "main" [

ssh/config

Modified
15 15 User oli
16 16 IdentityFile ~/.ssh/klops.key
18 -Host tinibox
19 - Hostname tinibox
20 - User tini
21 - IdentityFile ~/.ssh/tini.key
23 -Host pihole
24 - Hostname pihole
25 - User oli
26 - IdentityFile ~/.ssh/pihole
28 18 Host fedora
29 19 Hostname fedora
30 20 User oli
42 32 # catch-all pattern
43 33 Host *
44 - User root
45 34 Compression yes
46 35 IdentitiesOnly yes
47 36 AddKeysToAgent yes

wezterm/bugabinga/key_binds.lua

Modified
11 11 if wez.target_triple:find 'windows' then
12 12 leader = { key = 'raw:255', }
14 -local font_mode = ' Font mode (-=0🠙🠛␡⎆ 󱁐 )'
15 -local pane_mode = ' Pane (hjklaqrvsrR=q)'
16 -local resize_pane_mode = 'ﭕ Resize Pane (hjkl)'
14 +local font_mode = ' Font mode (- + 0) ESC to exit'
15 +local pane_mode = ' Pane (hjklaqrvsrR=q HL)'
16 +local resize_pane_mode = 'ﭕ Resize Pane (hjkl HJKL)'
18 18 local key_tables = {
19 19 [resize_pane_mode] = {
21 21 { key = 'j', action = wez.action.AdjustPaneSize { 'Down', 1, }, },
22 22 { key = 'k', action = wez.action.AdjustPaneSize { 'Up', 1, }, },
23 23 { key = 'l', action = wez.action.AdjustPaneSize { 'Right', 1, }, },
24 + { key = 'H', action = wez.action.AdjustPaneSize { 'Left', 5, }, },
25 + { key = 'J', action = wez.action.AdjustPaneSize { 'Down', 5, }, },
26 + { key = 'K', action = wez.action.AdjustPaneSize { 'Up', 5, }, },
27 + { key = 'L', action = wez.action.AdjustPaneSize { 'Right', 5, }, },
25 29 -- Cancel the mode
26 30 { key = 'Escape', action = 'PopKeyTable', },
28 32 [font_mode] = {
29 - -- these actually SCALE the font, not actually change the size...
30 - { key = '-', action = wez.action.DecreaseFontSize, },
31 - { key = '=', action = wez.action.IncreaseFontSize, },
33 + { key = 'Minus', action = wez.action.DecreaseFontSize, },
34 + { key = 'Equal', action = wez.action.IncreaseFontSize, },
32 35 { key = '0', action = wez.action.ResetFontSize, },
34 37 { key = 'Escape', action = 'PopKeyTable', },
46 49 { key = 'r', action = wez.action.RotatePanes 'CounterClockwise', },
47 50 { key = 'R', action = wez.action.RotatePanes 'Clockwise', },
48 51 { key = '=', action = wez.action.ActivateKeyTable { name = resize_pane_mode, one_shot = false, }, },
52 + { key = 'H', action = wez.action.MoveTabRelative( -1 ), },
53 + { key = 'L', action = wez.action.MoveTabRelative( 1 ), },
50 55 { key = 'q', action = wez.action.CloseCurrentPane { confirm = false, }, },
61 +-- Move tab to position 1-9 in pane mode
62 +for i = 1, 9 do
63 + table.insert( key_tables[pane_mode], {
64 + key = tostring( i ),
65 + action = wez.action.MoveTab( i - 1 ),
66 + } )
67 +end
56 69 local keys = {
58 71 key = '0',
59 72 mods = 'LEADER',
60 - action = wez.action.ActivateKeyTable { name = font_mode, one_shot = true, },
73 + action = wez.action.ActivateKeyTable { name = font_mode, one_shot = false, },
63 76 key = 'w',

wezterm/bugabinga/mouse_binds.lua

Modified
6 6 action = wez.action.SelectTextAtMouseCursor 'SemanticZone',
7 7 mods = 'NONE',
9 + -- CTRL+Wheel: font size
10 + {
11 + event = { Down = { streak = 1, button = { WheelUp = 1 }, }, },
12 + mods = 'CTRL',
13 + action = wez.action.IncreaseFontSize,
14 + },
15 + {
16 + event = { Down = { streak = 1, button = { WheelDown = 1 }, }, },
17 + mods = 'CTRL',
18 + action = wez.action.DecreaseFontSize,
19 + },
10 21 return function ( cfg )
11 22 cfg.mouse_bindings = bindings

wezterm/bugabinga/options.lua

Modified
7 7 brightness = 0.69,
9 9 cfg.check_for_updates = false
10 - cfg.enable_kitty_keyboard = true
10 + cfg.enable_kitty_keyboard = not wez.target_triple:match 'win'
11 11 cfg.audible_bell = 'Disabled'
12 12 cfg.visual_bell = {
13 13 fade_in_duration_ms = 69,
15 15 target = 'CursorColor',
17 17 cfg.unzoom_on_switch_pane = true
18 - cfg.scrollback_lines = 16777216
18 + cfg.scrollback_lines = 100000

wezterm/bugabinga/status.lua

Modified
3 3 local wez = require 'wezterm'
4 4 local bat = require 'bugabinga.battery'
6 6 local DELIMITER = ' · '
7 7 local ai_shell = require 'bugabinga.ai_shell'
8 +local palette = require 'bugabinga.nugu.palette_dark'.palette
9 10 local zoomed = function ( pane )
10 11 local tab = pane:tab()
35 36 local ai_status = ai_shell.get_status(window)
36 37 local status = { time, os_icon, ai_status, leader, }
38 - if key_table then
39 - table.insert( status, key_table )
40 - end
41 39 if zoomed_state then
42 40 table.insert( status, zoomed_state )
51 49 table.insert( status, context )
53 - window:set_right_status(
54 - wez.format {
55 - { Text = table.concat( status, DELIMITER ), },
56 - }
57 - )
51 + local right_elements = {
52 + { Text = table.concat( status, DELIMITER ), },
53 + }
54 + if key_table then
55 + table.insert( right_elements, { Text = DELIMITER } )
56 + table.insert( right_elements, { Background = { Color = palette.error, }, } )
57 + table.insert( right_elements, { Foreground = { Color = palette.ui.backdrop, }, } )
58 + table.insert( right_elements, { Text = ' ' .. key_table .. ' ', } )
59 + end
61 + window:set_right_status( wez.format( right_elements ) )
58 62 local battery_icons = bat.get_battery_icons()
59 63 if battery_icons ~= '' then
60 64 battery_icons = battery_icons .. ' '

wezterm/bugabinga/theme.lua

Modified
42 42 italic = true,
43 43 intensity = 'Normal',
44 44 font = wez.font_with_fallback { {
45 - family = 'VictorMono',
45 + family = 'Victor Mono',
46 46 style = 'Italic',
47 47 }, },