disable semantic tokens only if the LSP supports it
This commit is contained in:
parent
27992efc1c
commit
d73d155287
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue