summaryrefslogtreecommitdiff
path: root/lua/config/lsp/handlers.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 20:57:47 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-13 20:57:47 +0100
commit8c8c00b86178d7da08a29f43cd12a1f643710244 (patch)
tree8b4b9f4ca9f6e77511e580356a7eabfe75633290 /lua/config/lsp/handlers.lua
parentfded9cdade5de941fa5f21b6086c7619be26b699 (diff)
Update handler
Diffstat (limited to 'lua/config/lsp/handlers.lua')
-rw-r--r--lua/config/lsp/handlers.lua3
1 files changed, 2 insertions, 1 deletions
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