repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: neovide and noice configs

efe0d2ba1f4913701e36734b82b215632fee41e8

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

unsigned

Browse filesCompare with HEAD

Changed files (8)

neovim/lazy-lock.json

Modified
7 7 "glow.nvim": { "branch": "main", "commit": "cf2177a514859fa3c55837b46de91d93b24cf488" },
8 8 "heirline.nvim": { "branch": "master", "commit": "76136ccd93ed608e8109762f032cf1118981ebbd" },
9 9 "hlargs.nvim": { "branch": "main", "commit": "cfc9beab4e176a13311efe03e38e6b6fed5df4f6" },
10 + "inc-rename.nvim": { "branch": "main", "commit": "ed0f6f2b917cac4eb3259f907da0a481b27a3b7e" },
10 11 "indent-blankline.nvim": { "branch": "master", "commit": "b7aa0aed55887edfaece23f7b46ab22232fc8741" },
11 - "lazy.nvim": { "branch": "main", "commit": "14d76aac4bd3ff07c1fca074c210f28f766a931e" },
12 + "lazy.nvim": { "branch": "main", "commit": "3ad55ae678876516156cca2f361c51f7952a924b" },
12 13 "lush.nvim": { "branch": "main", "commit": "b10ef2bfff0647e701b691019ade3edd5e44eb50" },
13 14 "neodev.nvim": { "branch": "main", "commit": "da1562e1e3df0e994ddc52cb4ba22376a5d7f2fc" },
14 15 "neogen": { "branch": "main", "commit": "cb1f384df804c1bf729332c4f728253fe17962d4" },
15 - "noice.nvim": { "branch": "main", "commit": "40d670ef8935af3bf5df44ca27d83dcf1d75f0fd" },
16 + "noice.nvim": { "branch": "main", "commit": "bae49f5e0615cfffde271d4bec50376d770a15d3" },
16 17 "nrpattern.nvim": { "branch": "master", "commit": "f862ce687761078ef3155688151c55f69d28453e" },
17 - "nui.nvim": { "branch": "main", "commit": "7a524120a7a70761b5a65b602fd235a65cb005aa" },
18 + "nui.nvim": { "branch": "main", "commit": "9e3916e784660f55f47daa6f26053ad044db5d6a" },
18 19 "nvim-autopairs": { "branch": "master", "commit": "ae5b41ce880a6d850055e262d6dfebd362bb276e" },
19 20 "nvim-cmp": { "branch": "main", "commit": "983453e32cb35533a119725883c04436d16c0120" },
20 21 "nvim-colorizer.lua": { "branch": "master", "commit": "dde3084106a70b9a79d48f426f6d6fec6fd203f7" },
21 - "nvim-genghis": { "branch": "main", "commit": "6278a9e05f2daac5578ac043d9372f71a4ddf07c" },
22 + "nvim-genghis": { "branch": "main", "commit": "9f04102a6f591c231dfb23b58ad3b49cd0a43c03" },
22 23 "nvim-gomove": { "branch": "main", "commit": "2b44ae7ac0804f4e3959228122f7c85bef1964e3" },
23 24 "nvim-lastplace": { "branch": "main", "commit": "aeb0e0bd399288092729da89a9e51dda4ccbc9ec" },
24 25 "nvim-neoclip.lua": { "branch": "main", "commit": "4e406ae0f759262518731538f2585abb9d269bac" },
25 26 "nvim-notify": { "branch": "master", "commit": "ea9c8ce7a37f2238f934e087c255758659948e0f" },
26 27 "nvim-spectre": { "branch": "master", "commit": "be7ff1d29ddf2de59b3dc293988d110c2c00ac84" },
27 28 "nvim-surround": { "branch": "main", "commit": "211eaad7c6d01ef4ac02cba9052b3082ec232101" },
28 - "nvim-treesitter": { "branch": "master", "commit": "9fa6806b88905d52b5ca36094909630919b432cc" },
29 + "nvim-treesitter": { "branch": "master", "commit": "48df8efa25c72c8a75e8898ece4b112c71dbcc47" },
29 30 "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" },
30 31 "nvim-ts-context-commentstring": { "branch": "main", "commit": "7f625207f225eea97ef7a6abe7611e556c396d2f" },
31 32 "nvim-web-devicons": { "branch": "master", "commit": "efbfed0567ef4bfac3ce630524a0f6c8451c5534" },
33 34 "persistence.nvim": { "branch": "main", "commit": "adcf6913693a0434665d162ee45a186230496f8a" },
34 35 "playground": { "branch": "master", "commit": "2b81a018a49f8e476341dfcb228b7b808baba68b" },
35 36 "plenary.nvim": { "branch": "master", "commit": "253d34830709d690f013daf2853a9d21ad7accab" },
36 - "refactoring.nvim": { "branch": "master", "commit": "7894b10078a1a70c9b26028f4373bf209968e9bc" },
37 + "refactoring.nvim": { "branch": "master", "commit": "7d57e01a9ae012c7aedd73f518d45608a772eb1f" },
37 38 "specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
38 39 "substitute.nvim": { "branch": "main", "commit": "42d09f1e6324d98aa2e5b765b64528e0aefe72b0" },
39 40 "telescope-symbols.nvim": { "branch": "master", "commit": "f2060117d965df4a626f068a4ebbd8ee051aa076" },
42 43 "toggleterm.nvim": { "branch": "main", "commit": "b90a1381e9b5b8596f49070ee86c71db267ac868" },
43 44 "treesj": { "branch": "main", "commit": "3203aa553217921fd4dcb79245f9df07278910b2" },
44 45 "twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
45 - "virt-column.nvim": { "branch": "master", "commit": "93b40ea038f676f5a72d7d1f2336fe7b051fc0ce" },
46 + "virt-column.nvim": { "branch": "master", "commit": "1917bfb519729dea7b4f5d13aa9c810c9579b0ea" },
46 47 "zen-mode.nvim": { "branch": "main", "commit": "6e6c963d70a8e47854fa656987666bfb863f9c4e" }

neovim/lua/bugabinga/diagnostic.lua

Modified
19 19 local diagnostic = vim.diagnostic
20 +diagnostic.disable(0)
21 22 auto 'disable_diagnostic_initially'{
22 23 description = 'Disable Diagnostics initially, when attaching an LSP client to a buffer',

neovim/lua/bugabinga/lazy.lua

Modified
17 17 require('lazy.view.colors').did_setup = true
19 19 local lazy = require 'lazy'
20 +local icon = require'std.icon'
21 22 lazy.setup('bugabinga.plugins', {
22 23 defaults = {
26 27 install = {
27 28 missing = true,
29 + colorscheme = { 'nugu', 'quiet' },
29 31 checker = {
30 32 enabled = not win32,
33 + notify = false,
32 35 ui = {
33 36 size = { width = 0.69 , heigth = 0.69 },
34 37 border = 'shadow',
38 + icons = {
39 + lazy = icon.lazy,
40 + task = icon.terminal,
41 + ft = icon.file,
42 + },
44 + custom_keys = false,
45 + concurrency = 8,
36 46 performance = {
37 47 rtp = {
38 48 disabled_plugins = {

neovim/lua/bugabinga/lsp/init.lua

Modified
23 23 --TODO: find more use cases for semantic tokens
24 - --TODO: global variables
24 + --* global variables
25 + --* functions with side effects
26 + --* closures that capture something

neovim/lua/bugabinga/options/keymaps.lua

Modified
220 220 keys = '<F2><F2>',
221 221 command = '<cmd>tabedit ' .. vim.fn.stdpath'config' .. '<cr>',
224 +map.normal {
225 + name = 'Execute current line as lua in neovim',
226 + category = 'config',
227 + keys = '<cr><cr>',
228 + command = '<cmd>lua <c-r><c-l><cr>'

neovim/lua/bugabinga/options/ui.lua

Modified
75 75 vim.opt.guicursor = 'n-v-c-sm:block-Cursor,i-ci-ve:ver25-blinkon250,r-cr:hor20,o:hor50'
77 77 -- font
78 -vim.opt.guifont = 'BlexMono NF:h16:antialias=true'
78 +vim.opt.guifont = 'BlexMono_Nerd_Font:h14:#e-subpixelantialias:#h-none'
80 80 -- neovide only options
81 81 if vim.g.neovide then
82 82 vim.g.neovide_floating_blur_amount_x = 4.0
83 83 vim.g.neovide_floating_blur_amount_y = 4.0
84 - vim.g.neovide_scroll_animation_length = 0.33
85 - vim.g.neovide_fullscreen = true
84 + vim.g.neovide_scroll_animation_length = 0.42
85 + -- vim.g.neovide_fullscreen = true
86 + vim.g.neovide_remember_window_size = true
86 87 vim.g.neovide_profiler = false
87 88 vim.g.neovide_cursor_animation_length = 0.11
88 - vim.g.neovide_cursor_trail_length = 0.666
89 + vim.g.neovide_cursor_trail_length = 0.69
89 90 vim.g.neovide_cursor_vfx_mode = 'pixiedust'
91 + vim.g.neovide_cursor_unfocused_outline_width = 0.125
92 + vim.g.neovide_cursor_antialiasing = true
93 + vim.g.neovide_padding_top = 0
94 + vim.g.neovide_padding_bottom = 0
95 + vim.g.neovide_padding_right = 1
96 + vim.g.neovide_padding_left = 1
97 + vim.g.neovide_hide_mouse_when_typing = false
98 + vim.g.neovide_theme = 'auto'
99 + vim.g.neovide_refresh_rate = 60
100 + vim.g.neovide_refresh_rate_idle = 5

neovim/lua/bugabinga/plugins/inc-rename.lua

Added
new file mode 100644
1 +return {
2 + 'smjonas/inc-rename.nvim',
3 + cmd = 'IncRename',
4 + keys = { {
5 + '<F2>',
6 + function()
7 + return ':IncRename ' .. vim.fn.expand('<cword>')
8 + end,
9 + desc = 'lsp: Rename symbol under cursor with live preview',
10 + expr = true,
11 + } },
12 + opts = {},

neovim/lua/bugabinga/plugins/noice.lua

Modified
7 7 dependencies = {
8 8 'MunifTanjim/nui.nvim',
9 9 'rcarriga/nvim-notify',
10 - -- 'nvim-telescope/telescope.nvim',
12 11 opts = {
13 12 cmdline = {
21 20 ['cmp.entry.get_documentation'] = true,
24 - -- you can enable a preset for easier configuration
25 23 presets = {
26 - bottom_search = true, -- use a classic bottom cmdline for search
27 - command_palette = false, -- position the cmdline and popupmenu together
28 - long_message_to_split = true, -- long messages will be sent to a split
29 24 inc_rename = true, -- enables an input dialog for inc-rename.nvim
30 - lsp_doc_border = true, -- add a border to hover docs and signature help
32 26 views = {
33 - popupmenu = { border = { style = "shadow" } },
34 - popup = { border = { style = "shadow" } },
35 - hover = { border = { style = "shadow" } },
36 - -- does not seem to play well with other popups
37 - -- cmdline = { relative = "cursor", position = { row = 0, col = 0 }, border = { style = "shadow" } },
38 - },
39 - routes = {
27 + vsplit = {
28 + size = { width = 'auto', height = 'auto'},
29 + },
30 + popupmenu = {
31 + border = { style = "shadow" },
32 + },
33 + popup = {
34 + border = { style = "shadow" },
35 + },
36 + hover = {
37 + border = { style = "shadow" },
38 + position = { row = -2, col = 2 },
39 + },
40 + -- does not seem to play well with other popups?
41 + cmdline = {
42 + relative = "cursor",
43 + position = { row = 0, col = 0 },
44 + size = { min_width = 42, width = 'auto', height = 'auto'},
45 + border = { style = "shadow" },
46 + },
47 + cmdline_popupmenu = {
48 + relative = "cursor",
49 + position = { row = 1, col = 0 },
50 + size = { min_width = 42, width = "auto", height = 'auto' },
51 + border = { style = "shadow", padding = { 0, 1 } },
52 + win_options = { winhighlight = { Normal = "Normal", FloatBorder = "NoiceCmdlinePopupBorder" } },
53 + },
54 + },
55 + routes = {
41 - view = 'split',
42 - filter = { event = 'msg_show', min_height=20 },
57 + filter = { event = 'msg_show', kind = 'quickfix' },
58 + opts = { skip = true },
45 - filter = { event = 'msg_show', kind = ' search_count' },
61 + filter = { event = "msg_show", find = "E42" },
46 62 opts = { skip = true },
63 + },
64 + {
65 + filter = { event = "msg_show", kind = "", find = '^".*" %[.*%]', },
66 + opts = { skip = true },
67 + },
68 + {
69 + filter = { event = "notify", min_height = 15 },
70 + view = "split",
71 + },
72 + {
73 + filter = { cmdline = "^:%s*!" },
74 + --TODO: pipe external commands to terminal?
75 + --terminal view does not exist, right?
76 + view = "vsplit"
77 + },
78 + {
79 + filter = { cmdline = true, min_height = 2 },
80 + view = "cmdline_output",
81 + },
82 + {
83 + filter = { any = { { cmdline = "^:%s*lua%s+"}, { cmdline = "^:%s*lua%s*=%s*"}, { cmdline = "^:%s*=%s*"}, } },
84 + view = 'cmdline_output',
49 - },
50 - config = function(_, opts)
51 - local noice = require'noice'
52 - noice.setup(opts)
87 + },
88 + config = function(_, opts)
89 + local noice = require'noice'
90 + noice.setup(opts)
54 - map.normal {
55 - name = 'Open search for notifications...',
56 - category = 'search',
57 - keys = '<C-n><C-n>',
58 - command = function()
59 - local telescope = require'telescope'
60 - -- telescope.load_extension'noice'
61 - telescope.extensions.noice.noice()
62 - end,
63 - }
92 + map.normal {
93 + name = 'Open search for notifications...',
94 + category = 'search',
95 + keys = '<C-n><C-n>',
96 + command = function() noice.cmd'history' end,
97 + }
65 - map.command_line {
99 + map.command_line {
66 100 name = 'Redirect Cmdline',
67 101 category = 'ui',
68 102 keys = '<S-cr>',
76 110 command = function() noice.cmd 'dismiss' end,
113 + local noice_lsp = require'noice.lsp'
115 + map.normal {
116 + name = 'Scroll up in documentation popup',
117 + category = 'ui',
118 + keys = '<C-f>',
119 + command = function()
120 + if not noice_lsp.scroll(-4) then return '<C-f>' end
121 + end,
122 + options = { expr = true },
125 + map.normal {
126 + name = 'Scroll down in documentation popup',
127 + category = 'ui',
128 + keys = '<C-b>',
129 + command = function()
130 + if not noice_lsp.scroll(4) then return '<C-b>' end
131 + end,
132 + options = { expr = true },
82 138 'rcarriga/nvim-notify',
83 139 config = function()
84 140 local notify = require'notify'
85 - local fade = require'notify.stages.fade' 'bottom_up'
141 + local fade = require'notify.stages.fade'('bottom_up')
87 143 local shadow_fade = function(...)
88 144 local opts = fade[1](...)
97 153 stages = { shadow_fade, unpack(fade, 2) },
98 154 render = 'compact',
99 155 timeout = 10000,
100 - fps = 140,
156 + fps = 60,
101 157 top_down = false,