show diagnostics on hover

This commit is contained in:
Akulij 2025-04-28 11:50:19 +03:00
parent d6806288c5
commit f9d2f77b13

View File

@ -123,6 +123,10 @@ cmp.setup {
}
vim.keymap.set('n', "gd", vim.lsp.buf.definition, { silent = true })
-- Show line diagnostics automatically in hover window
vim.o.updatetime = 250
vim.cmd [[autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
end