Is it possible to ignore completion entries for specific LSP clients? #1643
-
This is a bit edge-casey, but, I'm running 2 different lsp clients for the same language, to get certain benefits from both. I'd like to be able to ignore completion entries for 1 of those clients, but not the other. I thought I could use the Any suggestions of the proper way to ignore an item to form (or just ignore a specific lsp client source completely)? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
anyone facing similar needs? would love to get this working. |
Beta Was this translation helpful? Give feedback.
-
I think you can disable the on_attach = function(client, bufnr)
-- ...
-- if you only use one on_attach function for every servers,
-- you can also add something like `if client.name == '<NAME>' then`
if client.server_capabilities.completionProvider then
client.server_capabilities.completionProvider = false
end
end, |
Beta Was this translation helpful? Give feedback.
I think you can disable the
completionProvider
capabilities by adding this to that specific serveron_attach