repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: fix deprecations

42433ede7ed96aebbf3532a977d891244e745836

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

+21 / −15 text lines · 1 metadata-only

Diff layout

neovim/.luarc.json

Added
new file mode 100644

+4 / −0 text lines

1{
2 "diagnostics.globals": ["vim"],
3 "workspace.library": ["${3rd}/busted/library", "${3rd}/luassert/library"]
4}

neovim/lua/bugabinga/lsp/attach.lua

Modified

+1 / −7 text lines

112112 keys = 'grl',
113113 command = vim.lsp.codelens.run,
114114 }
115 auto( 'lsp_codelens_refresh_' .. bufnr ) {
116 events = { 'BufEnter', 'CursorHold', 'InsertLeave' },
117 buffer = bufnr,
118 command = function()
119 vim.lsp.codelens.refresh { bufnr = bufnr }
120 end,
121 }
115 vim.lsp.codelens.enable(true, { bufnr = bufnr })
122116 end
124118 if client:supports_method 'textDocument/documentHighlight' then

neovim/lua/bugabinga/options/neovide.lua

Modified

+13 / −3 text lines

11if vim.g.neovide then
2 vim.opt.pumblend = 15
3 vim.opt.winblend = 15
24 vim.g.neovide_profiler = false
5 vim.g.neovide_opacity = 0.84
6 vim.g.neovide_floating_blur_amount_x = 4.0
7 vim.g.neovide_floating_blur_amount_y = 4.0
8 vim.g.neovide_floating_corner_radius = 0.42
9 vim.g.neovide_position_animation_length = 0.12
10 vim.g.neovide_scroll_animation_length = 0.2
11 vim.g.neovide_cursor_animation_length = 0.1
12 vim.g.neovide_cursor_trail_size = 0.8
13 vim.g.neovide_cursor_vfx_mode = 'railgun'
314 -- interpret all touch events as scroll events
415 vim.g.neovide_touch_deadzone = 0.0
516 -- after this timeout, start a visual selection
718 vim.g.neovide_touch_drag_timeout = 0.69
819 vim.g.neovide_padding_top = 8
920 vim.g.neovide_padding_left = 8
10 vim.g.neovide_padding_bottom = 0
11 vim.g.neovide_padding_right = 0
21 vim.g.neovide_padding_bottom = 8
22 vim.g.neovide_padding_right = 8
1223 vim.g.neovide_hide_mouse_when_typing = true
1324 vim.g.neovide_refresh_rate_idle = 5
1425 vim.g.neovide_theme = 'auto'
15 vim.g.experimental_layer_grouping = true
1626end

neovim/lua/std/project.lua

Modified

+3 / −5 text lines

9696---directory is used.
9797---@return string? # Directory, that contains the `markers` and lies on the path from `path` to `stop`.
9898local function find_root(path, markers, stop)
99 validate {
100 path = { path, 'string', true, },
101 markers = { markers, 'table', },
102 stop = { stop, 'string', true, },
103 }
99 validate('markers', markers, 'table')
100 validate('path', path, 'string', true)
101 validate('stop', stop, 'string', true)
105103 path = path or vim.api.nvim_buf_get_name(0)
106104 path = normalize(expand(path))

pi-ext

Modified

Link change (old → new): 5dba1a388aec507b26c24952069224a908aa7d11 → e7231f68e7305d136e6785e9c84df58e077976ff.