aboutsummaryrefslogtreecommitdiff
path: root/lua/user/cmp.lua
diff options
context:
space:
mode:
authorAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 01:17:08 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-02-25 01:17:08 +0100
commit336b2de4b36ad9eafdef6c5e882bc08a66d7c959 (patch)
tree838df5f79e13b8b598f81113cf83d9c98f9a405f /lua/user/cmp.lua
parentbbe5d2d967a1a77328c71e11823bb57d56ee044c (diff)
pcall now prints error, fixed cmp luasnip
Diffstat (limited to 'lua/user/cmp.lua')
-rw-r--r--lua/user/cmp.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua
index 39bde60..bb475a3 100644
--- a/lua/user/cmp.lua
+++ b/lua/user/cmp.lua
@@ -1,10 +1,12 @@
-local cmp_status_ok, cmp = pcall(require, "cmp")
-if not cmp_status_ok then
+local cmp_status, cmp = pcall(require, "cmp")
+if not cmp_status then
+ print("cmp.lua: loading cmp failed")
return
end
-local snip_status_ok, luasnip = pcall(require, "luasnip")
-if not snip_status_ok then
+local luasnip_status, luasnip = pcall(require, "luasnip")
+if not luasnip_status then
+ print("cmp.lua: loading luasnip failed")
return
end
@@ -42,7 +44,6 @@ local kind_icons = {
Operator = "",
TypeParameter = "",
}
--- find more here: https://www.nerdfonts.com/cheat-sheet
cmp.setup {
snippet = {