Something went wrong. Try again.
my nix dotfiles
Something went wrong. Try again.
12345678910111213141516171819202122232425262728vim.diagnostic.config({ virtual_text = false, signs = true, underline = true, update_in_insert = true, severity_sort = false,})
-- hover for diagnosticvim.opt.updatetime = 250vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(bor, {focus=false, border='rounded'})]]
vim.lsp.config('*', { handlers = { ['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'rounded', }), },})
local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview---@diagnostic disable-next-line: duplicate-set-fieldfunction vim.lsp.util.open_floating_preview(contents, syntax, opts, ...) opts = opts or {} opts.border = "rounded" return orig_util_open_floating_preview(contents, syntax, opts, ...)end