properly disable lsp signature
https://github.com/NvChad/ui/pull/188#issuecomment-1735510051
This commit is contained in:
parent
17a8959bea
commit
d58ec3f55d
2 changed files with 8 additions and 3 deletions
|
@ -12,11 +12,15 @@ M.on_attach = function(client, bufnr)
|
|||
|
||||
utils.load_mappings("lspconfig", { buffer = bufnr })
|
||||
|
||||
if client.server_capabilities.signatureHelpProvider then
|
||||
-- signature stuff
|
||||
local conf = utils.load_config().ui.lsp
|
||||
|
||||
if conf.signature and client.server_capabilities.signatureHelpProvider then
|
||||
require("nvchad.signature").setup(client)
|
||||
end
|
||||
|
||||
if not utils.load_config().ui.lsp_semantic_tokens and client.supports_method "textDocument/semanticTokens" then
|
||||
-- semanticTokens
|
||||
if not conf.semantic_tokens and client.supports_method "textDocument/semanticTokens" then
|
||||
client.server_capabilities.semanticTokensProvider = nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue