From 559acbd135e2a209fb0a4773046a2e8a684c6f81 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Fri, 23 Jul 2021 18:17:31 +0530 Subject: [PATCH] rm unneeded error landing nvim by default shows stackrace path so I dont think we should be having this. --- init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 13b4fe9..0c4969e 100644 --- a/init.lua +++ b/init.lua @@ -13,11 +13,7 @@ async = vim.schedule_wrap( function() for i = 1, #chad_modules, 1 do - local ok, res = xpcall(require, debug.traceback, chad_modules[i]) - if not (ok) then - print("Error loading module : " .. chad_modules[i]) - print(res) -- print stack traceback of the error - end + pcall(require, chad_modules[i]) end async:close() end