aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-11-01 15:52:56 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-11-12 11:58:21 +0100
commit410f459e0f1d5581e9444f77d7199b0c82e137c4 (patch)
tree10cff0f6338cfd823d09fb04c03ed206a9ddff06
parentc48515a50be4c95d8f646c8a293dfe066039ed8b (diff)
downloadvis-lspc-410f459e0f1d5581e9444f77d7199b0c82e137c4.tar.gz
vis-lspc-410f459e0f1d5581e9444f77d7199b0c82e137c4.zip
remove usable LS check from highlight_diagnostics
Highlighting diagnostics does not need a LS. However, there should only be diagnostics if a LS is available. But, this is already checked when looking at the open file.
-rw-r--r--init.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 5cb0d0b..a47ad22 100644
--- a/init.lua
+++ b/init.lua
@@ -1764,11 +1764,6 @@ local function highlight_event()
return
end
- local ls = lspc_get_usable_ls(win)
- if not ls then
- return
- end
-
local open_file = lspc.open_files[win.file.path]
if open_file and open_file.diagnostics and lspc.highlight_diagnostics then
lspc_highlight_diagnostics(win, open_file.diagnostics)