disable semantic tokens only if the LSP supports it

This commit is contained in:
siduck 2023-06-11 19:52:47 +05:30
parent 27992efc1c
commit d73d155287
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ M.on_attach = function(client, bufnr)
require("nvchad_ui.signature").setup(client)
end
if not utils.load_config().ui.lsp_semantic_tokens then
if not utils.load_config().ui.lsp_semantic_tokens and client.supports_method "textDocument/semanticTokens" then
client.server_capabilities.semanticTokensProvider = nil
end
end