repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: disable noice

203c725b39177b2a4e63dc434801e28331885880

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (15)

.gitignore

Modified
10 10 .aider.chat.history.md
12 12 .*syncthing.*
13 +tresor/github.key

neovim/init.lua

Modified
8 8 -- ▀▀▀ █ █ ██ █
9 9 -- ▀ ▀
11 -local ok
12 -local loaded
14 11 -- setup debug mode
15 12 local debug = require 'std.debug'
16 --- debug.toggle()
13 +debug.toggle()
15 +local ok, loaded
18 17 -- set general neovim editor settings
19 18 ok, loaded = pcall( require, 'bugabinga.options' )
20 -if not ok then vim.print ( 'error while loading options', loaded ) end
19 +if not ok then vim.print( 'error while loading options', loaded ) end
22 21 -- install plugin manager and declare plugins to use
23 22 ok, loaded = pcall( require, 'bugabinga.lazy' )
24 -if not ok then vim.print ( 'error while loading lazy' ,loaded) end
23 +if not ok then vim.print( 'error while loading lazy', loaded ) end
26 25 -- configures the vim diagnostic subsystem
27 26 ok, loaded = pcall( require, 'bugabinga.diagnostic' )
28 -if not ok then vim.print ( 'error while loading diagnostic' ,loaded) end
27 +if not ok then vim.print( 'error while loading diagnostic', loaded ) end
30 29 -- Defines `TrimTrailingWhitespace` command
31 30 ok, loaded = pcall( require, 'bugabinga.trim' )
32 -if not ok then vim.print ( 'error while loading trim' ,loaded) end
31 +if not ok then vim.print( 'error while loading trim', loaded ) end
34 33 -- visualize marks in signcolumn
35 34 ok, loaded = pcall( require, 'bugabinga.mark' )
36 -if not ok then vim.print ( 'error while loading mark' ,loaded) end
35 +if not ok then vim.print( 'error while loading mark', loaded ) end
38 37 -- setup lsp clients
39 38 ok, loaded = pcall( require, 'bugabinga.lsp' )
40 -if not ok then vim.print ( 'error while loading lsp' ,loaded) end
39 +if not ok then vim.print( 'error while loading lsp', loaded ) end

neovim/lazy-lock.json

Modified
32 32 "mini.colors": { "branch": "main", "commit": "f64963332f7fcb45c8dfcc243f682a9a0fb9935d" },
33 33 "mini.starter": { "branch": "main", "commit": "ce222a5b6de50a9963c1eb62aa16ec6d5efca7ee" },
34 34 "mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
35 - "neodev.nvim": { "branch": "main", "commit": "fdf6b3c58caf3ed1bfe40822d5dac340fc18c33b" },
35 + "neodev.nvim": { "branch": "main", "commit": "f7f249b361e9fb245eea24cbcd9f5502e796c6ea" },
36 36 "neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
37 - "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" },
38 37 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
39 38 "nui.nvim": { "branch": "main", "commit": "c3c7fd618dcb5a89e443a2e1033e7d11fdb0596b" },
40 - "nvim-autopairs": { "branch": "master", "commit": "90f824d37c0cb079d2764927e73af77faa9ba0ef" },
39 + "nvim-autopairs": { "branch": "master", "commit": "1efb4f2e754d282762a1413ea0528d9a45143cdd" },
41 40 "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
42 41 "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
43 42 "nvim-genghis": { "branch": "main", "commit": "d04dbfe57b0ae908ba8e397962a1fcef98ca9fd9" },
45 44 "nvim-jdtls": { "branch": "master", "commit": "a4746791876166dc146eae573a1b49d24a6652e7" },
46 45 "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" },
47 46 "nvim-neoclip.lua": { "branch": "main", "commit": "798cd0592a81c185465db3a091a0ff8a21af60fd" },
48 - "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" },
49 47 "nvim-spectre": { "branch": "master", "commit": "e7db8ebca7fd0a604027ebf85acee52f6642c91c" },
50 48 "nvim-surround": { "branch": "main", "commit": "8f2af76134f37058dc4c27a24bc5f86c9cae76dc" },
51 - "nvim-tree.lua": { "branch": "master", "commit": "030defdb6522f5f716d8201d20ca1a2baa57ca66" },
52 - "nvim-treesitter": { "branch": "master", "commit": "d1484a1507b36ca6af7f7925c627846010faeabe" },
49 + "nvim-tree.lua": { "branch": "master", "commit": "d52fdeb0a300ac42b9cfa65ae0600a299f8e8677" },
50 + "nvim-treesitter": { "branch": "master", "commit": "c06292fdc641d71d185d2f1a507ad8232b6cf528" },
53 51 "nvim-treesitter-textobjects": { "branch": "master", "commit": "7f00d94543f1fd37cab2afa2e9a6cd54e1c6b9ef" },
54 52 "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" },
55 53 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" },
56 54 "nvim-web-devicons": { "branch": "master", "commit": "14ac5887110b06b89a96881d534230dac3ed134d" },
57 55 "nvim-window": { "branch": "main", "commit": "e7f5d60eeec8ff37af7be4c9a99f65edf67fc574" },
58 - "oil.nvim": { "branch": "master", "commit": "6953c2c17d8ae7454b28c44c8767eebede312e6f" },
56 + "oil.nvim": { "branch": "master", "commit": "132b4ea0740c417b9d717411cab4cf187e1fd095" },
59 57 "persistence.nvim": { "branch": "main", "commit": "4982499c1636eac254b72923ab826ee7827b3084" },
60 58 "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" },
61 59 "plenary.nvim": { "branch": "master", "commit": "4f71c0c4a196ceb656c824a70792f3df3ce6bb6d" },
62 - "schemastore.nvim": { "branch": "main", "commit": "adaca44ad56bd74ae0e4e500320a7dd6f216650a" },
60 + "schemastore.nvim": { "branch": "main", "commit": "0358c7e159e5502361bf3971d89bf5133bcc2893" },
63 61 "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
64 62 "speedtyper.nvim": { "branch": "main", "commit": "2d158eed4c753995b0501a3a7a72464fbb213e3d" },
65 63 "ssr.nvim": { "branch": "main", "commit": "bb323ba621ac647b4ac5638b47666e3ef3c279e1" },

