fix: guard vim.lsp.diagnostics.refresh() against nil

Neovim 0.12+ restructured LSP internals; vim.lsp.diagnostics no
longer exists as a submodule. Guard the call so :SCLRescanWorkspaceTypes
doesn't crash on startup.
This commit is contained in:
2026-07-24 12:35:36 +02:00
parent a9c1b8db16
commit f219a8662f
+2
View File
@@ -338,7 +338,9 @@ function M.rescan_workspace_types()
end, 0) end, 0)
end end
if vim.lsp.diagnostics then
vim.lsp.diagnostics.refresh() vim.lsp.diagnostics.refresh()
end
end end
function M.create_commands() function M.create_commands()