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:
Paul Stemmet 2022-10-29 18:27:19 +00:00
parent dc8168aeed
commit 5798da7368
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
1 changed files with 1 additions and 3 deletions

View File

@ -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.