From 410f459e0f1d5581e9444f77d7199b0c82e137c4 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 1 Nov 2025 15:52:56 +0100 Subject: 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. --- init.lua | 5 ----- 1 file changed, 5 deletions(-) (limited to 'init.lua') 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) -- cgit v1.2.3