nvim/plug/lspconfig: use cmp.defaults_capabilities/0
cmp.update_capabilities are deprecated as of hrsh7th/cmp-nvim-lsp@389f06d, so use replacement instead.
This commit is contained in:
parent
dc8168aeed
commit
5798da7368
|
@ -10,9 +10,7 @@ return function()
|
|||
end
|
||||
|
||||
-- Update LSP capabilities we send to servers to include the features supported by nvim-cmp
|
||||
defaults.capabilities = cmp.update_capabilities(lspconfig.util.default_config.capabilities)
|
||||
-- Dependent on a snippet manager in nvim-cmp (currently using vsnip)
|
||||
defaults.capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
defaults.capabilities = cmp.default_capabilities()
|
||||
|
||||
-- Ideally, this would be registered on some Psoxizsh.Plug.Post autocmd
|
||||
-- but I don't feel like refactoring psoxizsh.plugin now.
|
||||
|
|
Loading…
Reference in New Issue