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/plugins.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lua/user/plugins.lua') diff --git a/lua/user/plugins.lua b/lua/user/plugins.lua index 3129e1b..b4947d1 100644 --- a/lua/user/plugins.lua +++ b/lua/user/plugins.lua @@ -14,8 +14,9 @@ vim.cmd([[ augroup end ]]) -local status, packer = pcall(require, "packer") -if not status then +local packer_status, packer = pcall(require, "packer") +if not packer_status then + print("plugins.lua: loading packer failed") return end @@ -39,6 +40,7 @@ return packer.startup(function(use) use "hrsh7th/cmp-path" use "hrsh7th/cmp-cmdline" use "hrsh7th/cmp-nvim-lua" + use "L3MON4D3/LuaSnip" -- LSP, linters & formatters -- cgit v1.2.3