diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index f759b02..7249259 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -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