repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

4fad50925d5625376bf18361a4df229927a0ed0a

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

unsigned

Browse filesCompare with HEAD

Changed files (10)

+685 / −719 text lines

Diff layout

git/gitconfig

Modified

+5 / −4 text lines

6363 # try to automatically correct mispelled git commands
6464 autocorrect = 7
66# In order to have host-specific configuration, I include additional settings here.
67# On each host a different file might be symlinked into '.gitconfig.include'.
68[include]
69 path = .gitconfig.include
7066[credential "https://github.com"]
7167 helper =
7268 helper = !/usr/bin/gh auth git-credential
7369[credential "https://gist.github.com"]
7470 helper =
7571 helper = !/usr/bin/gh auth git-credential
73# In order to have host-specific configuration, I include additional settings here.
74# On each host a different file might be symlinked into '.gitconfig.include'.
75[include]
76 path = .gitconfig.include

git/gitconfig.PC-00625

Modified

+0 / −15 text lines

22 name = Oliver Krylow
33 email = o.krylow@isp-insoft.de
5[credential]
6 helper = manager-core
7
8[credential "helperselector"]
9 selected = manager-core
11[core]
12 editor = code --wait
13 fsmonitor=true
15[diff]
16 tool = code-difftool
18[difftool "code-difftool"]
19 cmd = code --wait --diff $LOCAL $REMOTENo final newline

neovim/lazy-lock.json

Modified

+20 / −15 text lines

1818 "glow.nvim": { "branch": "main", "commit": "5b38fb7b6e806cac62707a4aba8c10c5f14d5bb5" },
1919 "heirline.nvim": { "branch": "master", "commit": "7f1e805dfc001d5dbb7d894105063f463f6c7dcc" },
2020 "hlargs.nvim": { "branch": "main", "commit": "6218a401824c5733ac50b264991b62d064e85ab2" },
21 "indent-blankline.nvim": { "branch": "master", "commit": "046e2cf04e08ece927bacbfb87c5b35c0b636546" },
22 "lazy.nvim": { "branch": "main", "commit": "e42fccc3cda70266e0841c5126de2c23e8982800" },
21 "hydra.nvim": { "branch": "master", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" },
22 "inc-rename.nvim": { "branch": "main", "commit": "ed0f6f2b917cac4eb3259f907da0a481b27a3b7e" },
23 "indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" },
24 "lazy.nvim": { "branch": "main", "commit": "7ca3bdb566c3ba4492f2d22b37c2c9e26f09470f" },
2325 "lspkind.nvim": { "branch": "master", "commit": "57610d5ab560c073c465d6faf0c19f200cb67e6e" },
2426 "lush.nvim": { "branch": "main", "commit": "966aad1accd47fa11fbe2539234f81f678fef2de" },
2527 "mason.nvim": { "branch": "main", "commit": "cd7835b15f5a4204fc37e0aa739347472121a54c" },
3840 "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
3941 "nvim-genghis": { "branch": "main", "commit": "ba59d6fd8440c9b8928acd22b845d18fe9a8b848" },
4042 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
43 "nvim-jdtls": { "branch": "master", "commit": "a5c6f38f8151d7b4f5b32c005a95022fa66f4c9d" },
4144 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
4245 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
43 "nvim-notify": { "branch": "master", "commit": "e4a2022f4fec2d5ebc79afa612f96d8b11c627b3" },
44 "nvim-surround": { "branch": "main", "commit": "4f0e1f470595af067eca9b872778d83c7f52f134" },
45 "nvim-treesitter": { "branch": "master", "commit": "44762abc90725e279f3b9cfbe4cafb41ea72f09b" },
46 "nvim-treesitter-textobjects": { "branch": "master", "commit": "eb208bfdfcf76efea0424747e23e44641e13aaa6" },
46 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
47 "nvim-spectre": { "branch": "master", "commit": "be7ff1d29ddf2de59b3dc293988d110c2c00ac84" },
48 "nvim-surround": { "branch": "main", "commit": "0d6882635817a2677749a330127d12ac30a4f3c8" },
49 "nvim-treesitter": { "branch": "master", "commit": "d6c9c85e14e15bc59478a0d5d810e88dad0ac53f" },
50 "nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" },
51 "nvim-treesitter-textobjects": { "branch": "master", "commit": "bd103502252027434ec42f628d2dbf54821d4ce6" },
4752 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
4853 "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" },
4954 "nvim-web-devicons": { "branch": "master", "commit": "5de460ca7595806044eced31e3c36c159a493857" },
5863 "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" },
5964 "telescope-ui-select.nvim": { "branch": "master", "commit": "b0015e6e4b46a64192c64b68dec9a9ac5a4e5690" },
6065 "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" },
61 "telescope.nvim": { "branch": "0.1.x", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
62 "todo-comments.nvim": { "branch": "main", "commit": "3094ead8edfa9040de2421deddec55d3762f64d1" },
63 "toggleterm.nvim": { "branch": "main", "commit": "c80844fd52ba76f48fabf83e2b9f9b93273f418d" },
64 "treesj": { "branch": "main", "commit": "070e6761d0b11a55446d988a69908f7a0928dbab" },
65 "twilight.nvim": { "branch": "main", "commit": "8b7b50c0cb2dc781b2f4262a5ddd57571556d1e4" },
66 "virt-column.nvim": { "branch": "master", "commit": "9c82009c53e5f9d43b6c0f5e8cb69c53663b786a" },
67 "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
68 "zen-mode.nvim": { "branch": "main", "commit": "50e2e2a36cc97847d9ab3b1a3555ba2ef6839b50" }
69}No final newline
66 "telescope.nvim": { "branch": "0.1.x", "commit": "54930e1abfc94409e1bb9266e752ef8379008592" },
67 "todo-comments.nvim": { "branch": "main", "commit": "8febc60a76feefd8203077ef78b6a262ea1a41f9" },
68 "toggleterm.nvim": { "branch": "main", "commit": "faee9d60428afc7857e0927fdc18daa6c409fa64" },
69 "treesj": { "branch": "main", "commit": "bff8c32b826e188fa558e94c7c93ac17a8ef0365" },
70 "twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
71 "virt-column.nvim": { "branch": "master", "commit": "5fc72873dc3175eddbdbbedea8071919c99ad755" },
72 "which-key.nvim": { "branch": "main", "commit": "bf09a25bdc9a83bcc69d2cf078e680368676513b" },
73 "zen-mode.nvim": { "branch": "main", "commit": "6e6c963d70a8e47854fa656987666bfb863f9c4e" }
74}

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

