diff --git a/home/.config/nvim/init.lua b/home/.config/nvim/init.lua index a51f567..e152439 100644 --- a/home/.config/nvim/init.lua +++ b/home/.config/nvim/init.lua @@ -83,7 +83,7 @@ if pcall(require, 'packer') then require('packer').startup(function(use) -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches local servers = { 'pyright', 'gopls', 'sumneko_lua', 'ansiblels' } - local capabilities = require('cmp_nvim_lsp').update_capabilities(vim.lsp.protocol.make_client_capabilities()) + local capabilities = require('cmp_nvim_lsp').default_capabilities() for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup { on_attach = on_attach,