From f9cb5099df7f2eb2cceb715515b2d7a98d6cbc9a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Thu, 13 Jan 2022 20:13:34 +0100 Subject: Fix error with lsp handler --- lua/config/lsp/handlers.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua/config/lsp') diff --git a/lua/config/lsp/handlers.lua b/lua/config/lsp/handlers.lua index 3dcf0dc..50f6f59 100644 --- a/lua/config/lsp/handlers.lua +++ b/lua/config/lsp/handlers.lua @@ -98,9 +98,8 @@ 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 + M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) end -M.capabilities = cmp_nvim_lsp.update_capabilities(capabilities) return M -- cgit v1.2.3-70-g09d2