Modified

+8 / −0 text lines

100100 local jdk21 = {
101101 name = 'JavaSE-21',
102102 }
103 local jdk21 = {
104 name = "JavaSE-21",
105 }
104107 if host == 'pop-os' then
105108 jdk11.path = '/usr/lib/jvm/java-11-openjdk-amd64'
106109 jdk17.path = '/usr/lib/jvm/java-17-openjdk-amd64'
107110 jdk19.path = '/usr/lib/jvm/java-19-openjdk-amd64'
108111 jdk21.path = '/home/oli/.jdks/openjdk-21'
112 elseif host == 'PC-00625' then
113 jdk11.path = '~/scoop/apps/openjdk11/current'
114 jdk17.path = '~/scoop/apps/openjdk17/current'
115 jdk19.path = '~/scoop/apps/openjdk19/current'
116 jdk21.path = '~/scoop/apps/openjdk21/current'
109117 else
110118 vim.notify 'missing jdk paths in java settings for lsp'
111119 end

neovim/lua/bugabinga/options/keymaps.lua

Modified

+10 / −8 text lines

101101 command = function () return vim.fn.pumvisible() == 1 and '<C-n>' or '<tab>' end,
104local host = vim.uv.os_gethostname()
105local browser = host == 'PC-00625' and 'chrome' or 'firefox'
104106local function open_link_under_cursor()
105107 ---@diagnostic disable-next-line: missing-parameter
106108 local file_under_cursor = vim.fn.expand '<cfile>'
167169map.normal {
168 description = 'Goto matching bracket',
169 category = 'navigation',
170 keys = 'mm',
171 command = '%',
170 description = 'Goto matching bracket',
171 category = 'navigation',
172 keys = 'mm',
173 command = '%',
174176map.normal {
175 description = 'Redo undone operation',
176 category = 'history',
177 keys = 'U',
178 command = vim.cmd.redo,
177 description = 'Redo undone operation',
178 category = 'history',
179 keys = 'U',
180 command = vim.cmd.redo,
181183map.normal {

neovim/lua/bugabinga/options/ui.lua

Modified

+1 / −1 text lines

112112-- pop up menu height
113113vim.opt.pumheight = 10
115-- no transparent popups and floating windows
115-- transparent popups and floating windows
116116vim.opt.pumblend = 0
117117vim.opt.winblend = 0

neovim/lua/bugabinga/plugins/autopairs.lua

Modified

+1 / −0 text lines

1010 local autopairs = require 'nvim-autopairs'
1111 autopairs.setup {
1212 disable_filetype = ignored.filetypes,
13 check_ts = true,
1314 }
1415 local cmp_autopairs = require 'nvim-autopairs.completion.cmp'
1516 local cmp = require 'cmp'

neovim/lua/bugabinga/plugins/heirline.lua

Modified

+573 / −672 text lines

1---@diagnostic disable: param-type-mismatch
21local icon = require 'std.icon'
32local auto = require 'std.auto'
4local ignored = require 'std.ignored'
5
6local NEW_FILE = '~new~'
84return {
9 {
10 'rebelot/heirline.nvim',
11 event = 'BufEnter',
12 dependencies = {
13 'nvim-tree/nvim-web-devicons',
14 'lewis6991/gitsigns.nvim',
15 },
16 config = function ()
17 local heirline = require 'heirline'
18 local conditions = require 'heirline.conditions'
19 local utils = require 'heirline.utils'
21 local nugu = require 'bugabinga.nugu.palette'
22 heirline.load_colors( nugu )
24 auto 'reload_heirline_colors' {
25 description = 'Reload dark/light nugu colors for Heirline',
26 events = 'ColorScheme',
27 command = function () utils.on_colorscheme( nugu ) end,
28 }
30 local vi_mode = {
31 init = function ( self )
32 self.mode = vim.fn.mode( 1 ) -- :h mode()
33 end,
35 static = {
36 mode_names = {
37 n = icon.normal,
38 no = icon.normal .. '?',
39 nov = icon.normal .. '?',
40 noV = icon.normal .. '?',
41 ['no\22'] = icon.normal .. '?',
42 niI = icon.normal .. 'i',
43 niR = icon.normal .. 'r',
44 niV = icon.normal .. 'v',
45 nt = icon.normal .. 't',
46 v = icon.visual,
47 vs = icon.visual .. 's',
48 V = icon.visual .. '_',
49 Vs = icon.visual .. 's',
50 ['\22'] = '^' .. icon.visual,
51 ['\22s'] = '^' .. icon.visual,
52 s = icon.select,
53 S = icon.select .. '_',
54 ['\19'] = '^' .. icon.select,
55 i = icon.insert,
56 ic = icon.insert .. 'c',
57 ix = icon.insert .. 'x',
58 R = icon.replace,
59 Rc = icon.replace .. 'c',
60 Rx = icon.replace .. 'x',
61 Rv = icon.replace .. 'v',
62 Rvc = icon.replace .. 'v',
63 Rvx = icon.replace .. 'v',
64 c = icon.command,
65 cv = icon.command .. 'x',
66 r = icon.pending,
67 rm = icon.pending .. 'm',
68 ['r?'] = icon.pending .. '?',
69 ['!'] = icon.exclaim,
70 t = icon.terminal,
71 },
72 mode_colors = {
73 n = 'ui_normal',
74 i = 'ui_accent',
75 v = 'ui_important_global',
76 V = 'ui_important_global',
77 ['\22'] = 'ui_important_global',
78 c = 'ui_important_global',
79 s = 'ui_important_global',
80 S = 'ui_important_global',
81 ['\19'] = 'ui_important_global',
82 R = 'ui_important_global',
83 r = 'ui_important_global',
84 ['!'] = 'ui_important_global',
85 t = 'ui_important_global',
86 }
87 },
89 provider = function ( self )
90 local mode_name = self.mode_names[self.mode]
91 return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) '
92 end,
94 hl = function ( self )
95 local mode = self.mode:sub( 1, 1 ) -- get only the first mode character
96 return { fg = self.mode_colors[mode], bold = true }
97 end,
99 update = {
100 'ModeChanged',
101 pattern = '*:*',
102 callback = vim.schedule_wrap( function () vim.cmd.redrawstatus() end ),
103 },
104 }
106 local file_icon = {
107 init = function ( self )
108 local filename = self.filename
109 local extension = vim.fn.fnamemodify( filename, ':e' )
110 self.icon = require 'nvim-web-devicons'.get_icon_color( filename, extension, { default = true } )
111 end,
112 provider = function ( self )
113 return self.icon and (self.icon .. ' ')
114 end,
115 hl = 'DefaultIcon',
116 }
118 local file_name = {
119 init = function ( self )
120 self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) )
121 if self.lfilename == '' then self.lfilename = NEW_FILE end
122 end,
124 flexible = 2,
126 {
127 provider = function ( self )
128 return self.lfilename
129 end,
130 },
131 {
132 provider = function ( self )
133 return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) )
134 end,
135 },
136 }
138 local file_flags = {
139 {
140 condition = function ()
141 return vim.bo.modified
142 end,
143 provider = string.format( ' %s ', icon.modified ),
144 hl = 'Comment',
145 },
146 {
147 condition = function ()
148 return not vim.bo.modifiable or vim.bo.readonly
149 end,
150 provider = string.format( ' %s ', icon.lock ),
151 hl = 'ErrorMsg',
152 },
153 }
155 local file_name_block = {
156 init = function ( self )
157 self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) )
158 end,
160 file_icon,
161 { provider = ' ' },
162 file_name,
163 file_flags,
164 { provider = '%<' } -- this means that the statusline is cut here when there's not enough space
165 }
167 local file_type = {
168 provider = function ()
169 return icon.file .. ' ' .. string.upper( vim.bo.filetype )
170 end,
171 }
173 local file_encoding = {
174 provider = function ()
175 local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc'
176 return enc ~= 'utf-8' and enc:upper()
177 end,
178 }
180 local file_format = {
181 static = {
182 dos = icon.newline .. icon.carriage_return,
183 unix = icon.newline,
184 mac = icon.carriage_return,
185 },
186 provider = function ( self )
187 local fileformat = vim.bo.fileformat
188 return self[fileformat]
189 end
190 }
192 local file_size = {
193 provider = function ()
194 -- stackoverflow, compute human readable file size
195 -- i want to see vim opening a 1EiB file 󰱯
196 local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
197 local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) )
198 fsize = (fsize < 0 and 0) or fsize
199 if fsize < 1024 then
200 return fsize .. suffix[1]
201 end
202 local i = math.floor( (math.log( fsize ) / math.log( 1024 )) )
203 return string.format( '%.2g%s', fsize / math.pow( 1024, i ), suffix[i + 1] )
204 end,
205 }
207 local file_last_modified = {
208 provider = function ()
209 local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) )
210 if ftime > 0 then
211 local timeago = require 'std.timeago'
212 return timeago.format( ftime )
213 end
214 end,
215 }
217 local lsp_active = {
218 condition = conditions.lsp_attached,
219 update = { 'LspAttach', 'LspDetach', 'BufEnter' },
221 provider = function ()
222 local names = {}
223 for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do
224 table.insert( names, client.name )
225 end
226 return icon.lsp .. ' ' .. table.concat( names, ' ' )
227 end,
228 }
230 local diagnostic_enabled = {
231 init = function ( self )
232 self.icon = vim.diagnostic.is_disabled() and icon.toggle_off or icon.toggle_on
233 end,
234 provider = function ( self )
235 return icon.diagnostic .. ' ' .. self.icon
236 end,
237 }
239 local diagnostic = {
240 condition = conditions.has_diagnostics,
242 static = {
243 error_icon = icon.error,
244 warn_icon = icon.warn,
245 info_icon = icon.info,
246 hint_icon = icon.hint,
247 },
249 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 } )
254 end,
256 update = { 'DiagnosticChanged', 'BufEnter' },
258 {
259 provider = function ( self )
260 -- 0 is just another output, we can decide to print it or not!
261 return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ')
262 end,
263 hl = 'DiagnosticError',
264 },
265 {
266 provider = function ( self )
267 return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ')
268 end,
269 hl = 'DiagnosticWarn',
270 },
271 {
272 provider = function ( self )
273 return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ')
274 end,
275 hl = 'DiagnosticInfo',
276 },
277 {
278 provider = function ( self )
279 return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints)
280 end,
281 hl = 'DiagnosticHint',
282 },
283 }
285 local is_svn_repo = function ()
286 local svn_dir = vim.fs.find( '.svn', {
287 upward = true,
288 stop = vim.uv.os_homedir(),
289 path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ),
290 type = 'directory',
291 } )
293 return not vim.tbl_isempty( svn_dir )
294 end
296 local svn_get_relative_url = function ()
297 -- FIXME: replace with vim.system
298 local job = require 'plenary.job'
299 local relative_url = { '[ERR]' }
301 job:new {
302 command = 'svn',
303 args = { 'info', '--show-item', 'relative-url', '--no-newline' },
304 on_exit = function ( current_job, exit_code )
305 if exit_code == 0 then relative_url = current_job:result() end
306 end,
307 }:sync()
309 return relative_url[1]
310 end
312 local svn = {
313 condition = is_svn_repo,
315 update = 'BufEnter',
317 init = function ( self )
318 self.relative_url = svn_get_relative_url()
319 end,
321 {
322 provider = function ( self )
323 return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url
324 end,
325 },
327 }
329 local git = {
330 condition = conditions.is_git_repo,
332 init = function ( self )
333 self.status_dict = vim.b.gitsigns_status_dict
334 end,
336 {
337 provider = function ( self )
338 return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.head .. ' '
339 end,
340 },
341 {
342 provider = function ( self )
343 local count = self.status_dict.added or 0
344 return count > 0 and (icon.diff_add .. ' ' .. count .. ' ')
345 end,
346 hl = 'DiffAdd',
347 },
348 {
349 provider = function ( self )
350 local count = self.status_dict.removed or 0
351 return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ')
352 end,
353 hl = 'DiffDelete',
354 },
355 {
356 provider = function ( self )
357 local count = self.status_dict.changed or 0
358 return count > 0 and (icon.diff_change .. ' ' .. count .. ' ')
359 end,
360 hl = 'DiffChange',
361 },
362 }
364 local work_dir = {
365 init = function ( self )
366 self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local'] or '') .. ' ' .. icon.global .. ' '
367 self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' )
368 end,
370 flexible = 1,
372 {
373 provider = function ( self )
374 return self.icon .. self.cwd
375 end,
376 },
377 {
378 provider = function ( self )
379 local cwd = vim.fn.pathshorten( self.cwd )
380 return self.icon .. cwd
381 end,
382 },
383 {
384 provider = '',
385 }
386 }
388 local help_file_name = {
389 condition = function ()
390 return vim.bo.filetype == 'help'
391 end,
392 provider = function ()
393 local filename = vim.api.nvim_buf_get_name( 0 )
394 return vim.fn.fnamemodify( filename, ':t' )
395 end,
396 hl = 'Question',
397 }
399 local terminal_name = {
400 provider = function ()
401 local name, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:', '' )
402 local basename = vim.fs.basename( name )
403 return icon.terminal .. ' ' .. (basename or 'noname')
404 end,
405 hl = 'Bold',
406 }
408 local togglers = {
409 provider = function ()
410 local togglers = require 'bugabinga.options.togglers'
411 return tostring( togglers )
412 end,
413 }
415 local macro_recording = {
416 condition = function ()
417 return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0
418 end,
419 provider = icon.macro .. ' ',
420 hl = 'PreProc',
421 utils.surround( { '░▒▓ ', ' ▓▒░' }, nil, {
422 provider = function ()
423 return vim.fn.reg_recording()
424 end,
425 hl = 'Bold',
426 } ),
427 update = {
428 'RecordingEnter',
429 'RecordingLeave',
430 }
431 }
433 local lazy = {
434 condition = function ()
435 local ok, lazy_status = pcall( require, 'lazy.status' )
436 return ok and lazy_status.has_updates()
437 end,
438 update = { 'User', pattern = 'LazyUpdate' },
439 provider = function () return ' ' .. icon.lazy .. ' ' .. require 'lazy.status'.updates() .. ' ' end,
440 on_click = {
441 callback = function () require 'lazy'.update() end,
442 name = 'update_plugins',
443 },
444 }
446 local align = { provider = '%=' }
447 local space = { provider = ' ' }
449 local default_statusline = {
450 vi_mode, macro_recording, align,
451 work_dir, space, git, svn, align,
452 diagnostic_enabled, space, diagnostic, space, lsp_active, align,
453 togglers, align,
454 lazy, space, file_encoding, space, file_format, space, file_type, space, file_size, space, file_last_modified,
455 }
457 local special_statusline = {
458 condition = function ()
459 return conditions.buffer_matches {
460 buftype = ignored.buftypes,
461 filetype = ignored.filetypes,
462 }
463 end,
465 file_type,
466 space,
467 help_file_name,
468 align
469 }
471 local terminal_statusline = {
473 condition = function ()
474 return conditions.buffer_matches { buftype = { 'terminal' } }
475 end,
477 { condition = conditions.is_active, vi_mode, space },
478 file_type,
479 space,
480 terminal_name,
481 align,
482 }
484 local inactive_statusline = {
485 condition = conditions.is_not_active,
486 file_type,
487 space,
488 file_name,
489 align,
490 }
492 local statuslines = {
493 hl = function ()
494 if conditions.is_active() then
495 return 'StatusLine'
496 else
497 return 'StatusLineNC'
498 end
499 end,
501 fallthrough = false,
503 special_statusline,
504 terminal_statusline,
505 inactive_statusline,
506 default_statusline,
507 }
509 local winbars = {
510 hl = function ()
511 if conditions.is_active() then
512 return 'Winbar'
513 else
514 return 'WinbarNC'
515 end
516 end,
518 fallthrough = false,
520 {
521 condition = function ()
522 return conditions.buffer_matches { buftype = { 'terminal' } }
523 end,
525 file_type,
526 space,
527 terminal_name,
528 },
530 file_name_block,
531 }
533 local tabline_buffer_number = {
534 provider = function ( self )
535 return '(' .. tostring( self.bufnr ) .. ')'
536 end,
537 hl = function ( self )
538 if self.is_active then
539 return { fg = utils.get_highlight 'TabLineSel'.fg }
540 elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then
541 return { fg = 'ui_normal' }
542 else
543 return { fg = utils.get_highlight 'TabLine'.fg }
544 end
545 end,
546 }
548 local tabline_file_name = {
549 provider = function ( self )
550 local name = self.file_name
551 return name == '' and NEW_FILE or vim.fs.normalize( vim.fn.fnamemodify( name, ':t' ) )
552 end,
553 hl = function ( self ) return { bold = self.is_active or self.is_visible, italic = true } end,
554 }
556 local tabline_file_flags = {
557 {
558 condition = function ( self ) return vim.api.nvim_get_option_value( 'modified', { buf = self.bufnr } ) end,
559 provider = icon.modified .. ' ',
560 },
561 {
562 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 } )
565 end,
566 provider = function ( self )
567 if vim.api.nvim_get_option_value( 'buftype', { buf = self.bufnr } ) == 'terminal' then
568 return icon.terminal
569 else
570 return icon.lock
571 end
572 end,
573 },
574 hl = 'Bold',
575 }
577 local tabline_file_name_block = {
578 init = function ( self )
579 self.file_name = vim.api.nvim_buf_get_name( self.bufnr )
580 end,
582 hl = function ( self )
583 if self.is_active then
584 return 'TabLineSel'
585 elseif not vim.api.nvim_buf_is_loaded( self.bufnr ) then
586 return { fg = 'ui_normal' }
587 else
588 return 'TabLine'
589 end
590 end,
592 on_click = {
593 callback = function ( _, minwid, _, button )
594 if button == 'm' then --m = middle click
595 vim.schedule( function ()
596 vim.api.nvim_buf_delete( minwid, { force = false } )
597 vim.cmd.redrawtabline()
598 end )
599 else
600 vim.api.nvim_win_set_buf( 0, minwid )
601 end
602 end,
603 minwid = function ( self ) return self.bufnr end,
604 name = 'heirline_tabline_buffer_callback',
605 },
607 file_icon,
608 { provider = ' ' },
609 tabline_file_name,
610 tabline_buffer_number,
611 tabline_file_flags,
612 }
614 local tabline_buffer_block = utils.surround(
615 {
616 ' ' .. icon.slant_left,
617 icon.slant_right .. ' ',
618 },
619 function ( self )
620 if self.is_active then
621 return utils.get_highlight 'TabLineSel'.bg
622 else
623 return utils.get_highlight 'TabLine'.bg
624 end
625 end,
626 { tabline_file_name_block }
627 )
629 local buffer_line = utils.make_buflist(
630 tabline_buffer_block,
631 { provider = icon.arrow_left .. ' ', hl = 'TabLineFill' },
632 { provider = ' ' .. icon.arrow_right, hl = 'TabLineFill' }
633 )
635 local tabpage = {
636 provider = function ( self )
637 return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T'
638 end,
639 hl = function ( self )
640 if not self.is_active then
641 return 'TabLine'
642 else
643 return 'TabLineSel'
644 end
645 end,
646 }
648 local tab_pages = {
649 { provider = '%=' },
650 utils.make_tablist( tabpage ),
651 }
653 local tabline = { buffer_line, tab_pages }
655 -- local statuscolumn = {}
657 heirline.setup {
658 statusline = statuslines,
659 winbar = winbars,
660 tabline = tabline,
661 -- statuscolumn = statuscolumn,
663 opts = {
664 colors = nugu,
665 disable_winbar_cb = function ( args )
666 return conditions.buffer_matches(
667 {
668 buftype = ignored.buftypes,
669 filetype = ignored.filetypes,
670 },
671 args.buf )
672 end,
673 },
674 }
675 end,
676 },
5 {
6 'rebelot/heirline.nvim',
7 event = 'BufEnter',
8 dependencies = {
9 'nvim-tree/nvim-web-devicons',
10 'lewis6991/gitsigns.nvim',
11 },
12 config = function ()
13 local heirline = require 'heirline'
14 local conditions = require 'heirline.conditions'
15 local utils = require 'heirline.utils'
17 local nugu = require 'bugabinga.nugu.palette'
18 heirline.load_colors( nugu )
20 auto 'ReloadHeirlineColors' {
21 description = 'Reload dark/light nugu colors for Heirline',
22 events = 'ColorScheme',
23 command = function () utils.on_colorscheme( nugu ) end,
24 }
26 local vi_mode = {
27 init = function ( self )
28 self.mode = vim.fn.mode( 1 ) -- :h mode()
29 end,
31 static = {
32 mode_names = {
33 n = icon.normal,
34 no = icon.normal .. '?',
35 nov = icon.normal .. '?',
36 noV = icon.normal .. '?',
37 ['no\22'] = icon.normal .. '?',
38 niI = icon.normal .. 'i',
39 niR = icon.normal .. 'r',
40 niV = icon.normal .. 'v',
41 nt = icon.normal .. 't',
42 v = icon.visual,
43 vs = icon.visual .. 's',
44 V = icon.visual .. '_',
45 Vs = icon.visual .. 's',
46 ['\22'] = '^' .. icon.visual,
47 ['\22s'] = '^' .. icon.visual,
48 s = icon.select,
49 S = icon.select .. '_',
50 ['\19'] = '^' .. icon.select,
51 i = icon.insert,
52 ic = icon.insert .. 'c',
53 ix = icon.insert .. 'x',
54 R = icon.replace,
55 Rc = icon.replace .. 'c',
56 Rx = icon.replace .. 'x',
57 Rv = icon.replace .. 'v',
58 Rvc = icon.replace .. 'v',
59 Rvx = icon.replace .. 'v',
60 c = icon.command,
61 cv = icon.command .. 'x',
62 r = icon.pending,
63 rm = icon.pending .. 'm',
64 ['r?'] = icon.pending .. '?',
65 ['!'] = icon.exclaim,
66 t = icon.terminal,
67 },
68 mode_colors = {
69 n = 'ui_normal',
70 i = 'ui_accent',
71 v = 'ui_important_global',
72 V = 'ui_important_global',
73 ['\22'] = 'ui_important_global',
74 c = 'ui_important_global',
75 s = 'ui_important_global',
76 S = 'ui_important_global',
77 ['\19'] = 'ui_important_global',
78 R = 'ui_important_global',
79 r = 'ui_important_global',
80 ['!'] = 'ui_important_global',
81 t = 'ui_important_global',
82 }
83 },
85 provider = function ( self )
86 local mode_name = self.mode_names[self.mode]
87 return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) '
88 end,
90 hl = function ( self )
91 local mode = self.mode:sub( 1, 1 ) -- get only the first mode character
92 return { fg = self.mode_colors[mode], bold = true }
93 end,
95 update = {
96 'ModeChanged',
97 pattern = '*:*',
98 callback = vim.schedule_wrap( function () vim.cmd.redrawstatus() end ),
99 },
100 }
102 local file_icon = {
103 init = function ( self )
104 local filename = self.filename
105 local extension = vim.fn.fnamemodify( filename, ':e' )
106 self.icon = require 'nvim-web-devicons'.get_icon_color( filename, extension, { default = true } )
107 end,
108 provider = function ( self )
109 return self.icon and (self.icon .. ' ')
110 end,
111 hl = 'DefaultIcon',
112 }
114 local file_name = {
115 init = function ( self )
116 self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) )
117 if self.lfilename == '' then self.lfilename = '~new~' end
118 end,
120 flexible = 2,
122 {
123 provider = function ( self )
124 return self.lfilename
125 end,
126 },
127 {
128 provider = function ( self )
129 return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) )
130 end,
131 },
132 }
134 local file_flags = {
135 {
136 condition = function ()
137 return vim.bo.modified
138 end,
139 provider = string.format( ' %s ', icon.modified ),
140 hl = 'Comment',
141 },
142 {
143 condition = function ()
144 return not vim.bo.modifiable or vim.bo.readonly
145 end,
146 provider = string.format( ' %s ', icon.lock ),
147 hl = 'ErrorMsg',
148 },
149 }
151 local file_name_block = {
152 init = function ( self )
153 self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) )
154 end,
156 file_name,
157 file_flags,
158 { provider = ' ' },
159 file_icon,
160 { provider = '%<' } -- this means that the statusline is cut here when there's not enough space
161 }
163 local file_type = {
164 provider = function ()
165 return icon.file .. ' ' .. string.upper( vim.bo.filetype )
166 end,
167 }
169 local file_encoding = {
170 provider = function ()
171 local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc -- :h 'enc'
172 return enc ~= 'utf-8' and enc:upper()
173 end,
174 }
176 local file_format = {
177 static = {
178 dos = icon.newline .. icon.carriage_return,
179 unix = icon.newline,
180 mac = icon.carriage_return,
181 },
182 provider = function ( self )
183 local fileformat = vim.bo.fileformat
184 return self[fileformat]
185 end
186 }
188 local file_size = {
189 provider = function ()
190 -- stackoverflow, compute human readable file size
191 -- i want to see vim opening a 1EiB file 󰱯
192 local suffix = { 'b', 'k', 'M', 'G', 'T', 'P', 'E' }
193 local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) )
194 fsize = (fsize < 0 and 0) or fsize
195 if fsize < 1024 then
196 return fsize .. suffix[1]
197 end
198 local i = math.floor( (math.log( fsize ) / math.log( 1024 )) )
199 return string.format( '%.2g%s', fsize / math.pow( 1024, i ), suffix[i + 1] )
200 end,
201 }
203 local file_last_modified = {
204 provider = function ()
205 local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) )
206 if ftime > 0 then
207 local timeago = require 'std.timeago'
208 return timeago.format( ftime )
209 end
210 end,
211 }
213 local lsp_active = {
214 condition = conditions.lsp_attached,
215 update = { 'LspAttach', 'LspDetach', 'BufEnter' },
217 provider = function ()
218 local names = {}
219 for _, client in pairs( vim.lsp.get_clients { bufnr = 0 } ) do
220 table.insert( names, client.name )
221 end
222 return icon.lsp .. ' ' .. table.concat( names, ' ' )
223 end,
224 }
226 local diagnostic_enabled = {
227 init = function ( self )
228 self.icon = vim.diagnostic.is_disabled() and icon.toggle_off or icon.toggle_on
229 end,
230 provider = function ( self )
231 return icon.diagnostic .. ' ' .. self.icon
232 end,
233 }
235 local diagnostic = {
236 condition = conditions.has_diagnostics,
238 static = {
239 error_icon = icon.error,
240 warn_icon = icon.warn,
241 info_icon = icon.info,
242 hint_icon = icon.hint,
243 },
245 init = function ( self )
246 self.errors = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.ERROR } )
247 self.warnings = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.WARN } )
248 self.hints = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.HINT } )
249 self.info = #vim.diagnostic.get( 0, { severity = vim.diagnostic.severity.INFO } )
250 end,
252 update = { 'DiagnosticChanged', 'BufEnter' },
254 {
255 provider = function ( self )
256 -- 0 is just another output, we can decide to print it or not!
257 return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ')
258 end,
259 hl = 'DiagnosticError',
260 },
261 {
262 provider = function ( self )
263 return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ')
264 end,
265 hl = 'DiagnosticWarn',
266 },
267 {
268 provider = function ( self )
269 return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ')
270 end,
271 hl = 'DiagnosticInfo',
272 },
273 {
274 provider = function ( self )
275 return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints)
276 end,
277 hl = 'DiagnosticHint',
278 },
279 }
281 local is_svn_repo = function ()
282 local svn_dir = vim.fs.find( '.svn', {
283 upward = true,
284 stop = vim.uv.os_homedir(),
285 path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ),
286 type = 'directory',
287 } )
289 return not vim.tbl_isempty( svn_dir )
290 end
292 local svn_get_relative_url = function ()
293 local job = require 'plenary.job'
294 local relative_url = '[unversioned]'
296 job:new {
297 command = 'svn',
298 args = { 'info', '--show-item', 'relative-url', '--no-newline' },
299 on_exit = function ( current_job, exit_code )
300 if exit_code == 0 then relative_url = current_job:result() end
301 end,
302 }:sync()
304 return type(relative_url) == 'table' and relative_url[1] or relative_url
305 end
307 local svn = {
308 condition = is_svn_repo,
310 update = 'BufEnter',
312 init = function ( self )
313 self.relative_url = svn_get_relative_url()
314 end,
316 {
317 provider = function ( self )
318 return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url
319 end,
320 },
322 }
324 local git = {
325 condition = conditions.is_git_repo,
327 init = function ( self )
328 self.status_dict = vim.b.gitsigns_status_dict
329 end,
331 {
332 provider = function ( self )
333 return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.head .. ' '
334 end,
335 },
336 {
337 provider = function ( self )
338 local count = self.status_dict.added or 0
339 return count > 0 and (icon.diff_add .. ' ' .. count .. ' ')
340 end,
341 hl = 'DiffAdd',
342 },
343 {
344 provider = function ( self )
345 local count = self.status_dict.removed or 0
346 return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ')
347 end,
348 hl = 'DiffDelete',
349 },
350 {
351 provider = function ( self )
352 local count = self.status_dict.changed or 0
353 return count > 0 and (icon.diff_change .. ' ' .. count .. ' ')
354 end,
355 hl = 'DiffChange',
356 },
357 }
359 local work_dir = {
360 init = function ( self )
361 self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local'] or '') .. ' ' .. icon.global .. ' '
362 self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' )
363 end,
365 flexible = 1,
367 {
368 -- evaluates to the full-length path
369 provider = function ( self )
370 return self.icon .. self.cwd
371 end,
372 },
373 {
374 -- evaluates to the shortened path
375 provider = function ( self )
376 local cwd = vim.fn.pathshorten( self.cwd )
377 return self.icon .. cwd
378 end,
379 },
380 {
381 -- evaluates to "", hiding the component
382 provider = '',
383 }
384 }
386 local help_file_name = {
387 condition = function ()
388 return vim.bo.filetype == 'help'
389 end,
390 provider = function ()
391 local filename = vim.api.nvim_buf_get_name( 0 )
392 return vim.fn.fnamemodify( filename, ':t' )
393 end,
394 hl = 'Question',
395 }
397 local terminal_name = {
398 -- we could add a condition to check that buftype == 'terminal'
399 -- or we could do that later (see #conditional-statuslines below)
400 provider = function ()
401 local tname, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:', '' )
402 tname = vim.fs.basename( tname )
403 return icon.terminal .. ' ' .. tname
404 end,
405 hl = 'Bold',
406 }
408 local togglers = {
409 provider = function ()
410 local togglers = require 'bugabinga.options.togglers'
411 return tostring( togglers )
412 end,
413 }
415 local macro_recording = {
416 condition = function ()
417 return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0
418 end,
419 provider = icon.macro .. ' ',
420 hl = 'PreProc',
421 utils.surround( { '░▒▓ ', ' ▓▒░' }, nil, {
422 provider = function ()
423 return vim.fn.reg_recording()
424 end,
425 hl = 'Bold',
426 } ),
427 update = {
428 'RecordingEnter',
429 'RecordingLeave',
430 }
431 }
433 local lazy = {
434 condition = function ()
435 local ok, lazy_status = pcall( require, 'lazy.status' )
436 return ok and lazy_status.has_updates()
437 end,
438 update = { 'User', pattern = 'LazyUpdate' },
439 provider = function () return ' ' .. icon.lazy .. ' ' .. require 'lazy.status'.updates() .. ' ' end,
440 on_click = {
441 callback = function () require 'lazy'.update() end,
442 name = 'update_plugins',
443 },
444 hl = 'LazyProgressTodo',
445 }
447 local align = { provider = '%=' }
448 local space = { provider = ' ' }
450 local default_statusline = {
451 vi_mode, macro_recording, align,
452 work_dir, space, git, svn, align,
453 diagnostic_enabled, space, diagnostic, space, lsp_active, align,
454 togglers, align,
455 lazy, space, file_encoding, space, file_format, space, file_type, space, file_size, space, file_last_modified,
456 }
458 local special_statusline = {
459 condition = function ()
460 return conditions.buffer_matches {
461 buftype = { 'nofile', 'prompt', 'help', 'quickfix', 'noice', 'Trouble' },
462 filetype = { '^git.*', 'fugitive' },
463 }
464 end,
466 file_type,
467 space,
468 help_file_name,
469 align
470 }
472 local terminal_statusline = {
474 condition = function ()
475 return conditions.buffer_matches { buftype = { 'terminal' } }
476 end,
478 { condition = conditions.is_active, vi_mode, space },
479 file_type,
480 space,
481 terminal_name,
482 align,
483 }
485 local inactive_statusline = {
486 condition = conditions.is_not_active,
487 file_type,
488 space,
489 file_name,
490 align,
491 }
493 local statuslines = {
494 hl = function ()
495 if conditions.is_active() then
496 return 'StatusLine'
497 else
498 return 'StatusLineNC'
499 end
500 end,
502 fallthrough = false,
504 special_statusline,
505 terminal_statusline,
506 inactive_statusline,
507 default_statusline,
508 }
510 local winbars = {
511 hl = function ()
512 if conditions.is_active() then
513 return 'Winbar'
514 else
515 return 'WinbarNC'
516 end
517 end,
519 fallthrough = false,
521 {
522 condition = function ()
523 return conditions.buffer_matches { buftype = { 'terminal' } }
524 end,
526 file_type,
527 space,
528 terminal_name,
529 },
531 file_name_block,
532 }
534 local tabpage = {
535 provider = function ( self )
536 return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T'
537 end,
538 hl = function ( self )
539 if not self.is_active then
540 return 'TabLine'
541 else
542 return 'TabLineSel'
543 end
544 end,
545 }
547 local tab_pages = {
548 -- only show this component if there's 2 or more tabpages
549 condition = function ()
550 return #vim.api.nvim_list_tabpages() >= 2
551 end,
552 { provider = '%=' },
553 utils.make_tablist( tabpage ),
554 }
556 local tabline = { tab_pages }
558 -- local statuscolumn = {}
560 heirline.setup {
561 statusline = statuslines,
562 winbar = winbars,
563 tabline = tabline,
564 -- statuscolumn = statuscolumn,
566 opts = {
567 colors = nugu,
568 disable_winbar_cb = function ( args )
569 return conditions.buffer_matches( {
570 buftype = { 'nofile', 'prompt', 'help', 'quickfix' },
571 filetype = { '^git.*', 'noice', 'Trouble' },
572 }, args.buf )
573 end,
574 },
575 }
576 end,
577 },

