diff --git a/lua/plugins/astrolsp.lua b/lua/plugins/astrolsp.lua index 80e0784..7bde432 100644 --- a/lua/plugins/astrolsp.lua +++ b/lua/plugins/astrolsp.lua @@ -91,7 +91,7 @@ return { function() require("astrolsp.toggles").buffer_semantic_tokens() end, desc = "Toggle LSP semantic highlight (buffer)", cond = function(client) - return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens + return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil end, }, },