From 0fbcbe5eb7751fc8b3592cc57339d216f249f86d Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 4 Jun 2024 09:11:16 -0400 Subject: [PATCH] chore: make lsp happier --- lua/plugins/astrolsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }, },