Skip to content

How do I enable blink.cmp lsp capabilities while using lsp-zero? #419

Answered by VonHeikemen
allengueco asked this question in Q&A
Discussion options

You must be logged in to vote

How would I do this in lsp-zero?

In this case you just do it. Since version 4 lsp-zero doesn't have any effect on the plugins you use. You don't integrate plugins with lsp-zero anymore.


To use blink.cmp with lspconfig there are a couple of options:

Option 1: add capabilities manually.

Get the capabilities from blink.cmp and put them in the setup of each language server.

local lsp_capabilities = require('blink.cmp').get_lsp_capabilities()

--- these are just example language servers
--- replace them with the ones you actually have installed
require('lspconfig').gleam.setup({
  capabilities = lsp_capabilities,
})
require('lspconfig').gopls.setup({
  capabilities = lsp_capabilities,
})

Op…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@allengueco
Comment options

@VonHeikemen
Comment options

Answer selected by allengueco
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