Skip to content

Is it possible to ignore completion entries for specific LSP clients? #1643

Answered by fitrh
megalithic asked this question in Q&A
Discussion options

You must be logged in to vote

I think you can disable the completionProvider capabilities by adding this to that specific server on_attach

    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,

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@megalithic
Comment options

Answer selected by megalithic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants