repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

bd7b82e42763660ff669f545d1b5383daa5e3db2

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (19)

+339 / −231 text lines

Diff layout

.gitignore

Modified

+1 / −0 text lines

1010.aider.chat.history.md
1212.*syncthing.*
13tresor/github.key

neovim/ftplugin/markdown.lua

Modified

+1 / −4 text lines

1-- auto save markdown files
2vim.opt_local.autowriteall = true
3
41-- spell checking ON
5vim.opt_local.spell == true
2vim.opt_local.spell = true

neovim/init.lua

Modified

+17 / −13 text lines

88-- ▀▀▀ █ █ ██ █
99-- ▀ ▀
11local ok
11-- setup debug mode
12local debug = require 'std.debug'
13debug.toggle()
15local ok, loaded
1317-- set general neovim editor settings
14ok = pcall( require, 'bugabinga.options' )
15if not ok then print 'error while loading options' end
18ok, loaded = pcall( require, 'bugabinga.options' )
19if not ok then vim.print( 'error while loading options', loaded ) end
1721-- install plugin manager and declare plugins to use
18ok = pcall( require, 'bugabinga.lazy' )
19if not ok then print 'error while loading lazy' end
22ok, loaded = pcall( require, 'bugabinga.lazy' )
23if not ok then vim.print( 'error while loading lazy', loaded ) end
2125-- configures the vim diagnostic subsystem
22ok = pcall( require, 'bugabinga.diagnostic' )
23if not ok then print 'error while loading diagnostic' end
26ok, loaded = pcall( require, 'bugabinga.diagnostic' )
27if not ok then vim.print( 'error while loading diagnostic', loaded ) end
2529-- Defines `TrimTrailingWhitespace` command
26ok = pcall( require, 'bugabinga.trim' )
27if not ok then print 'error while loading trim' end
30ok, loaded = pcall( require, 'bugabinga.trim' )
31if not ok then vim.print( 'error while loading trim', loaded ) end
2933-- visualize marks in signcolumn
30ok = pcall( require, 'bugabinga.mark' )
31if not ok then print 'error while loading mark' end
34ok, loaded = pcall( require, 'bugabinga.mark' )
35if not ok then vim.print( 'error while loading mark', loaded ) end
3337-- setup lsp clients
34ok = pcall( require, 'bugabinga.lsp' )
35if not ok then print 'error while loading lsp' end
38ok, loaded = pcall( require, 'bugabinga.lsp' )
39if not ok then vim.print( 'error while loading lsp', loaded ) end

neovim/lazy-lock.json

Modified

+12 / −14 text lines

1515 "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
1616 "dressing.nvim": { "branch": "master", "commit": "6f212262061a2120e42da0d1e87326e8a41c0478" },
1717 "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
18 "friendly-snippets": { "branch": "main", "commit": "5cc1f45c6aac699ad008fb85f6ae03236062667d" },
18 "friendly-snippets": { "branch": "main", "commit": "dbd45e9ba76d535e4cba88afa1b7aa43bb765336" },
1919 "gen.nvim": { "branch": "main", "commit": "98043162168dcc0eb5c3c31b97439ff686dc8559" },
2020 "gitsigns.nvim": { "branch": "main", "commit": "2c2463dbd82eddd7dbab881c3a62cfbfbe3c67ae" },
2121 "glow.nvim": { "branch": "main", "commit": "238070a686c1da3bccccf1079700eb4b5e19aea4" },
3232 "mini.colors": { "branch": "main", "commit": "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },
3333 "mini.starter": { "branch": "main", "commit": "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },
3434 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
35 "neodev.nvim": { "branch": "main", "commit": "365ef03dbf5b8579e6eb205b3500fc3bee17484a" },
35 "neodev.nvim": { "branch": "main", "commit": "f7f249b361e9fb245eea24cbcd9f5502e796c6ea" },
3636 "neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
37 "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
3837 "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" },
4140 "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
4241 "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
43 "nvim-genghis": { "branch": "main", "commit": "c9b60e7cc20a56b81854427e608ef46d4612926b" },
42 "nvim-genghis": { "branch": "main", "commit": "d04dbfe57b0ae908ba8e397962a1fcef98ca9fd9" },
4443 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
4544 "nvim-jdtls": { "branch": "master", "commit": "a4746791876166dc146eae573a1b49d24a6652e7" },
4645 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
4746 "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
48 "nvim-notify": { "branch": "master", "commit": "7138c86b28de61b6866c8cae60289136f0d539fa" },
4947 "nvim-spectre": { "branch": "master", "commit": "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },
5048 "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" },
5452 "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
5553 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
56 "nvim-web-devicons": { "branch": "master", "commit": "7f30f2da3c3641841ceb0e2c150281f624445e8f" },
54 "nvim-web-devicons": { "branch": "master", "commit": "14ac5887110b06b89a96881d534230dac3ed134d" },
5755 "nvim-window": { "branch": "main", "commit": "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },
58 "oil.nvim": { "branch": "master", "commit": "bf753c3e3f8736939ad5597f92329dfe7b1df4f5" },
56 "oil.nvim": { "branch": "master", "commit": "132b4ea0740c417b9d717411cab4cf187e1fd095" },
5957 "persistence.nvim": { "branch": "main", "commit": "4982499c1636eac254b72923ab826ee7827b3084" },
6058 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
6159 "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
62 "schemastore.nvim": { "branch": "main", "commit": "91b56a811d87b9e7e0600c95f80ff2d08245bf61" },
60 "schemastore.nvim": { "branch": "main", "commit": "0358c7e159e5502361bf3971d89bf5133bcc2893" },
6361 "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
6462 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
6563 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },
7674 "virt-column.nvim": { "branch": "master", "commit": "b62b4ef0774d19452d4ed18e473e824c7a756f2f" },
7775 "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
7876 "zen-mode.nvim": { "branch": "main", "commit": "78557d972b4bfbb7488e17b5703d25164ae64e6a" }
79}No final newline

neovim/lua/bugabinga/lazy.lua

Modified

+1 / −1 text lines

2525 -- version = '*',
2626 },
2727 install = {
28 missing = false,
28 missing = true,
2929 colorscheme = { 'nugu', 'quiet' },
3030 },
3131 checker = {

neovim/lua/bugabinga/lsp/init.lua

Modified

+25 / −22 text lines

11require 'bugabinga.lsp.lightbulb'
3local debug = require 'std.debug'
34local defer = require 'std.defer'
45local map = require 'std.map'
56local auto = require 'std.auto'
3738local expand_command = function ( command )
3839 vim.validate { command = { command, { 'string', 'table' } } }
40 -- vim.print( 'expanding command', command )
41 debug.print( 'expanding command', command )
4243 if type( command ) == 'table' then
4344 command[1] = expand_path( command[1] )
5152 local match = file_type_event.match
5354 local matches_to_ignore = ignored.filetypes
54 -- vim.print('filetypes to ignore', matches_to_ignore)
55 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
5758 local bufnr = file_type_event.buf
5859 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
6162 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 ) )
6566 local potential_client_configs = vim.iter( lsp_client_configs )
6667 :map( function ( config )
9798 end )
9899 :totable()
100 -- vim.print("POTENTIAL CLIENTS", vim.iter(potential_client_configs):map(function(config) return { name = config.name, command = config.command } end):totable())
101 debug.print( 'POTENTIAL CLIENTS',
102 vim.iter( potential_client_configs ):map( function ( config ) return { name = config.name, command = config.command } end )
103 :totable() )
102105 if table.is_empty( potential_client_configs ) then
103 -- vim.notify( 'found no lsp client for', buffer_path )
106 debug.print( 'found no lsp client for', buffer_path )
104107 return
105108 end
114117 local capabilities = vim.lsp.protocol.make_client_capabilities()
115118 local cmp_capabilities = require 'cmp_nvim_lsp'.default_capabilities()
116119 capabilities = table.extend( 'force', capabilities, cmp_capabilities, config.capabilities )
117 -- vim.print( 'lsp capabilities', capabilities, config.capabilities, cmp_capabilities )
120 debug.print( 'lsp capabilities', capabilities, config.capabilities, cmp_capabilities )
119 -- vim.print('starting command:', config.command)
122 debug.print( 'starting command:', config.command )
121124 local start_config = {
122125 cmd = config.command,
136139 before_init = config.before_init,
137140 -- on_init = nil, -- should i send workspace/didChangeConfiguration here?
138141 on_exit = function ( code, signal, client_id ) vim.print( 'LSP CLIENT EXIT', code, signal, client_id ) end,
139 -- on_attach = function(client, bufnr) vim.print("LSP CLIENT ATTACH", client.data.client_id, bufnr) end,
142 on_attach = function ( client, bufnr ) debug.print( 'LSP CLIENT ATTACH', client, bufnr ) end,
140143 trace = 'off',
141144 flags = { allow_incremental_sync = true, debounce_text_changes = 250, exit_timeout = 200 },
142145 root_dir = root_dir,
145148 local lsp_starter = config.custom_start or vim.lsp.start
147 -- vim.print( 'starting lsp', start_config.name, root_dir )
150 debug.print( 'starting lsp', start_config.name, root_dir )
149152 lsp_starter( start_config, {
150153 bufnr = bufnr,
151154 -- TODO: reuse if workspaces
152155 -- local supported = vim.tbl_get(client, 'server_capabilities', 'workspace', 'workspaceFolders', 'supported')
153156 reuse_client = function ( existing_client, new_config )
154 -- vim.print(
155 -- 'lsp resuse client',
156 -- existing_client.name,
157 -- existing_client.workspace_folders,
158 -- new_config.name,
159 -- new_config.root_dir
160 -- )
157 debug.print(
158 'lsp resuse client',
159 existing_client.name,
160 existing_client.workspace_folders,
161 new_config.name,
162 new_config.root_dir
163 )
162165 --TODO lsps with single file or worksopaces support do not need smame root dir. instead add_workspace_folder
163166 local same_name = existing_client.name == new_config.name
173176 local same_root = new_root == existing_root
175178 local reuse = same_name and same_root
176 -- vim.print( 'reusing lsp client?', reuse )
179 debug.print( 'reusing lsp client?', reuse )
177180 return reuse
178181 end,
179182 } )
181 -- vim.print("ATTACHING LSP CLIENT", client_id)
184 debug.print( 'ATTACHING LSP CLIENT', client_id )
182185 end
183186end
199202 local client = vim.lsp.get_client_by_id( args.data.client_id )
200203 if not client then return end
202 -- vim.print(client.server_capabilities)
205 debug.print( client.server_capabilities )
204207 if client.server_capabilities.definitionProvider then
205208 old_tagfunc = vim.bo[bufnr].tagfunc
324327end
326329local lsp_detach = function ( args )
327 -- vim.print("DETACH LSP", ...)
330 debug.print( 'DETACH LSP', args )
329332 local bufnr = args.buf
330333 local client_id = args.data.client_id

neovim/lua/bugabinga/plugins/gen.lua

Modified

+9 / −4 text lines

11return {
22 'David-Kunz/gen.nvim',
33 cmd = 'Gen',
4 config = function ()
5 local gen = require 'gen'
6 gen.model = 'kathy'
7 end
4 opts = {
5 -- model = 'codellama:7b-instruct',
6 model = 'codellama',
7 display_mode = 'split',
8 show_prompt = true,
9 show_model = true,
10 no_auto_close = true,
11 debug = require 'std.debug'.get(),
12 }
813}

neovim/lua/bugabinga/plugins/noice.lua

Deleted
deleted file mode 100644

+0 / −156 text lines

1local map = require 'std.map'
2
3return {
4 {
5 'folke/noice.nvim',
6 event = 'VeryLazy',
7 dependencies = {
8 'MunifTanjim/nui.nvim',
9 'rcarriga/nvim-notify',
10 },
11 opts = {
12 cmdline = {
13 view = 'cmdline', -- cmdline on cursor
14 },
15 lsp = {
16 signature = {
17 auto_open = { trigger = false },
18 },
19 -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
20 override = {
21 ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
22 ['vim.lsp.util.stylize_markdown'] = true,
23 ['cmp.entry.get_documentation'] = true,
24 },
25 },
26 presets = {
27 inc_rename = true, -- enables an input dialog for inc-rename.nvim
28 long_message_to_split = true, -- long messages will be sent to a split
29 },
30 views = {
31 vsplit = {
32 size = { width = 'auto', height = 'auto' },
33 },
34 popupmenu = {
35 border = { style = vim.g.border_style },
36 },
37 popup = {
38 border = { style = vim.g.border_style },
39 },
40 hover = {
41 border = { style = vim.g.border_style },
42 position = { row = -2, col = 2 },
43 },
44 cmdline = {
45 relative = 'cursor',
46 position = { row = 0, col = 2 },
47 size = { width = '42', height = 'auto' },
48 border = { style = 'solid' },
49 zindex = 9999,
50 },
51 cmdline_popupmenu = {
52 relative = 'cursor',
53 position = { row = 1, col = 0 },
54 size = { width = '42', height = 'auto' },
55 border = { style = vim.g.border_style },
56 zindex = 9999,
57 },
58 },
59 routes = {
60 {
61 filter = { cmdline = '^:%s*!' },
62 view = 'vsplit'
63 },
64 {
65 filter = { event = 'msg_show', kind = 'echomsg' },
66 view = 'mini'
67 },
68 {
69 filter = { event = 'msg_show', kind = 'echo' },
70 view = 'mini'
71 },
72 {
73 filter = { event = 'msg_show', kind = '', find = 'written' },
74 view = 'mini'
75 },
76 {
77 filter = { any = { { cmdline = '^:%s*lua%s+' }, { cmdline = '^:%s*lua%s*=%s*' }, { cmdline = '^:%s*=%s*' }, } },
78 view = 'cmdline_output',
79 }
80 },
81 },
82 config = function ( _, opts )
83 local noice = require 'noice'
84 noice.setup( opts )
86 map.normal {
87 description = 'Open search for notifications...',
88 category = 'search',
89 keys = '<C-n><C-n>',
90 command = function () noice.cmd 'history' end,
91 }
93 map.command_line {
94 description = 'Redirect Cmdline',
95 category = 'ui',
96 keys = '<S-cr>',
97 ---@diagnostic disable-next-line: param-type-mismatch
98 command = function () noice.redirect( vim.fn.getcmdline() ) end,
99 }
101 map.normal {
102 description = 'Dismiss current notifications',
103 category = 'notify',
104 keys = '<esc>',
105 command = function () noice.cmd 'dismiss' end,
106 }
108 local noice_lsp = require 'noice.lsp'
110 map.normal {
111 description = 'Scroll up in documentation popup',
112 category = 'ui',
113 keys = '<C-f>',
114 command = function ()
115 if not noice_lsp.scroll( -4 ) then return '<C-f>' end
116 end,
117 options = { expr = true },
118 }
120 map.normal {
121 description = 'Scroll down in documentation popup',
122 category = 'ui',
123 keys = '<C-b>',
124 command = function ()
125 if not noice_lsp.scroll( 4 ) then return '<C-b>' end
126 end,
127 options = { expr = true },
128 }
129 end,
130 },
131 {
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]( ... )
139 if opts then
140 opts.border = vim.g.border_style
141 opts.row = opts.row - 1
142 end
143 return opts
144 end
146 ---@diagnostic disable-next-line: missing-fields
147 notify.setup {
148 stages = { shadow_fade, unpack( fade, 2 ) },
149 render = 'compact',
150 timeout = 2500,
151 fps = 60,
152 top_down = false,
153 }
154 end,
155 },
156}

neovim/lua/bugabinga/plugins/noice.lua.off

Added
new file mode 100644

+156 / −0 text lines

1local map = require 'std.map'
2
3return {
4 {
5 'folke/noice.nvim',
6 event = 'VeryLazy',
7 dependencies = {
8 'MunifTanjim/nui.nvim',
9 'rcarriga/nvim-notify',
10 },
11 opts = {
12 -- cmdline = {
13 -- view = 'cmdline', -- cmdline on cursor
14 -- },
15 lsp = {
16 signature = {
17 auto_open = { trigger = false },
18 },
19 -- override markdown rendering so that **cmp** and other plugins use **Treesitter**
20 override = {
21 ['vim.lsp.util.convert_input_to_markdown_lines'] = true,
22 ['vim.lsp.util.stylize_markdown'] = true,
23 ['cmp.entry.get_documentation'] = true,
24 },
25 },
26 presets = {
27 inc_rename = true, -- enables an input dialog for inc-rename.nvim
28 long_message_to_split = true, -- long messages will be sent to a split
29 },
30 views = {
31 vsplit = {
32 size = { width = 'auto', height = 'auto' },
33 },
34 popupmenu = {
35 border = { style = vim.g.border_style },
36 },
37 popup = {
38 border = { style = vim.g.border_style },
39 },
40 hover = {
41 border = { style = vim.g.border_style },
42 position = { row = -2, col = 2 },
43 },
44 cmdline = {
45 relative = 'cursor',
46 position = { row = 0, col = 2 },
47 size = { width = '42', height = 'auto' },
48 border = { style = 'solid' },
49 zindex = 9999,
50 },
51 cmdline_popupmenu = {
52 relative = 'cursor',
53 position = { row = 1, col = 0 },
54 size = { width = '42', height = 'auto' },
55 border = { style = vim.g.border_style },
56 zindex = 9999,
57 },
58 },
59 routes = {
60 {
61 filter = { cmdline = '^:%s*!' },
62 view = 'vsplit'
63 },
64 {
65 filter = { event = 'msg_show', kind = 'echomsg' },
66 view = 'mini'
67 },
68 {
69 filter = { event = 'msg_show', kind = 'echo' },
70 view = 'mini'
71 },
72 {
73 filter = { event = 'msg_show', kind = '', find = 'written' },
74 view = 'mini'
75 },
76 {
77 filter = { any = { { cmdline = '^:%s*lua%s+' }, { cmdline = '^:%s*lua%s*=%s*' }, { cmdline = '^:%s*=%s*' }, } },
78 view = 'cmdline_output',
79 }
80 },
81 },
82 config = function ( _, opts )
83 local noice = require 'noice'
84 noice.setup( opts )
86 map.normal {
87 description = 'Open search for notifications...',
88 category = 'search',
89 keys = '<C-n><C-n>',
90 command = function () noice.cmd 'history' end,
91 }
93 map.command_line {
94 description = 'Redirect Cmdline',
95 category = 'ui',
96 keys = '<S-cr>',
97 ---@diagnostic disable-next-line: param-type-mismatch
98 command = function () noice.redirect( vim.fn.getcmdline() ) end,
99 }
101 map.normal {
102 description = 'Dismiss current notifications',
103 category = 'notify',
104 keys = '<esc>',
105 command = function () noice.cmd 'dismiss' end,
106 }
108 local noice_lsp = require 'noice.lsp'
110 map.normal {
111 description = 'Scroll up in documentation popup',
112 category = 'ui',
113 keys = '<C-f>',
114 command = function ()
115 if not noice_lsp.scroll( -4 ) then return '<C-f>' end
116 end,
117 options = { expr = true },
118 }
120 map.normal {
121 description = 'Scroll down in documentation popup',
122 category = 'ui',
123 keys = '<C-b>',
124 command = function ()
125 if not noice_lsp.scroll( 4 ) then return '<C-b>' end
126 end,
127 options = { expr = true },
128 }
129 end,
130 },
131 {
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]( ... )
139 if opts then
140 opts.border = vim.g.border_style
141 opts.row = opts.row - 1
142 end
143 return opts
144 end
146 ---@diagnostic disable-next-line: missing-fields
147 notify.setup {
148 stages = { shadow_fade, unpack( fade, 2 ) },
149 render = 'compact',
150 timeout = 2500,
151 fps = 60,
152 top_down = false,
153 }
154 end,
155 },
156}

neovim/lua/std/debug.lua

Added
new file mode 100644

+26 / −0 text lines

1if vim.g.bugabinga_debug_mode == nil then
2 vim.g.bugabinga_debug_mode = false
3end
4
5local function is_debug_mode()
6 return vim.g.bugabinga_debug_mode
7end
8
9local function print_debug( ... )
10 if is_debug_mode() then
11 vim.print( ... )
12 end
13end
15local function toggle_debug_mode()
16 vim.g.bugabinga_debug_mode = not vim.g.bugabinga_debug_mode
17 vim.notify( 'Toggled debug mode to ' .. tostring(is_debug_mode()) )
18end
20vim.api.nvim_create_user_command( 'Debug', toggle_debug_mode ,{})
22return {
23 print = print_debug,
24 toggle = toggle_debug_mode,
25 get = is_debug_mode,
26}

neovim/lua/std/ignored.lua

Modified

+1 / −0 text lines

2121local buftypes = {
22 '',
2223 'acwrite',
2324 'help',
2425 'neotree',

neovim/lua/std/project.lua

Modified

+2 / −1 text lines

1local debug = require 'std.debug'
12local table = require 'std.table'
23local join = table.join
34local dirname = vim.fs.dirname
102103 local current_path = path
103104 while current_path ~= stop do
104105 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 ) )
106107 break
107108 end

