diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index fb8b7f8..1100093 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -95,10 +95,8 @@ end local capabilities = vim.lsp.protocol.make_client_capabilities() local status_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp") -if not status_ok then - return +if status_ok then + M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) end -M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) - return M