Extending LSP capabilities - migrating kickstart.nvim
config from nvim-cmp
to blink.cmp
#227
-
Sorry for what might be a stupid question. For those of us starting with local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = vim.tbl_deep_extend('force', capabilities, require('cmp_nvim_lsp').default_capabilities())
--- ...
require('mason-lspconfig').setup {
handlers = {
function(server_name)
local server = servers[server_name] or {}
server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {})
require('lspconfig')[server_name].setup(server)
end,
},
}
Is migration from capabilities = vim.tbl_deep_extend('force', capabilities, require('blink.cmp').get_lsp_capabilities(capabilities)) |
Beta Was this translation helpful? Give feedback.
Answered by
Saghen
Oct 31, 2024
Replies: 1 comment 2 replies
-
Yeah close, you can do |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually, you can just do
local capabilities = require('blink.cmp').get_lsp_capabilities()
since it'll merge with the default capabilities internally