From 336b2de4b36ad9eafdef6c5e882bc08a66d7c959 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Sat, 25 Feb 2023 01:17:08 +0100 Subject: pcall now prints error, fixed cmp luasnip --- lua/user/lsp/ccls.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua/user/lsp/ccls.lua') diff --git a/lua/user/lsp/ccls.lua b/lua/user/lsp/ccls.lua index b3393da..ef3c179 100644 --- a/lua/user/lsp/ccls.lua +++ b/lua/user/lsp/ccls.lua @@ -1,5 +1,6 @@ -local status, lspconfig = pcall(require, "lspconfig") -if not status then +local lspconfig_status, lspconfig = pcall(require, "lspconfig") +if not lspconfig_status then + print("lsp/ccls.lua: loading lspconfig failed") return end -- cgit v1.2.3