nushell/config.nu

Modified

+1 / −0 text lines

55use aliases.nu *
66use todo.nu
77use openssl.nu *
8use git.nu *
89use pacnew.nu
910use syncthing.nu

nushell/modules/aliases.nu

Modified

+2 / −2 text lines

99# https://gist.github.com/mullnerz/9fff80593d6b442d5c1b
1010export alias archive = wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P .
12def-env workspace [] {
12def --env workspace [] {
1313 fd --type directory --max-depth 1 . $env.WORKSPACE | fzf --ansi --preview 'mdcat {}README.md' --preview-window 'up:69%,border-bottom' | cd $in
1414}
1515export alias w = workspace
17export def-env lk [] {
17export def --env lk [] {
1818 cd (walk --icons)
1919}

nushell/modules/svn.nu

Modified

+1 / −1 text lines

1111# Aggregates the output of `svn status` and `svn info` into a table.
1212# This command operates in the current directory.
1313# Analog to gstat for svn.
14export def-env svnstat [
14export def --env svnstat [
1515 ...path: string # optional paths to get svn status from. If empty, the current directory is assumed.
1616] {
1717 # the svn info and status commands can handle multiple input paths.

nushell/modules/zoxide.nu

Modified

+5 / −5 text lines

2323# Jump to a directory using only keywords.
24export def-env __zoxide_z [...rest:string] {
24export def --env __zoxide_z [...rest:string] {
2525 # `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
2626 let arg0 = ($rest | append '~').0
2727 let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
2828 $arg0
2929 } else {
30 (zoxide query --exclude $env.PWD -- $rest | str trim -r -c "\n")
30 (zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n")
3131 }
3232 cd $path
3535# Jump to a directory using interactive search.
36export def-env __zoxide_zi [...rest:string] {
37 cd $'(zoxide query -i -- $rest | str trim -r -c "\n")'
36export def --env __zoxide_zi [...rest:string] {
37 cd $'(zoxide query -i -- ...$rest | str trim -r -c "\n")'
4040# =============================================================================
5757# source ~/.zoxide.nu
59# Note: zoxide only supports Nushell v0.63.0 and above.No final newline
59# Note: zoxide only supports Nushell v0.63.0 and above.

pop-os.symlinks

Modified

+1 / −1 text lines

1ggit/gitconfig
1git/gitconfig
22~/.config/git/config
44git/gitconfig.linux

ssh/config

Modified

+1 / −7 text lines

1111 User git
1212 IdentityFile ~/.ssh/github.key
14Host codeberg.org
15 HostName codeberg.org
16 User git
17 IdentityFile ~/.ssh/codeberg.key
2014# catch-all pattern
2115Host *
2216 User root
2317 Compression yes
24 AddKeysToAgent yesNo final newline
18 AddKeysToAgent yes

velma.symlinks

Added
new file mode 100644

+77 / −0 text lines

1git/gitconfig
2~/.config/git/config
3
4git/gitconfig.linux
5~/.config/git/.gitconfig.include
6
7subversion/config
8~/.subversion/config
9
10subversion/diff
11~/.subversion/diff
13subversion/diff3
14~/.subversion/diff3
16subversion/merge
17~/.subversion/merge
19tools/git-info
20~/.local/bin/git-info
22cargo/config.toml
23~/.cargo/config.toml
25bat/config
26~/.config/bat/config
28nushell/config.nu
29~/.config/nushell/config.nu
31nushell/env.nu
32~/.config/nushell/env.nu
34nushell/modules
35~/.config/nushell/modules
37nushell/plugin.nu
38~/.config/nushell/plugin.nu
40stackoverflow/so
41~/.config/so
43topgrade/topgrade.linux.toml
44~/.config/topgrade.toml
46indexa/config.linux.toml
47~/.config/indexa/config.toml
49wezterm
50~/.config/wezterm
52wezterm/wezterm.service
53~/.config/systemd/user/wezterm.service
55helix/config.toml
56~/.config/helix/config.toml
58helix/languages.toml
59~/.config/helix/languages.toml
61helix/themes
62~/.config/helix/themes
64helix/systemd/helix-dark-mode.service
65~/.config/systemd/user/helix-dark-mode.service
67xplr
68~/.config/xplr
70ssh/config
71~/.ssh/config
73neovim
74~/.config/nvim
76river
77~/.config/river