From c43ccb66f5f3c8f3b907470a8cdffc0a459bbfe0 Mon Sep 17 00:00:00 2001 From: askoufis Date: Mon, 17 Oct 2022 10:13:06 +1100 Subject: [PATCH] [nvim]: Use `default_capabilities` - See https://github.com/hrsh7th/cmp-nvim-lsp/issues/38#issuecomment-1279744539 --- nvim/.config/nvim/lua/user/lsp/handlers.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nvim/.config/nvim/lua/user/lsp/handlers.lua b/nvim/.config/nvim/lua/user/lsp/handlers.lua index 4e28cfd..46f24a4 100644 --- a/nvim/.config/nvim/lua/user/lsp/handlers.lua +++ b/nvim/.config/nvim/lua/user/lsp/handlers.lua @@ -116,10 +116,8 @@ M.on_attach = function(options) end end -local capabilities = vim.lsp.protocol.make_client_capabilities() - local cmp_nvim_lsp = require('cmp_nvim_lsp') -M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) +M.capabilities = cmp_nvim_lsp.default_capabilities() return M