chore: make lsp happier

This commit is contained in:
Micah Halter 2024-06-04 09:11:16 -04:00
parent b777fe96c3
commit 0fbcbe5eb7
No known key found for this signature in database
GPG Key ID: 4224A6EA9A8CAAA8

View File

@ -91,7 +91,7 @@ return {
function() require("astrolsp.toggles").buffer_semantic_tokens() end, function() require("astrolsp.toggles").buffer_semantic_tokens() end,
desc = "Toggle LSP semantic highlight (buffer)", desc = "Toggle LSP semantic highlight (buffer)",
cond = function(client) 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, end,
}, },
}, },