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
bd7b82e42763660ff669f545d1b5383daa5e3db2
Oliver Jan Krylow <oliver@bugabinga.net > · 27 Feb 2024
unsigned
Browse files Compare with HEAD
Changed files (19) Diff layout Auto Unified Split
+1 / −0 text lines
10 10 .aider.chat.history.md .aider.chat.history.md 12 12 . * syncthing. * . * syncthing. * neovim/ftplugin/markdown.lua Modified +1 / −4 text lines
2 - vim.opt_local.autowriteall = true
5 - vim.opt_local.spell == true 2 + vim.opt_local.spell = true +17 / −13 text lines
12 + local debug = require 'std.debug' 14 - ok = pcall ( require , 'bugabinga.options' )15 - if not ok then print 'error while loading options' end 18 + ok, loaded = pcall ( require , 'bugabinga.options' )19 + if not ok then vim . print( 'error while loading options' , loaded ) end 18 - ok = pcall ( require , 'bugabinga.lazy' )19 - if not ok then print 'error while loading lazy' end 22 + ok, loaded = pcall ( require , 'bugabinga.lazy' )23 + if not ok then vim . print( 'error while loading lazy' , loaded ) end 22 - ok = pcall ( require , 'bugabinga.diagnostic' )23 - if not ok then print 'error while loading diagnostic' end 26 + ok, loaded = pcall ( require , 'bugabinga.diagnostic' )27 + if not ok then vim . print( 'error while loading diagnostic' , loaded ) end 26 - ok = pcall ( require , 'bugabinga.trim' )27 - if not ok then print 'error while loading trim' end 30 + ok, loaded = pcall ( require , 'bugabinga.trim' )31 + if not ok then vim . print( 'error while loading trim' , loaded ) end 30 - ok = pcall ( require , 'bugabinga.mark' )31 - if not ok then print 'error while loading mark' end 34 + ok, loaded = pcall ( require , 'bugabinga.mark' )35 + if not ok then vim . print( 'error while loading mark' , loaded ) end 34 - ok = pcall ( require , 'bugabinga.lsp' )35 - if not ok then print 'error while loading lsp' end 38 + ok, loaded = pcall ( require , 'bugabinga.lsp' )39 + if not ok then vim . print( 'error while loading lsp' , loaded ) end neovim/lazy-lock.json Modified +12 / −14 text lines
15 15 "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, "diffview.nvim" : { "branch" : "main" , "commit" : "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },16 16 "dressing.nvim" : { "branch" : "master" , "commit" : "6f212262061a2120e42da0d1e87326e8a41c0478" }, "dressing.nvim" : { "branch" : "master" , "commit" : "6f212262061a2120e42da0d1e87326e8a41c0478" },17 17 "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" }, "flash.nvim" : { "branch" : "main" , "commit" : "48817af25f51c0590653bbc290866e4890fe1cbe" },18 - "friendly-snippets" : { "branch" : "main" , "commit" : "5cc1f45c6aac699ad008fb85f6ae03236062667d" },18 + "friendly-snippets" : { "branch" : "main" , "commit" : "dbd45e9ba76d535e4cba88afa1b7aa43bb765336" },19 19 "gen.nvim" : { "branch" : "main" , "commit" : "98043162168dcc0eb5c3c31b97439ff686dc8559" }, "gen.nvim" : { "branch" : "main" , "commit" : "98043162168dcc0eb5c3c31b97439ff686dc8559" },20 20 "gitsigns.nvim" : { "branch" : "main" , "commit" : "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" }, "gitsigns.nvim" : { "branch" : "main" , "commit" : "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },21 21 "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" }, "glow.nvim" : { "branch" : "main" , "commit" : "238070a686c1da3bccccf1079700eb4b5e19aea4" },32 32 "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" }, "mini.colors" : { "branch" : "main" , "commit" : "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },33 33 "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" }, "mini.starter" : { "branch" : "main" , "commit" : "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },34 34 "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" }, "mkdir.nvim" : { "branch" : "main" , "commit" : "c55d1dee4f099528a1853b28bb28caa802eba217" },35 - "neodev.nvim" : { "branch" : "main" , "commit" : "365ef03dbf5b8579e6eb205b3500fc3bee17484a" },35 + "neodev.nvim" : { "branch" : "main" , "commit" : "f7f249b361e9fb245eea24cbcd9f5502e796c6ea" },36 36 "neogen" : { "branch" : "main" , "commit" : "70127baaff25611deaf1a29d801fc054ad9d2dc1" }, "neogen" : { "branch" : "main" , "commit" : "70127baaff25611deaf1a29d801fc054ad9d2dc1" },37 - "noice.nvim" : { "branch" : "main" , "commit" : "bf67d70bd7265d075191e7812d8eb42b9791f737" },
38 37 "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" }, "nrpattern.nvim" : { "branch" : "master" , "commit" : "f862ce687761078ef3155688151c55f69d28453e" },39 - "nui.nvim" : { "branch" : "main" , "commit" : "af7dfee12fbf51d12cfc6ee386fa54f7a5a573c8" },40 - "nvim-autopairs" : { "branch" : "master" , "commit" : "096d0baecc34f6c5d8a6dd25851e9d5ad338209b" },38 + "nui.nvim" : { "branch" : "main" , "commit" : "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },39 + "nvim-autopairs" : { "branch" : "master" , "commit" : "1efb4f2e754d282762a1413ea0528d9a45143cdd" },41 40 "nvim-cmp" : { "branch" : "main" , "commit" : "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, "nvim-cmp" : { "branch" : "main" , "commit" : "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },42 41 "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" }, "nvim-colorizer.lua" : { "branch" : "master" , "commit" : "85855b38011114929f4058efc97af1059ab3e41d" },43 - "nvim-genghis" : { "branch" : "main" , "commit" : "c9b60e7cc20a56b81854427e608ef46d4612926b" },42 + "nvim-genghis" : { "branch" : "main" , "commit" : "d04dbfe57b0ae908ba8e397962a1fcef98ca9fd9" },44 43 "nvim-gomove" : { "branch" : "main" , "commit" : "2b44ae7ac0804f4e3959228122f7c85bef1964e3" }, "nvim-gomove" : { "branch" : "main" , "commit" : "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },45 44 "nvim-jdtls" : { "branch" : "master" , "commit" : "a4746791876166dc146eae573a1b49d24a6652e7" }, "nvim-jdtls" : { "branch" : "master" , "commit" : "a4746791876166dc146eae573a1b49d24a6652e7" },46 45 "nvim-lastplace" : { "branch" : "main" , "commit" : "0bb6103c506315044872e0f84b1f736c4172bb20" }, "nvim-lastplace" : { "branch" : "main" , "commit" : "0bb6103c506315044872e0f84b1f736c4172bb20" },47 46 "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" }, "nvim-neoclip.lua" : { "branch" : "main" , "commit" : "798cd0592a81c185465db3a091a0ff8a21af60fd" },48 - "nvim-notify" : { "branch" : "master" , "commit" : "7138c86b28de61b6866c8cae60289136f0d539fa" },
49 47 "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" }, "nvim-spectre" : { "branch" : "master" , "commit" : "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },50 48 "nvim-surround" : { "branch" : "main" , "commit" : "8f2af76134f37058dc4c27a24bc5f86c9cae76dc" }, "nvim-surround" : { "branch" : "main" , "commit" : "8f2af76134f37058dc4c27a24bc5f86c9cae76dc" },51 - "nvim-tree.lua" : { "branch" : "master" , "commit" : "863cf832ceb0b2377c913b7696dd7d64f4978941" },52 - "nvim-treesitter" : { "branch" : "master" , "commit" : "bdaa6b817aaef459e2d1968c50ce0061e51410e8" },53 - "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "dd0b2036c3a27cb6e6486f8bd24188c6ca43af0b" },49 + "nvim-tree.lua" : { "branch" : "master" , "commit" : "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677" },50 + "nvim-treesitter" : { "branch" : "master" , "commit" : "c06292fdc641d71d185d2f1a507ad8232b6cf528" },51 + "nvim-treesitter-textobjects" : { "branch" : "master" , "commit" : "7f00d94543f1fd37cab2afa2e9a6cd54e1c6b9ef" },54 52 "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-autotag" : { "branch" : "main" , "commit" : "531f48334c422222aebc888fd36e7d109cb354cd" },55 53 "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" }, "nvim-ts-context-commentstring" : { "branch" : "main" , "commit" : "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },56 - "nvim-web-devicons" : { "branch" : "master" , "commit" : "7f30f2da3c3641841ceb0e2c150281f624445e8f" },54 + "nvim-web-devicons" : { "branch" : "master" , "commit" : "14ac5887110b06b89a96881d534230dac3ed134d" },57 55 "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" }, "nvim-window" : { "branch" : "main" , "commit" : "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },58 - "oil.nvim" : { "branch" : "master" , "commit" : "bf753c3e3f8736939ad5597f92329dfe7b1df4f5" },56 + "oil.nvim" : { "branch" : "master" , "commit" : "132b4ea0740c417b9d717411cab4cf187e1fd095" },59 57 "persistence.nvim" : { "branch" : "main" , "commit" : "4982499c1636eac254b72923ab826ee7827b3084" }, "persistence.nvim" : { "branch" : "main" , "commit" : "4982499c1636eac254b72923ab826ee7827b3084" },60 58 "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, "playground" : { "branch" : "master" , "commit" : "ba48c6a62a280eefb7c85725b0915e021a1a0749" },61 59 "plenary.nvim" : { "branch" : "master" , "commit" : "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" }, "plenary.nvim" : { "branch" : "master" , "commit" : "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },62 - "schemastore.nvim" : { "branch" : "main" , "commit" : "91b56a811d87b9e7e0600c95f80ff2d08245bf61" },60 + "schemastore.nvim" : { "branch" : "main" , "commit" : "0358c7e159e5502361bf3971d89bf5133bcc2893" },63 61 "specs.nvim" : { "branch" : "main" , "commit" : "2743e412bbe21c9d73954c403d01e8de7377890d" }, "specs.nvim" : { "branch" : "main" , "commit" : "2743e412bbe21c9d73954c403d01e8de7377890d" },64 62 "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" }, "speedtyper.nvim" : { "branch" : "main" , "commit" : "2d158eed4c753995b0501a3a7a72464fbb213e3d" },65 63 "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" }, "ssr.nvim" : { "branch" : "main" , "commit" : "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },76 74 "virt-column.nvim" : { "branch" : "master" , "commit" : "b62b4ef0774d19452d4ed18e473e824c7a756f2f" }, "virt-column.nvim" : { "branch" : "master" , "commit" : "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },77 75 "which-key.nvim" : { "branch" : "main" , "commit" : "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, "which-key.nvim" : { "branch" : "main" , "commit" : "4433e5ec9a507e5097571ed55c02ea9658fb268a" },78 76 "zen-mode.nvim" : { "branch" : "main" , "commit" : "78557d972b4bfbb7488e17b5703d25164ae64e6a" } "zen-mode.nvim" : { "branch" : "main" , "commit" : "78557d972b4bfbb7488e17b5703d25164ae64e6a" }neovim/lua/bugabinga/lazy.lua Modified +1 / −1 text lines
27 27 install = { install = {29 29 colorscheme = { 'nugu' , 'quiet' }, colorscheme = { 'nugu' , 'quiet' },31 31 checker = { checker = {neovim/lua/bugabinga/lsp/init.lua Modified +25 / −22 text lines
1 1 require 'bugabinga.lsp.lightbulb' require 'bugabinga.lsp.lightbulb'
3 + local debug = require 'std.debug' 3 4 local defer = require 'std.defer' local defer = require 'std.defer' 4 5 local map = require 'std.map' local map = require 'std.map' 5 6 local auto = require 'std.auto' local auto = require 'std.auto' 37 38 local expand_command = function ( command )local expand_command = function ( command )38 39 vim.validate { command = { command, { 'string' , 'table' } } } vim.validate { command = { command, { 'string' , 'table' } } }41 + debug .print( 'expanding command' , command )42 43 if type ( command ) == 'table' then if type ( command ) == 'table' then 43 44 command[1 ] = expand_path( command[1 ] ) command[1 ] = expand_path( command[1 ] )51 52 local match = file_type_event.match local match = file_type_event.match53 54 local matches_to_ignore = ignored.filetypes local matches_to_ignore = ignored.filetypes55 - if vim.iter( matches_to_ignore ):find( match ) then return end 55 + debug .print( 'filetypes to ignore' , ignored.filetypes)56 + if vim.iter( ignored . filetypes ):find( match ) then return end 57 58 local bufnr = file_type_event.buf local bufnr = file_type_event.buf58 59 local buftype = vim.api.nvim_get_option_value( 'buftype' , { buf = bufnr } ) local buftype = vim.api.nvim_get_option_value( 'buftype' , { buf = bufnr } )59 - if buftype ~= ' ' then return end 60 + if vim . iter ( ignored . buftypes ) : find ( buftype) then return end 61 62 local buffer_path = vim.api.nvim_buf_get_name( bufnr ) local buffer_path = vim.api.nvim_buf_get_name( bufnr )63 - vim .notify ( string .format ( 'searching lsp client for: match: %s, buffer: %s, path: %s' , match, bufnr, buffer_path ) )64 + debug .print ( string .format ( 'searching lsp client for: match: %s, buffer: %s, path: %s' , match, bufnr, buffer_path ) )65 66 local potential_client_configs = vim.iter( lsp_client_configs ) local potential_client_configs = vim.iter( lsp_client_configs )66 67 :map( function ( config ) :map( function ( config )98 99 :totable() :totable()101 + debug .print( 'POTENTIAL CLIENTS' ,102 + vim.iter( potential_client_configs ):map( function ( config ) return { name = config.name, command = config.command } end )102 105 if table .is_empty( potential_client_configs ) then if table .is_empty( potential_client_configs ) then 106 + debug .print ( 'found no lsp client for' , buffer_path )114 117 local capabilities = vim.lsp.protocol.make_client_capabilities() local capabilities = vim.lsp.protocol.make_client_capabilities()115 118 local cmp_capabilities = require 'cmp_nvim_lsp' .default_capabilities() local cmp_capabilities = require 'cmp_nvim_lsp' .default_capabilities()116 119 capabilities = table .extend( 'force' , capabilities, cmp_capabilities, config.capabilities ) capabilities = table .extend( 'force' , capabilities, cmp_capabilities, config.capabilities )120 + debug .print( 'lsp capabilities' , capabilities, config.capabilities, cmp_capabilities )122 + debug .print( 'starting command:' , config.command )121 124 local start_config = { local start_config = {122 125 cmd = config.command, cmd = config.command,136 139 before_init = config.before_init, before_init = config.before_init,138 141 on_exit = function ( code, signal, client_id ) vim.print( 'LSP CLIENT EXIT' , code, signal, client_id ) end , on_exit = function ( code, signal, client_id ) vim.print( 'LSP CLIENT EXIT' , code, signal, client_id ) end ,142 + on_attach = function ( client, bufnr ) debug .print( ' LSP CLIENT ATTACH' , client, bufnr ) end ,140 143 trace = 'off' , trace = 'off' ,141 144 flags = { allow_incremental_sync = true , debounce_text_changes = 250 , exit_timeout = 200 }, flags = { allow_incremental_sync = true , debounce_text_changes = 250 , exit_timeout = 200 },142 145 root_dir = root_dir, root_dir = root_dir,145 148 local lsp_starter = config.custom_start or vim.lsp.start local lsp_starter = config.custom_start or vim.lsp.start150 + debug .print( 'starting lsp' , start_config.name, root_dir )149 152 lsp_starter( start_config, { lsp_starter( start_config, {150 153 bufnr = bufnr, bufnr = bufnr,153 156 reuse_client = function ( existing_client, new_config ) reuse_client = function ( existing_client, new_config )158 + 'lsp resuse client' ,159 + existing_client.name,160 + existing_client.workspace_folders,163 166 local same_name = existing_client.name == new_config.name local same_name = existing_client.name == new_config.name173 176 local same_root = new_root == existing_root local same_root = new_root == existing_root175 178 local reuse = same_name and same_root local reuse = same_name and same_root179 + debug .print( 'reusing lsp client?' , reuse )177 180 return reuse return reuse184 + debug .print( ' ATTACHING LSP CLIENT' , client_id )199 202 local client = vim.lsp.get_client_by_id( args.data.client_id ) local client = vim.lsp.get_client_by_id( args.data.client_id )200 203 if not client then return end if not client then return end 205 + debug .print( client.server_capabilities )204 207 if client.server_capabilities.definitionProvider then if client.server_capabilities.definitionProvider then 205 208 old_tagfunc = vim.bo[bufnr].tagfunc old_tagfunc = vim.bo[bufnr].tagfunc326 329 local lsp_detach = function ( args )local lsp_detach = function ( args )330 + debug .print( ' DETACH LSP' , args )329 332 local bufnr = args.buf local bufnr = args.buf330 333 local client_id = args.data.client_id local client_id = args.data.client_idneovim/lua/bugabinga/plugins/gen.lua Modified +9 / −4 text lines
2 2 'David-Kunz/gen.nvim' , 'David-Kunz/gen.nvim' ,3 3 cmd = 'Gen' , cmd = 'Gen' ,5 - local gen = require 'gen' 7 + display_mode = 'split' ,10 + no_auto_close = true ,11 + debug = require 'std.debug' .get(),neovim/lua/bugabinga/plugins/noice.lua Deleted deleted file mode 100644+0 / −156 text lines
1 - local map = require 'std.map' 8 - 'MunifTanjim/nui.nvim' ,9 - 'rcarriga/nvim-notify' ,17 - auto_open = { trigger = false },21 - ['vim.lsp.util.convert_input_to_markdown_lines' ] = true ,22 - ['vim.lsp.util.stylize_markdown' ] = true ,23 - ['cmp.entry.get_documentation' ] = true ,28 - long_message_to_split = true , 32 - size = { width = 'auto' , height = 'auto' },35 - border = { style = vim.g.border_style },38 - border = { style = vim.g.border_style },41 - border = { style = vim.g.border_style },42 - position = { row = - 2 , col = 2 },46 - position = { row = 0 , col = 2 },47 - size = { width = '42' , height = 'auto' },48 - border = { style = 'solid' },51 - cmdline_popupmenu = {53 - position = { row = 1 , col = 0 },54 - size = { width = '42' , height = 'auto' },55 - border = { style = vim.g.border_style },61 - filter = { cmdline = '^:%s*!' },65 - filter = { event = 'msg_show' , kind = 'echomsg' },69 - filter = { event = 'msg_show' , kind = 'echo' },73 - filter = { event = 'msg_show' , kind = '' , find = 'written' },77 - filter = { any = { { cmdline = '^:%s*lua%s+' }, { cmdline = '^:%s*lua%s*=%s*' }, { cmdline = '^:%s*=%s*' }, } },78 - view = 'cmdline_output' ,82 - config = function ( _, opts )83 - local noice = require 'noice' 87 - description = 'Open search for notifications...' ,90 - command = function () noice.cmd 'history' end ,94 - description = 'Redirect Cmdline' ,98 - command = function () noice.redirect( vim.fn.getcmdline() ) end ,102 - description = 'Dismiss current notifications' ,103 - category = 'notify' ,105 - command = function () noice.cmd 'dismiss' end ,108 - local noice_lsp = require 'noice.lsp' 111 - description = 'Scroll up in documentation popup' ,114 - command = function ()115 - if not noice_lsp.scroll( - 4 ) then return '<C-f>' end 117 - options = { expr = true },121 - description = 'Scroll down in documentation popup' ,124 - command = function ()125 - if not noice_lsp.scroll( 4 ) then return '<C-b>' end 127 - options = { expr = true },132 - 'rcarriga/nvim-notify' ,133 - config = function ()134 - local notify = require 'notify' 135 - local fade = require 'notify.stages.fade' 'bottom_up' 137 - local shadow_fade = function ( ... )138 - local opts = fade[1 ]( ... )140 - opts.border = vim.g.border_style141 - opts.row = opts.row - 1 148 - stages = { shadow_fade, unpack ( fade, 2 ) },
neovim/lua/bugabinga/plugins/noice.lua.off Added new file mode 100644+156 / −0 text lines
1 + local map = require 'std.map'8 + 'MunifTanjim/nui.nvim',9 + 'rcarriga/nvim-notify',13 + -- view = 'cmdline', -- cmdline on cursor17 + auto_open = { trigger = false },19 + -- override markdown rendering so that **cmp** and other plugins use **Treesitter**21 + ['vim.lsp.util.convert_input_to_markdown_lines'] = true,22 + ['vim.lsp.util.stylize_markdown'] = true,23 + ['cmp.entry.get_documentation'] = true,27 + inc_rename = true, -- enables an input dialog for inc-rename.nvim28 + long_message_to_split = true, -- long messages will be sent to a split32 + size = { width = 'auto', height = 'auto' },35 + border = { style = vim.g.border_style },38 + border = { style = vim.g.border_style },41 + border = { style = vim.g.border_style },42 + position = { row = -2, col = 2 },46 + position = { row = 0, col = 2 },47 + size = { width = '42', height = 'auto' },48 + border = { style = 'solid' },51 + cmdline_popupmenu = {53 + position = { row = 1, col = 0 },54 + size = { width = '42', height = 'auto' },55 + border = { style = vim.g.border_style },61 + filter = { cmdline = '^:%s*!' },65 + filter = { event = 'msg_show', kind = 'echomsg' },69 + filter = { event = 'msg_show', kind = 'echo' },73 + filter = { event = 'msg_show', kind = '', find = 'written' },77 + filter = { any = { { cmdline = '^:%s*lua%s+' }, { cmdline = '^:%s*lua%s*=%s*' }, { cmdline = '^:%s*=%s*' }, } },78 + view = 'cmdline_output',82 + config = function ( _, opts )83 + local noice = require 'noice'87 + description = 'Open search for notifications...',90 + command = function () noice.cmd 'history' end,94 + description = 'Redirect Cmdline',97 + ---@diagnostic disable-next-line: param-type-mismatch98 + command = function () noice.redirect( vim.fn.getcmdline() ) end,102 + description = 'Dismiss current notifications',103 + category = 'notify',105 + command = function () noice.cmd 'dismiss' end,108 + local noice_lsp = require 'noice.lsp'111 + description = 'Scroll up in documentation popup',114 + command = function ()115 + if not noice_lsp.scroll( -4 ) then return '<C-f>' end117 + options = { expr = true },121 + description = 'Scroll down in documentation popup',124 + command = function ()125 + if not noice_lsp.scroll( 4 ) then return '<C-b>' end127 + options = { expr = true },132 + 'rcarriga/nvim-notify',133 + config = function ()134 + local notify = require 'notify'135 + local fade = require 'notify.stages.fade' 'bottom_up'137 + local shadow_fade = function ( ... )138 + local opts = fade[1]( ... )140 + opts.border = vim.g.border_style141 + opts.row = opts.row - 1146 + ---@diagnostic disable-next-line: missing-fields148 + stages = { shadow_fade, unpack( fade, 2 ) },neovim/lua/std/debug.lua Added new file mode 100644+26 / −0 text lines
1 + if vim.g.bugabinga_debug_mode == nil then 2 + vim.g.bugabinga_debug_mode = false 5 + local function is_debug_mode ()6 + return vim.g.bugabinga_debug_mode9 + local function print_debug ( ... )10 + if is_debug_mode() then 15 + local function toggle_debug_mode ()16 + vim.g.bugabinga_debug_mode = not vim.g.bugabinga_debug_mode17 + vim.notify( 'Toggled debug mode to ' .. tostring (is_debug_mode()) )20 + vim.api.nvim_create_user_command( 'Debug' , toggle_debug_mode ,{})24 + toggle = toggle_debug_mode,neovim/lua/std/ignored.lua Modified +1 / −0 text lines
21 21 local buftypes = {local buftypes = {22 23 'acwrite' , 'acwrite' ,24 25 'neotree' , 'neotree' ,neovim/lua/std/project.lua Modified +2 / −1 text lines
1 + local debug = require 'std.debug' 1 2 local table = require 'std.table' local table = require 'std.table' 2 3 local join = table .joinlocal join = table .join3 4 local dirname = vim.fs.dirnamelocal dirname = vim.fs.dirname102 103 local current_path = path local current_path = path103 104 while current_path ~= stop do while current_path ~= stop do 104 105 if loop_count > MAX_TRAVERSAL_COUNT then if loop_count > MAX_TRAVERSAL_COUNT then 105 - vim .notify ( ('searching for markers reached the max traversal count for path %s !' ):format( path ) )106 + debug .print ( ('searching for markers reached the max traversal count for path %s !' ):format( path ) )nushell/config.nu Modified +1 / −0 text lines
5 5 use aliases.nu *use aliases.nu *7 7 use openssl.nu *use openssl.nu *8 9 use pacnew.nuuse pacnew.nu9 10 use syncthing.nuuse syncthing.nunushell/modules/aliases.nu Modified +2 / −2 text lines
10 10 export alias archive = wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P .
export alias archive = wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P .
12 - def -env workspace [] {
12 + def -- env workspace [] {
13 13 fd --type directory --max-depth 1 . $env.WORKSPACE | fzf --ansi --preview 'mdcat {}README.md' --preview-window 'up:69%,border-bottom' | cd $in
fd --type directory --max-depth 1 . $env.WORKSPACE | fzf --ansi --preview 'mdcat {}README.md' --preview-window 'up:69%,border-bottom' | cd $in
15 15 export alias w = workspace
export alias w = workspace
17 - export def -env lk [] {
17 + export def -- env lk [] {
18 18 cd (walk --icons)
cd (walk --icons)
nushell/modules/svn.nu Modified +1 / −1 text lines
14 - export def -env svnstat [14 + export def -- env svnstat [15 15 ...path: string ...path: string nushell/modules/zoxide.nu Modified +5 / −5 text lines
24 - export def -env __zoxide_z [...rest:string] {24 + export def -- env __zoxide_z [...rest:string] {26 26 let arg0 = ($rest | append '~' ).0 let arg0 = ($rest | append '~' ).0 27 27 let path = if (($rest | length) <= 1 ) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) { let path = if (($rest | length) <= 1 ) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {30 - (zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n" )30 + (zoxide query --exclude $env.PWD -- ... $rest | str trim -r -c "\n" )36 - export def -env __zoxide_zi [...rest:string] {37 - cd $'(zoxide query -i -- $rest | str trim -r -c "\n")' 36 + export def -- env __zoxide_zi [...rest:string] {37 + cd $'(zoxide query -i -- ... $rest | str trim -r -c "\n")' +1 / −1 text lines
2 2 ~/.config/git/config~/.config/git/config4 4 git/gitconfig.linuxgit/gitconfig.linux+1 / −7 text lines
12 12 IdentityFile ~/.ssh/github.key IdentityFile ~/.ssh/github.key15 - HostName codeberg.org17 - IdentityFile ~/.ssh/codeberg.key
20 14 # catch-all pattern# catch-all pattern23 17 Compression yes Compression yes24 - AddKeysToAgent yesNo final newline new file mode 100644+77 / −0 text lines
5 + ~/.config/git/.gitconfig.include29 + ~/.config/nushell/config.nu32 + ~/.config/nushell/env.nu35 + ~/.config/nushell/modules38 + ~/.config/nushell/plugin.nu43 + topgrade/topgrade.linux.toml44 + ~/.config/topgrade.toml46 + indexa/config.linux.toml47 + ~/.config/indexa/config.toml52 + wezterm/wezterm.service53 + ~/.config/systemd/user/wezterm.service56 + ~/.config/helix/config.toml59 + ~/.config/helix/languages.toml62 + ~/.config/helix/themes64 + helix/systemd/helix-dark-mode.service65 + ~/.config/systemd/user/helix-dark-mode.service