chore: make lsp happier
This commit is contained in:
parent
b777fe96c3
commit
0fbcbe5eb7
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user