neovim/lua/bugabinga/lsp/init.lua

Modified
52 52 local match = file_type_event.match
54 54 local matches_to_ignore = ignored.filetypes
55 - debug.print( 'filetypes to ignore', matches_to_ignore )
56 - 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
58 58 local bufnr = file_type_event.buf
59 59 local buftype = vim.api.nvim_get_option_value( 'buftype', { buf = bufnr } )
60 - if buftype ~= '' then return end
60 + if vim.iter(ignored.buftypes):find(buftype) then return end
62 62 local buffer_path = vim.api.nvim_buf_get_name( bufnr )

neovim/lua/bugabinga/plugins/gen.lua

Modified
1 1 return {
2 2 'David-Kunz/gen.nvim',
3 3 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 + }

neovim/lua/bugabinga/plugins/noice.lua

Deleted
deleted file mode 100644
1 -local map = require 'std.map'
3 -return {
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 - },

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

Added
new file mode 100644
1 +local map = require 'std.map'
3 +return {
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,
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 },
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 },
129 + end,
130 + },
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,
154 + end,
155 + },

neovim/lua/std/ignored.lua

Modified
21 21 local buftypes = {
22 + '',
22 23 'acwrite',
23 24 'help',
24 25 'neotree',

nushell/config.nu

Modified
5 5 use aliases.nu *
6 6 use todo.nu
7 7 use openssl.nu *
8 +use git.nu *
8 9 use pacnew.nu
9 10 use syncthing.nu

nushell/modules/aliases.nu

Modified
9 9 # https://gist.github.com/mullnerz/9fff80593d6b442d5c1b
10 10 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
15 15 export alias w = workspace
17 -export def-env lk [] {
17 +export def --env lk [] {
18 18 cd (walk --icons)

nushell/modules/svn.nu

Modified
11 11 # Aggregates the output of `svn status` and `svn info` into a table.
12 12 # This command operates in the current directory.
13 13 # Analog to gstat for svn.
14 -export def-env svnstat [
14 +export def --env svnstat [
15 15 ...path: string # optional paths to get svn status from. If empty, the current directory is assumed.
17 17 # the svn info and status commands can handle multiple input paths.

nushell/modules/zoxide.nu

Modified
23 23 # Jump to a directory using only keywords.
24 -export def-env __zoxide_z [...rest:string] {
24 +export def --env __zoxide_z [...rest:string] {
25 25 # `z -` does not work yet, see https://github.com/nushell/nushell/issues/4769
26 26 let arg0 = ($rest | append '~').0
27 27 let path = if (($rest | length) <= 1) and ($arg0 == '-' or ($arg0 | path expand | path type) == dir) {
28 28 $arg0
29 29 } 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")
32 32 cd $path
35 35 # Jump to a directory using interactive search.
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")'
40 40 # =============================================================================
57 57 # source ~/.zoxide.nu
59 -# Note: zoxide only supports Nushell v0.63.0 and above.
59 +# Note: zoxide only supports Nushell v0.63.0 and above.

pop-os.symlinks

Modified
1 -ggit/gitconfig
1 +git/gitconfig
2 2 ~/.config/git/config
4 4 git/gitconfig.linux

ssh/config

Modified
11 11 User git
12 12 IdentityFile ~/.ssh/github.key
14 -Host codeberg.org
15 - HostName codeberg.org
16 - User git
17 - IdentityFile ~/.ssh/codeberg.key
20 14 # catch-all pattern
21 15 Host *
22 16 User root
23 17 Compression yes
24 - AddKeysToAgent yes
18 + AddKeysToAgent yes

velma.symlinks

Modified
1 -ggit/gitconfig
1 +git/gitconfig
2 2 ~/.config/git/config
4 4 git/gitconfig.linux