From 4c85f25a09e93c2f8bfe4229af22637f280fa402 Mon Sep 17 00:00:00 2001 From: Akianonymus Date: Sat, 22 Jan 2022 12:10:07 +0530 Subject: [PATCH] init.lua: Print error message if custom init.lua cannot be called properly --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index e2405a9..3df86c6 100644 --- a/init.lua +++ b/init.lua @@ -15,4 +15,7 @@ end require("core.mappings").misc() -- try to call custom init -pcall(require, "custom") +local ok, err = pcall(require, "custom") +if not ok then + vim.notify("Error loading custom/init.lua\n\n" .. err) +end