summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorMichiel Schuurmans <michielschuurmans@pm.me>2026-01-01 20:02:11 +0100
committerMichiel Schuurmans <michielschuurmans@pm.me>2026-01-01 20:02:11 +0100
commit9609c6b982a20d9a50aa62ed52028c7d395f6837 (patch)
treec9d73d8d6727616327c5c6be0756754b3dd0211c /lua
parent8fbf4b1ec54d0183672f8953acf783998540c662 (diff)
downloadnvim-9609c6b982a20d9a50aa62ed52028c7d395f6837.tar.xz
nvim-9609c6b982a20d9a50aa62ed52028c7d395f6837.zip
LSP: Add error diagnostic
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/lsp.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 0c60dc0..3093740 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -132,5 +132,9 @@ return {
prefix = "",
},
})
+
+ vim.cmd('autocmd CursorHold * lua vim.diagnostic.open_float({ focusable = false })')
+ vim.o.updatetime = 300
+
end
}