init.lua: Print error message if custom init.lua cannot be called properly

navigator
Akianonymus 2 years ago committed by siduck
parent b86ae3b170
commit 4c85f25a09

@ -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

Loading…
Cancel
Save