neovim/lua/bugabinga/plugins/treesitter.lua

Modified

+66 / −3 text lines

1818 {
1919 name_of_executable = 'tar'
2020 }
21 {
22 name_of_executable = 'curl'
23 }
2225return {
2326 'nvim-treesitter/nvim-treesitter',
3134 'windwp/nvim-ts-autotag',
3235 'nvim-treesitter/playground',
3336 'nvim-treesitter/nvim-treesitter-textobjects',
37 'RRethy/nvim-treesitter-endwise',
3438 },
3539 config = function ()
3640 local install = require 'nvim-treesitter.install'
3741 local configs = require 'nvim-treesitter.configs'
3842 local parsers = require 'nvim-treesitter.parsers'
43 -- nvim-treesitter assumes that windows users use either cmd or powershell.
44 -- my win32 + nushell combination does not work well.
45 -- override some internal functions of nvim-treesitter for nushell support.
46 local shell = require 'nvim-treesitter.shell_command_selectors'
47 shell.make_directory_change_for_command = function ( dir, command )
48 return string.format( 'cd %s; %s', dir, command )
49 end
50 shell.select_mv_cmd = function ( from, to, cwd )
51 return {
52 cmd = 'mv',
53 opts = {
54 args = { '--force', from, to },
55 cwd = cwd,
56 }
57 }
58 end
59 shell.select_install_rm_cmd = function ( cache_folder, project_name )
60 local project = vim.fs.joinpath( cache_folder, project_name )
61 return {
62 cmd = 'rm',
63 opts = {
64 args = {
65 '--recursive',
66 '--force',
67 '--permanent',
68 project,
69 }
70 },
71 err = 'Could not delete project ' .. project,
72 }
73 end
74 shell.select_rm_file_cmd = function ( file, info_msg )
75 return {
76 cmd = 'rm',
77 opts = {
78 args = { '--force', '--permanent', file }
79 },
80 info = info_msg,
81 err = 'Could not delete file ' .. file,
82 }
83 end
84 shell.select_mkdir_cmd = function ( directory, cwd, info_msg )
85 return {
86 cmd = 'mkdir',
87 opts = {
88 args = { directory },
89 cwd = cwd,
90 },
91 info = info_msg,
92 err = 'Could not create directory ' .. directory,
93 }
94 end
4096 install.prefer_git = false
41 install.compilers = { 'zig', 'clang', 'gcc', 'cl', 'cc', vim.fn.getenv 'CC' }
97 install.compilers = { 'zig' }
4399 ---@diagnostic disable-next-line: missing-fields
44100 configs.setup {
66122 'vim',
67123 'vimdoc',
68124 'query',
125 'xml',
69126 'zig',
70127 },
74131 auto_install = true,
76 autotag = { enable = true },
133 autotag = {
134 enable = true,
135 filetypes = {
136 'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'tsx', 'jsx', 'rescript', 'css', 'lua', 'xml', 'php', 'markdown'
137 },
138 },
140 endwise = { enable = true },
78142 context_commentstring = { enable = true, enable_autocmd = false },
218282 }
219283 end,

nushell/env.nu

Modified

+1 / −1 text lines

1515# theme for ls and other programs, that use LS_COLORS
16$env.LS_COLORS = (try { vivid generate ayu | into string } catch {""})
16$env.LS_COLORS = (try { vivid generate alabaster_dark | into string } catch {""})
1818# Specifies how environment variables are:
1919# - converted from a string to a value on Nushell startup (from_string)