show diagnostics on hover
This commit is contained in:
parent
d6806288c5
commit
f9d2f77b13
@ -123,6 +123,10 @@ cmp.setup {
|
|||||||
}
|
}
|
||||||
vim.keymap.set('n', "gd", vim.lsp.buf.definition, { silent = true })
|
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
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user