From 770822730e1632a856973dc055ddba30a2373e0b Mon Sep 17 00:00:00 2001 From: Justin Prather Date: Wed, 24 May 2023 00:21:26 -0600 Subject: [PATCH] better popover error messages --- lua/custom/plugins/popover-diagnostics.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 lua/custom/plugins/popover-diagnostics.lua diff --git a/lua/custom/plugins/popover-diagnostics.lua b/lua/custom/plugins/popover-diagnostics.lua new file mode 100644 index 00000000..8c9ea342 --- /dev/null +++ b/lua/custom/plugins/popover-diagnostics.lua @@ -0,0 +1,6 @@ +-- You will likely want to reduce updatetime which affects CursorHold +-- note: this setting is global and should be set only once +vim.o.updatetime = 250 +vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] + +return {}