dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs Merge branch 'trunk' of https://github.com/bugabinga/dotfiles into trunk
67154c32f0927e5fbcd19d5e3ed85d18abb04fdf
Oliver Jan Krylow <oliver@bugabinga.net > · 18 Sep 2024
unsigned
Browse files Compare with HEAD
Changed files (25) +1042 / −141 text lines · 1 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately
Diff layout Auto Unified Split
+3 / −0 text lines
80 80 ~/.local/share/fonts~/.local/share/fontsnew file mode 100644+39 / −0 text lines
10 + edging = "supixelantialias" 17 + family = "Symbols Nerd Font Mono" 21 + family = "Fantasque Sans Mono" 24 + family = "Symbols Nerd Font Mono" 28 + family = "Victor Mono" 31 + family = "Symbols Nerd Font Mono" 35 + family = "Victor Mono" 38 + family = "Symbols Nerd Font Mono" +3 / −6 text lines
41 + * figure out desirable cmp key maps41 42 * try loading lsp async for better startup perf* try loading lsp async for better startup perf42 - * check out vim-dadbod for sql workflows
43 43 * navic highlights do not fit winbar* navic highlights do not fit winbar
44 + * add nu-check to nvim-lint44 46 * make highlights more visible when expanding snippets* make highlights more visible when expanding snippets45 47 * cursor restore position on (session?) load jumps one location to somewhere* cursor restore position on (session?) load jumps one location to somewhere46 48 after correct location after correct location47 49 * check out `vim.snippet`* check out `vim.snippet`48 50 * use `vim.base64` in wezterm plugin* use `vim.base64` in wezterm plugin49 51 * integrate language tool?* integrate language tool?51 52 * adapt config to respect `vim.g.nerdfont` (std.constants?)* adapt config to respect `vim.g.nerdfont` (std.constants?)52 53 * Do I want multiple LSPs per buffer?* Do I want multiple LSPs per buffer?53 54 In case of markdown and text it seems useful, for code it seems like a In case of markdown and text it seems useful, for code it seems like a54 55 headache... headache...55 - * use ltex-ls for markdown, code comments and commit messages
56 56 * flesh out 'const.lua', move to std?* flesh out 'const.lua', move to std?57 57 * nvim spell for camel case words* nvim spell for camel case words58 - * add nu-check to nvim-lint
59 58 * create skeleton-plugin for default file content based on file type* create skeleton-plugin for default file content based on file type60 59 (BufNewFile?) (BufNewFile?)61 60 * make lsp config extensible, so that plugin configs can hook into it (e.g.* make lsp config extensible, so that plugin configs can hook into it (e.g.62 61 on_attach) on_attach)63 - * split parts of config into plugins
64 62 * add support for Java multi line string in autopairs* add support for Java multi line string in autopairs65 - * try Termdebug with gdb
neovim/lazy-lock.json Modified +3 / −4 text lines
2 2 "Comment.nvim" : { "branch" : "master" , "commit" : "e51f2b142d88bb666dcaa77d93a07f4b419aca70" }, "Comment.nvim" : { "branch" : "master" , "commit" : "e51f2b142d88bb666dcaa77d93a07f4b419aca70" },3 3 "LuaSnip" : { "branch" : "master" , "commit" : "03c8e67eb7293c404845b3982db895d59c0d1538" }, "LuaSnip" : { "branch" : "master" , "commit" : "03c8e67eb7293c404845b3982db895d59c0d1538" },4 - "actions-preview.nvim" : { "branch" : "master" , "commit" : "9f52a01c374318e91337697ebed51c6fae57f8a4" },
5 4 "better-escape.nvim" : { "branch" : "master" , "commit" : "bb197e51a91a635deb88630813c3bfc284413697" }, "better-escape.nvim" : { "branch" : "master" , "commit" : "bb197e51a91a635deb88630813c3bfc284413697" },6 5 "cmp-buffer" : { "branch" : "main" , "commit" : "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-buffer" : { "branch" : "main" , "commit" : "3022dbc9166796b644a841a02de8dd1cc1d311fa" },7 6 "cmp-nvim-lsp" : { "branch" : "main" , "commit" : "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, "cmp-nvim-lsp" : { "branch" : "main" , "commit" : "39e2eda76828d88b773cc27a3f61d2ad782c922d" },14 13 "dressing.nvim" : { "branch" : "master" , "commit" : "c5775a888adbc50652cb370073fcfec963eca93e" }, "dressing.nvim" : { "branch" : "master" , "commit" : "c5775a888adbc50652cb370073fcfec963eca93e" },15 14 "flash.nvim" : { "branch" : "main" , "commit" : "7bb4a9c75d1e20cd24185afedeaa11681829ba23" }, "flash.nvim" : { "branch" : "main" , "commit" : "7bb4a9c75d1e20cd24185afedeaa11681829ba23" },16 15 "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" }, "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" },
16 + "heirline.nvim" : { "branch" : "master" , "commit" : "0d797435e54645a5f98bad7ad6046aac1ef95c1e" },17 17 "indent-blankline.nvim" : { "branch" : "master" , "commit" : "3fe94b8034dd5241cb882bb73847303b58857ecf" }, "indent-blankline.nvim" : { "branch" : "master" , "commit" : "3fe94b8034dd5241cb882bb73847303b58857ecf" },18 18 "lazy.nvim" : { "branch" : "main" , "commit" : "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" }, "lazy.nvim" : { "branch" : "main" , "commit" : "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },19 - "lazydev.nvim" : { "branch" : "main" , "commit" : "491452cf1ca6f029e90ad0d0368848fac717c6d2" },
20 19 "lspkind.nvim" : { "branch" : "master" , "commit" : "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" }, "lspkind.nvim" : { "branch" : "master" , "commit" : "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },21 - "luvit-meta" : { "branch" : "main" , "commit" : "ce76f6f6cdc9201523a5875a4471dcfe0186eb60" },
22 20 "mason.nvim" : { "branch" : "main" , "commit" : "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "mason.nvim" : { "branch" : "main" , "commit" : "e2f7f9044ec30067bc11800a9e266664b88cda22" },23 21 "mini.bracketed" : { "branch" : "main" , "commit" : "833d66df6e0588222312a963780c6ec42ed7437d" }, "mini.bracketed" : { "branch" : "main" , "commit" : "833d66df6e0588222312a963780c6ec42ed7437d" },24 22 "mini.bufremove" : { "branch" : "main" , "commit" : "1ee294a97e091d3cf967974df622c0d887890dc2" }, "mini.bufremove" : { "branch" : "main" , "commit" : "1ee294a97e091d3cf967974df622c0d887890dc2" },
23 + "mini.diff" : { "branch" : "main" , "commit" : "24d46798be8a358d38d3adc92c7ebcbb2d6f67e0" },25 24 "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" }, "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" },26 25 "neogen" : { "branch" : "main" , "commit" : "e932ba918b56723436b77aa3efb844a11b2851ab" }, "neogen" : { "branch" : "main" , "commit" : "e932ba918b56723436b77aa3efb844a11b2851ab" },27 26 "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" }, "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" },49 48 "qf_helper.nvim" : { "branch" : "master" , "commit" : "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" }, "qf_helper.nvim" : { "branch" : "master" , "commit" : "fa3c2f3f2706e2c9984409c9c14b5993302ddfa7" },50 49 "schemastore.nvim" : { "branch" : "main" , "commit" : "bfe74baf72ca8964a211286fed864f30c672f19b" }, "schemastore.nvim" : { "branch" : "main" , "commit" : "bfe74baf72ca8964a211286fed864f30c672f19b" },51 50 "specs.nvim" : { "branch" : "main" , "commit" : "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" }, "specs.nvim" : { "branch" : "main" , "commit" : "8a108c8b37dec1b184a1d3d76c6cf867bfbe9636" },52 - "speedtyper.nvim" : { "branch" : "main" , "commit" : "d73b3d2bdd574dd9c2e39e3558a4fe26f081d885" },
53 51 "ssr.nvim" : { "branch" : "main" , "commit" : "7c95cfa5836508f08ae833a4b31d2ed265560f64" }, "ssr.nvim" : { "branch" : "main" , "commit" : "7c95cfa5836508f08ae833a4b31d2ed265560f64" },54 52 "substitute.nvim" : { "branch" : "main" , "commit" : "97f49d16f8eea7967d41db4f657dd63af53eeba1" }, "substitute.nvim" : { "branch" : "main" , "commit" : "97f49d16f8eea7967d41db4f657dd63af53eeba1" },55 53 "telescope-fzf-native.nvim" : { "branch" : "main" , "commit" : "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" }, "telescope-fzf-native.nvim" : { "branch" : "main" , "commit" : "cf48d4dfce44e0b9a2e19a008d6ec6ea6f01a83b" },58 56 "telescope.nvim" : { "branch" : "master" , "commit" : "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "telescope.nvim" : { "branch" : "master" , "commit" : "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },59 57 "text-case.nvim" : { "branch" : "main" , "commit" : "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" }, "text-case.nvim" : { "branch" : "main" , "commit" : "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },60 58 "todo-comments.nvim" : { "branch" : "main" , "commit" : "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" }, "todo-comments.nvim" : { "branch" : "main" , "commit" : "313b04e5b02d29ab9275c9295ff5e2b73921b0eb" },
59 + "tree-sitter-nu" : { "branch" : "main" , "commit" : "91ada3c0bed7d2963f6bbe2a57d68d77e67c5f07" },61 60 "treesj" : { "branch" : "main" , "commit" : "0d81326b5afd36babe7dd480aabbb0b05f33e688" }, "treesj" : { "branch" : "main" , "commit" : "0d81326b5afd36babe7dd480aabbb0b05f33e688" },62 61 "twilight.nvim" : { "branch" : "main" , "commit" : "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" }, "twilight.nvim" : { "branch" : "main" , "commit" : "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },63 62 "venn.nvim" : { "branch" : "main" , "commit" : "b09c2f36ddf70b498281845109bedcf08a7e0de0" }, "venn.nvim" : { "branch" : "main" , "commit" : "b09c2f36ddf70b498281845109bedcf08a7e0de0" },neovim/lua/bugabinga/options/ui.lua Modified +7 / −4 text lines
124 124 vim.opt.smoothscroll = true vim.opt.smoothscroll = true 127 - vim.opt.guicursor = 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50' 130 - vim.opt.guifont = 'Cousine,Symbols Nerd Font Mono:h15:#e-subpixelantialias:#h-none' 133 133 if vim.g.neovide then if vim.g.neovide then 134 + vim.g.neovide_profiler = false 136 136 vim.g.neovide_touch_deadzone = 0.0 vim.g.neovide_touch_deadzone = 0.0
138 + vim.g.neovide_underline_stroke_scale = 2.5 138 139 vim.g.neovide_touch_drag_timeout = 0.69 vim.g.neovide_touch_drag_timeout = 0.69 139 - vim.g.neovide_padding_top = 0 140 + vim.g.neovide_padding_top = 8 140 141 vim.g.neovide_padding_left = 8 vim.g.neovide_padding_left = 8 141 142 vim.g.neovide_padding_bottom = 0 vim.g.neovide_padding_bottom = 0 142 143 vim.g.neovide_padding_right = 0 vim.g.neovide_padding_right = 0 143 144 vim.g.neovide_hide_mouse_when_typing = true vim.g.neovide_hide_mouse_when_typing = true 144 145 vim.g.neovide_refresh_rate_idle = 5 vim.g.neovide_refresh_rate_idle = 5
146 + vim.g.neovide_theme = 'auto' 147 + vim.g.experimental_layer_grouping = true neovim/lua/bugabinga/plugins/actions-preview.lua Deleted deleted file mode 100644+0 / −27 text lines
1 - local map = require 'std.map' 4 - description = 'Open Code Actions Preview...' ,7 - command = function () require 'actions-preview' .code_actions() end ,11 - 'aznhe21/actions-preview.nvim' ,14 - sorting_strategy = 'ascending' ,15 - layout_strategy = 'vertical' ,19 - prompt_position = 'top' ,21 - preview_height = function ( _, _, max_lines )22 - return max_lines - 16
neovim/lua/bugabinga/plugins/autopairs.lua Modified +2 / −0 text lines
5 5 event = 'InsertEnter' , event = 'InsertEnter' ,7 7 disable_filetype = ignored.filetypes, disable_filetype = ignored.filetypes,
9 + enable_check_bracket_line = true ,neovim/lua/bugabinga/plugins/comment.lua Modified +3 / −2 text lines
2 2 'numToStr/Comment.nvim' , 'numToStr/Comment.nvim' ,3 3 version = '0.*' , version = '0.*' ,5 6 { 'gc' , mode = { 'n' , 'v' , }, desc = 'Comment toggle linewise' , }, { 'gc' , mode = { 'n' , 'v' , }, desc = 'Comment toggle linewise' , },6 7 { 'gb' , mode = { 'n' , 'v' , }, desc = 'Comment toggle blockwise' , }, { 'gb' , mode = { 'n' , 'v' , }, desc = 'Comment toggle blockwise' , },12 13 local commentstring_avail, commentstring = pcall ( require , 'ts_context_commentstring.integrations.comment_nvim' ) local commentstring_avail, commentstring = pcall ( require , 'ts_context_commentstring.integrations.comment_nvim' )13 14 return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook(), } or {} return commentstring_avail and commentstring and { pre_hook = commentstring.create_pre_hook(), } or {}neovim/lua/bugabinga/plugins/commentstring.lua Modified +0 / −1 text lines
2 2 'JoosepAlviste/nvim-ts-context-commentstring' , 'JoosepAlviste/nvim-ts-context-commentstring' ,4 3 init = function () init = function ()5 4 vim.g.skip_ts_context_commentstring_module = true vim.g.skip_ts_context_commentstring_module = true neovim/lua/bugabinga/plugins/conform.lua Modified +2 / −4 text lines
17 17 command = format, command = format,21 - 'Format the current buffer' (20 + user_command . Format 'Format the current buffer' ( format ) 26 23 'stevearc/conform.nvim' , 'stevearc/conform.nvim' ,33 30 toml = { 'taplo' , }, toml = { 'taplo' , },34 31 sh = { 'shfmt' , }, sh = { 'shfmt' , },35 32 just = { 'just' , }, just = { 'just' , },36 34 zig = { 'zigfmt' , }, zig = { 'zigfmt' , },38 36 ['*' ] = { 'injected' , 'typos' , }, ['*' ] = { 'injected' , 'typos' , },neovim/lua/bugabinga/plugins/heirline.lua Added new file mode 100644+816 / −0 text lines
2 + local icon = require 'std.icon' 3 + local auto = require 'std.auto' 4 + local ignored = require 'std.ignored' 6 + local NEW_FILE = '~untitled~' 10 + 'rebelot/heirline.nvim' ,14 + 'nvim-tree/nvim-web-devicons' ,15 + { 'echasnovski/mini.diff' , lazy = true , },16 + { 'SmiteshP/nvim-navic' , lazy = true , },19 + local heirline = require 'heirline' 20 + local conditions = require 'heirline.conditions' 21 + local utils = require 'heirline.utils' 23 + local nugu = require 'bugabinga.nugu.palette' 24 + heirline.load_colors( nugu )26 + auto 'reload_heirline_colors' {27 + description = 'Reload dark/light nugu colors for Heirline' ,28 + events = 'ColorScheme' ,29 + command = function ()30 + utils.on_colorscheme( nugu )35 + init = function ( self )36 + self.mode = vim.fn.mode( 1 ) 42 + no = icon.normal .. '?' ,43 + nov = icon.normal .. '?' ,44 + noV = icon.normal .. '?' ,45 + ['no\22' ] = icon.normal .. '?' ,46 + niI = icon.normal .. 'i' ,47 + niR = icon.normal .. 'r' ,48 + niV = icon.normal .. 'v' ,49 + nt = icon.normal .. 't' ,51 + vs = icon.visual .. 's' ,52 + V = icon.visual .. '_' ,53 + Vs = icon.visual .. 's' ,54 + ['\22' ] = '^' .. icon.visual,55 + ['\22s' ] = '^' .. icon.visual,57 + S = icon.select .. '_' ,58 + ['\19' ] = '^' .. icon.select,60 + ic = icon.insert .. 'c' ,61 + ix = icon.insert .. 'x' ,63 + Rc = icon.replace .. 'c' ,64 + Rx = icon.replace .. 'x' ,65 + Rv = icon.replace .. 'v' ,66 + Rvc = icon.replace .. 'v' ,67 + Rvx = icon.replace .. 'v' ,69 + cv = icon.command .. 'x' ,71 + rm = icon.pending .. 'm' ,72 + ['r?' ] = icon.pending .. '?' ,73 + ['!' ] = icon.exclaim,79 + v = 'ui_important_global' ,80 + V = 'ui_important_global' ,81 + ['\22' ] = 'ui_important_global' ,82 + c = 'ui_important_global' ,83 + s = 'ui_important_global' ,84 + S = 'ui_important_global' ,85 + ['\19' ] = 'ui_important_global' ,86 + R = 'ui_important_global' ,87 + r = 'ui_important_global' ,88 + ['!' ] = 'ui_important_global' ,89 + t = 'ui_important_global' ,93 + provider = function ( self )94 + local mode_name = self.mode_names[self.mode]95 + return ' ' .. icon.vim .. ' %3(' .. mode_name .. '%) ' 98 + hl = function ( self )99 + local mode = self.mode:sub( 1 , 1 ) 100 + return { fg = self.mode_colors[mode], bold = true , }106 + callback = vim.schedule_wrap( function ()107 + vim.cmd.redrawstatus()113 + init = function ( self )114 + local filename = self.filename115 + local extension = vim.fn.fnamemodify( filename, ':e' )116 + self.icon = require 'nvim-web-devicons' .get_icon_color( filename, extension, { default = true , } )118 + provider = function ( self )119 + return self.icon and (self.icon .. ' ' )125 + init = function ( self )126 + self.lfilename = vim.fs.normalize( vim.fn.fnamemodify( self.filename, ':.' ) )127 + if self.lfilename == '' then 128 + self.lfilename = NEW_FILE135 + provider = function ( self )136 + return self.lfilename140 + provider = function ( self )141 + return vim.fs.normalize( vim.fn.pathshorten( self.lfilename ) )146 + local file_flags = {148 + condition = function ()149 + return vim.bo.modified151 + provider = string .format ( ' %s ' , icon.modified ),155 + condition = function ()156 + return not vim.bo.modifiable or vim.bo.readonly158 + provider = string .format ( ' %s ' , icon.lock ),163 + local file_name_block = {164 + init = function ( self )165 + self.filename = vim.fs.normalize( vim.api.nvim_buf_get_name( 0 ) )169 + { provider = ' ' , },172 + { provider = '%<' , }, 176 + provider = function ()177 + return icon.file .. ' ' .. string .upper ( vim.bo.filetype )181 + local file_encoding = {182 + provider = function ()183 + local enc = (vim.bo.fenc ~= '' and vim.bo.fenc) or vim.o.enc 184 + return enc ~= 'utf-8' and enc:upper()188 + local file_format = {190 + dos = icon.newline .. icon.carriage_return,191 + unix = icon.newline,192 + mac = icon.carriage_return,194 + provider = function ( self )195 + local fileformat = vim.bo.fileformat196 + return self[fileformat]201 + provider = function ()204 + local suffix = { 'b' , 'k' , 'M' , 'G' , 'T' , 'P' , 'E' , }205 + local fsize = vim.fn.getfsize( vim.api.nvim_buf_get_name( 0 ) )206 + fsize = (fsize < 0 and 0 ) or fsize207 + if fsize < 1024 then 208 + return fsize .. suffix[1 ]210 + local i = math .floor ( (math .log ( fsize ) / math .log ( 1024 )) )211 + return string .format ( '%.2g%s' , fsize / math .pow ( 1024 , i ), suffix[i + 1 ] )215 + local file_last_modified = {216 + provider = function ()217 + local ftime = vim.fn.getftime( vim.api.nvim_buf_get_name( 0 ) )219 + local timeago = require 'std.timeago' 220 + return timeago.format( ftime )225 + local lsp_active = {226 + condition = conditions.lsp_attached,229 + update = { 'LspAttach' , 'LspDetach' , 'BufEnter' , 'BufLeave' , },231 + provider = function ()233 + for _, client in pairs ( vim.lsp.get_clients { bufnr = 0 , } ) do 234 + table .insert ( names, client.name )236 + return icon.lsp .. ' ' .. table .concat ( names, ' ' )241 + condition = function ()242 + local ok, navic = pcall ( require , 'nvim-navic' )243 + return ok and navic.is_available()249 + Module = '@include' ,250 + Namespace = '@namespace' ,251 + Package = '@include' ,252 + Class = '@structure' ,254 + Property = '@property' ,256 + Constructor = '@constructor' ,258 + Interface = '@type' ,259 + Function = '@function' ,260 + Variable = '@variable' ,261 + Constant = '@constant' ,264 + Boolean = '@boolean' ,269 + EnumMember = '@field' ,270 + Struct = '@structure' ,272 + Operator = '@operator' ,273 + TypeParameter = '@type' ,276 + enc = function ( line, col, winnr )277 + return bit.bor( bit.lshift( line, 16 ), bit.lshift( col, 6 ), winnr )280 + dec = function ( c )281 + local line = bit.rshift( c, 16 )282 + local col = bit.band( bit.rshift( c, 6 ), 1023 )283 + local winnr = bit.band( c, 63 )284 + return line, col, winnr287 + init = function ( self )288 + local data = require 'nvim-navic' .get_data() or {}291 + for i, d in ipairs ( data ) do 293 + local pos = self.enc( d.scope.start.line, d.scope.start.character, self.winnr )297 + hl = self.type_hl[d.type],301 + provider = d.name:gsub( '%%' , '%%%%' ):gsub( '%s*->%s*' , '' ),303 + hl = self.type_hl[d.type],308 + callback = function ( _, minwid )310 + local line, col, winnr = self.dec( minwid )311 + vim.api.nvim_win_set_cursor( vim.fn.win_getid( winnr ), { line, col, } )313 + name = 'heirline_navic' ,318 + if # data > 1 and i < # data then 319 + table .insert ( child, {324 + table .insert ( children, child )327 + self.child = self:new( children, 1 )330 + provider = function ( self )331 + return self.child:eval()334 + update = 'CursorMoved' ,337 + local diagnostic_enabled = {338 + init = function ( self )339 + self.icon = (not vim.diagnostic.is_enabled()) and icon.toggle_off or icon.toggle_on341 + provider = function ( self )342 + return icon.diagnostic .. ' ' .. self.icon346 + local diagnostic = {347 + condition = conditions.has_diagnostics,350 + error_icon = icon.error,351 + warn_icon = icon.warn,352 + info_icon = icon.info,353 + hint_icon = icon.hint,356 + init = function ( self )357 + self.errors = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.ERROR, } )358 + self.warnings = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.WARN, } )359 + self.hints = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.HINT, } )360 + self.info = # vim.diagnostic.get( 0 , { severity = vim.diagnostic.severity.INFO, } )363 + update = { 'DiagnosticChanged' , 'BufEnter' , 'BufLeave' , },366 + provider = function ( self )368 + return self.errors > 0 and (self.error_icon .. ' ' .. self.errors .. ' ' )370 + hl = 'DiagnosticError' ,373 + provider = function ( self )374 + return self.warnings > 0 and (self.warn_icon .. ' ' .. self.warnings .. ' ' )376 + hl = 'DiagnosticWarn' ,379 + provider = function ( self )380 + return self.info > 0 and (self.info_icon .. ' ' .. self.info .. ' ' )382 + hl = 'DiagnosticInfo' ,385 + provider = function ( self )386 + return self.hints > 0 and (self.hint_icon .. ' ' .. self.hints)388 + hl = 'DiagnosticHint' ,392 + local is_svn_repo = function ()393 + local svn_dir = vim.fs.find( '.svn' , {395 + stop = vim.uv.os_homedir(),396 + path = vim.fs.dirname( vim.api.nvim_buf_get_name( 0 ) ),400 + return not vim.tbl_isempty( svn_dir )403 + local svn_get_relative_url = function ()405 + local job = require 'plenary.job' 406 + local relative_url = { '[ERR]' , }411 + args = { 'info' , '--show-item' , 'relative-url' , '--no-newline' , },412 + on_exit = function ( current_job, exit_code )413 + if exit_code == 0 then 414 + relative_url = current_job:result()420 + return relative_url[1 ]424 + condition = is_svn_repo,426 + update = 'BufEnter' ,428 + init = function ( self )429 + self.relative_url = svn_get_relative_url()433 + provider = function ( self )434 + return icon.subversion .. ' ' .. icon.branch .. ' ' .. self.relative_url440 + condition = conditions.is_git_repo,442 + init = function ( self )443 + self.status_dict = vim.b.minidiff_summary447 + provider = function ( self )448 + return icon.git .. ' ' .. icon.branch .. ' ' .. self.status_dict.source_name .. ' ' 452 + provider = function ( self )453 + local count = self.status_dict.add or 0 454 + return count > 0 and (icon.diff_add .. ' ' .. count .. ' ' )459 + provider = function ( self )460 + local count = self.status_dict.delete or 0 461 + return count > 0 and (icon.diff_remove .. ' ' .. count .. ' ' )466 + provider = function ( self )467 + local count = self.status_dict.change or 0 468 + return count > 0 and (icon.diff_change .. ' ' .. count .. ' ' )475 + init = function ( self )476 + self.icon = (vim.fn.haslocaldir( 0 ) == 1 and icon['local' ] or '' ) .. ' ' .. icon.global .. ' ' 477 + self.cwd = vim.fs.normalize( vim.uv.cwd() ):gsub( vim.fs.normalize( vim.uv.os_homedir() ), '~' )483 + provider = function ( self )484 + return self.icon .. self.cwd488 + provider = function ( self )489 + local cwd = vim.fn.pathshorten( self.cwd )490 + return self.icon .. cwd498 + local help_file_name = {499 + condition = function ()500 + return vim.bo.filetype == 'help' 502 + provider = function ()503 + local filename = vim.api.nvim_buf_get_name( 0 )504 + return vim.fn.fnamemodify( filename, ':t' )509 + local terminal_name = {510 + provider = function ()511 + local name, _ = vim.api.nvim_buf_get_name( 0 ):gsub( '.*:' , '' )512 + local basename = vim.fs.basename( name )513 + return icon.terminal .. ' ' .. (basename or 'noname' )519 + provider = function ()520 + local togglers = require 'bugabinga.options.togglers' 521 + return tostring ( togglers )525 + local macro_recording = {526 + condition = function ()527 + return vim.fn.reg_recording() ~= '' and vim.o.cmdheight == 0 529 + provider = icon.macro .. ' ' ,531 + utils.surround( { '░▒▓ ' , ' ▓▒░' , }, nil , {532 + provider = function ()533 + return vim.fn.reg_recording()544 + condition = function ()545 + local ok, lazy_status = pcall ( require , 'lazy.status' )546 + return ok and lazy_status.has_updates()548 + update = { 'User' , pattern = 'LazyUpdate' , },549 + provider = function ()550 + return ' ' .. icon.lazy .. ' ' .. require 'lazy.status' .updates() .. ' ' 553 + callback = function ()554 + require 'lazy' .update()556 + name = 'update_plugins' ,560 + local align = { provider = '%=' , }561 + local space = { provider = ' ' , }563 + local default_statusline = {593 + local special_statusline = {594 + condition = function ()595 + return conditions.buffer_matches {596 + buftype = ignored.buftypes,597 + filetype = ignored.filetypes,607 + local terminal_statusline = {609 + condition = function ()610 + return conditions.buffer_matches { buftype = { 'terminal' , }, }613 + { condition = conditions.is_active, vi_mode, space, },620 + local inactive_statusline = {621 + condition = conditions.is_not_active,628 + local statuslines = {630 + if conditions.is_active() then 633 + return 'StatusLineNC' 637 + fallthrough = false ,640 + terminal_statusline,641 + inactive_statusline,647 + if conditions.is_active() then 654 + fallthrough = false ,657 + condition = function ()658 + return conditions.buffer_matches { buftype = { 'terminal' , }, }776 + provider = function ( self )777 + return '%' .. self.tabnr .. 'T ' .. self.tabpage .. ' %T' 779 + hl = function ( self )780 + if self.is_active then 789 + { provider = '%=' , },790 + utils.make_tablist( tabpage ),798 + statusline = statuslines,800 + tabline = tab_pages,806 + disable_winbar_cb = function ( args )807 + return conditions.buffer_matches( {808 + buftype = ignored.buftypes,809 + filetype = ignored.filetypes,neovim/lua/bugabinga/plugins/last-place.lua Modified +6 / −8 text lines
1 1 local ignored = require 'std.ignored' local ignored = require 'std.ignored' 5 - 'ethanholz/nvim-lastplace' ,6 - event = { 'VimEnter' , 'SessionLoadPost' , },8 - lastplace_ignore_buftype = ignored.buftypes,9 - lastplace_ignore_filetype = ignored.filetypes,10 - lastplace_open_folds = true ,4 + 'ethanholz/nvim-lastplace' ,7 + lastplace_ignore_buftype = ignored.buftypes,8 + lastplace_ignore_filetype = ignored.filetypes,9 + lastplace_open_folds = true ,neovim/lua/bugabinga/plugins/lazydev.lua Deleted deleted file mode 100644+0 / −29 text lines
10 - { path = 'luvit-meta/library' , words = { 'vim%.uv' , }, },13 - { path = 'wezterm-types' , mods = { 'wezterm' , }, },17 - { 'Bilal2453/luvit-meta' , lazy = true , }, 20 - opts = function ( _, opts )21 - opts.sources = opts.sources or {}22 - table .insert ( opts.sources, {
neovim/lua/bugabinga/plugins/lint.lua Modified +11 / −15 text lines
11 11 linters_by_ft = { linters_by_ft = {12 12 lua = { 'selene' , }, lua = { 'selene' , },13 - sh = { 'shellcheck' , },13 + sh = { 'shellcheck' , ' dotenv_linter ' , },14 + systemd = { 'systemd-analyze' , },19 18 config = function ( _, opts ) config = function ( _, opts )20 19 local lint = require 'lint' local lint = require 'lint' 25 24 local timer = assert ( uv.new_timer() ) local timer = assert ( uv.new_timer() )26 25 local DEBOUNCE_MS = 500 local DEBOUNCE_MS = 500 27 26 local aug = vim.api.nvim_create_augroup( 'Lint' , { clear = true , } ) local aug = vim.api.nvim_create_augroup( 'Lint' , { clear = true , } )28 - vim.api.nvim_create_autocmd( { 'BufEnter ' , ' BufWritePost' , ' TextChanged ' , ' InsertLeave ' , }, {27 + vim.api.nvim_create_autocmd( { 'BufWritePost' , }, {29 28 group = aug, group = aug,30 29 callback = function () callback = function ()31 30 local bufnr = vim.api.nvim_get_current_buf() local bufnr = vim.api.nvim_get_current_buf()32 31 timer:stop() timer:stop()36 - vim.schedule_wrap( function ()37 - if vim.api.nvim_buf_is_valid( bufnr ) then 38 - vim.api.nvim_buf_call( bufnr, function () lint.try_lint( nil , { ignore_errors = true , } ) end )32 + timer:start( DEBOUNCE_MS , 0 , 33 + vim.schedule_wrap( function ()34 + if vim.api.nvim_buf_is_valid( bufnr ) then 35 + vim.api.nvim_buf_call( bufnr, function () lint.try_lint( nil , { ignore_errors = true , } ) end )44 - lint.try_lint( nil , { ignore_errors = true , } )
neovim/lua/bugabinga/plugins/speedtyper.lua Deleted deleted file mode 100644+0 / −7 text lines
3 - 'NStefan002/speedtyper.nvim' ,
neovim/lua/bugabinga/plugins/ssr.lua Modified +22 / −22 text lines
4 4 local open_ssr = function () prequire 'ssr' .open() end local open_ssr = function () prequire 'ssr' .open() end 6 6 map.normal.visual {map.normal.visual {7 - description = 'Open structural search and replace' ,8 - category = 'refactoring' ,7 + description = 'Open structural search and replace' ,8 + category = 'refactoring' ,13 13 user_command.StructuralSearchAndReplaceuser_command.StructuralSearchAndReplace14 14 'Open structural search and replace view' ('Open structural search and replace view' (19 - 'cshuaimin/ssr.nvim' ,21 - border = vim.g.border_style,26 - adjust_window = true ,31 - replace_confirm = '<cr>' ,32 - replace_all = '<c-cr>' ,19 + 'cshuaimin/ssr.nvim' ,21 + border = vim.g.border_style,26 + adjust_window = true ,31 + replace_confirm = '<cr>' ,32 + replace_all = '<c-cr>' ,neovim/lua/bugabinga/plugins/treesitter.lua Modified +3 / −11 text lines
12 12 branch = 'master' , branch = 'master' ,14 - init = function ( plugin )20 - require 'lazy.core.loader' .add_to_rtp( plugin )21 - require 'nvim-treesitter.query_predicates' 23 14 build = function () build = function ()24 15 require 'nvim-treesitter.install' .update { with_sync = true , } require 'nvim-treesitter.install' .update { with_sync = true , }29 20 'windwp/nvim-ts-autotag' , 'windwp/nvim-ts-autotag' ,30 21 'RRethy/nvim-treesitter-endwise' , 'RRethy/nvim-treesitter-endwise' ,31 22 'nvim-treesitter/nvim-treesitter-context' , 'nvim-treesitter/nvim-treesitter-context' ,
23 + 'nushell/tree-sitter-nu' ,33 25 config = function () config = function ()34 26 local install = require 'nvim-treesitter.install' local install = require 'nvim-treesitter.install' 35 27 local configs = require 'nvim-treesitter.configs' local configs = require 'nvim-treesitter.configs' 37 29 install.prefer_git = false install.prefer_git = false 38 - install.compilers = { 'zig' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' , }30 + install.compilers = { 'zig cc ' , 'clang' , 'gcc' , 'cl' , 'cc' , vim.fn.getenv 'CC' , }40 32 local should_disable = function ( _, bufnr ) local should_disable = function ( _, bufnr )41 33 local max_filesize = 5 * 1024 * 1024 local max_filesize = 5 * 1024 * 1024 neovim/lua/bugabinga/plugins/virt-column.lua Modified +2 / −1 text lines
1 1 local ignored = require 'std.ignored' local ignored = require 'std.ignored'
2 + local icon = require 'std.icon' 4 5 'lukas-reineke/virt-column.nvim' , 'lukas-reineke/virt-column.nvim' ,5 6 version = '2.*' , version = '2.*' ,6 7 event = 'VeryLazy' , event = 'VeryLazy' ,8 - char = { '┆' , '╎' , '│' , },9 + char = { icon.vertical_bar },9 10 exclude = { exclude = {10 11 filetypes = ignored.filetypes, filetypes = ignored.filetypes,11 12 buftypes = ignored.buftypes, buftypes = ignored.buftypes,neovim/spell/nerd.utf-8.add Modified +5 / −0 text lines
neovim/spell/nerd.utf-8.add.spl Modified Binary size (old → new): 1187 → 1218 bytes.
+11 / −0 text lines
5 5 use ssh-keygen-ed.nuuse ssh-keygen-ed.nu7 7 use start.nuuse start.nu9 14 source ($nu.default-config-dir | path join 'aliases.nu' )source ($nu.default-config-dir | path join 'aliases.nu' )13 18 source ($nu.default-config-dir | path join "zoxide.nu" )source ($nu.default-config-dir | path join "zoxide.nu" )
20 + source ($nu.default-config-dir | path join "scripts/direnv.nu" )nushell/scripts/direnv.nu Added new file mode 100644+26 / −0 text lines
4 + condition: {|before, after| ($before != $after ) and ($after | path join '.env' | path exists) }8 + | parse --regex '\s*(?P<k>.+?)\s*=\s*?(?P<v>.+)?\s*' 9 + | reduce --fold {} {|x, acc| $acc | upsert $x.k $x.v }17 + $env.config = ( $env.config | upsert hooks.env_change.PWD { |config|18 + let o = ($config | get -i hooks.env_change.PWD)nushell/scripts/refreshenv.nu Added new file mode 100644+9 / −0 text lines
1 + def --env refreshenv [] {2 + let user_path = registry query --hkcu environment | where name == Path | get value | split row ';' |3 + where { |x| $x != '' }4 + let sys_path = registry query --hklm 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment' | where name == Path | get value | 5 + split row ';' | where { |x| $x != '' }7 + let out = $user_path ++ $sys_path ++ $env.path | uniq --ignore-casenushell/scripts/timer.nu Added new file mode 100644+63 / −0 text lines
1 + export def main [ input: string ] {3 + if (which tclock | is-empty) {5 + msg: "The program `tclock` is required!" 9 + if ( $input | is-empty ) {11 + msg: "timer needs a duration or time" 13 + span: (metadata $input ).span15 + help: "try 'timer 5min' for example" 19 + let duration = try { $input | into duration --unit sec }21 + if ($duration != null) {22 + start_with_duration ( $duration | into string | str replace sec s)26 + let time = try { $input | into datetime }29 + start_with_time $time 34 + msg: "The input given is neiter a duration nor a time." 36 + span: (metadata $input ).span38 + help: "Consult `help into duration` and `help into datetime` for valid input." 43 + notify --summary "timer finished" --body "timer is done!" --app-name timer46 + seq (random float 100 ..500 ) 50 (random float 500 ..1000 ) | each { sound make --amplify ( $idx | into float ) $in 144ms }50 + def start_with_duration [ duration: string ] {51 + run-external tclock timer '--paused' '--no-millis' '--duration' $duration '--execute' 'nu --commands "use timer.nu; timer beep"' 55 + fill --width 2 --character 0 --alignment right58 + def start_with_time [ time: datetime ] {59 + let time = ($time | into record)60 + let time = $"($time.year)-($time.month|pad)-($time.day|pad)T($time.hour|pad):($time.minute|pad):($time.second|pad)($time.timezone)" 61 + run-external tclock countdown '--title' Timer '--time' $time +6 / −0 text lines
8 8 cargo-update;cargo-install-update cargo-update;cargo-install-update 10 10 du-dust; dust du-dust; dust 12 13 eza; eza ; --features vendored-openssl,vendored-libgit2 eza; eza ; --features vendored-openssl,vendored-libgit2 15 16 git-delta;delta git-delta;delta 16 17 gitu;gitu ; --locked gitu;gitu ; --locked 36 38 # netscanner# netscanner
39 + neovide;neovide; --git https://github.com/neovide/neovide 37 40 nu;nu; --locked nu;nu; --locked 38 41 neovide; neovide; --git https://github.com/neovide/neovide neovide; neovide; --git https://github.com/neovide/neovide
42 + nu_plugin_audio_hook; nu_plugin_audio_hook; --git https://github.com/FMotalleb/nu_plugin_audio_hook.git --features all-decoders 44 + nu_plugin_desktop_notifications41 47 pueue;pueue;--locked pueue;pueue;--locked