From 8c8c00b86178d7da08a29f43cd12a1f643710244 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Jan 2022 20:57:47 +0100 Subject: Update handler --- lua/config/lsp/handlers.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/config/lsp') diff --git a/lua/config/lsp/handlers.lua b/lua/config/lsp/handlers.lua index 50f6f59..61b7905 100644 --- a/lua/config/lsp/handlers.lua +++ b/lua/config/lsp/handlers.lua @@ -98,8 +98,9 @@ local capabilities = vim.lsp.protocol.make_client_capabilities() local status_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp") if not status_ok then - M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) + return end +M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) return M -- cgit v1.2.3-70-g09d2