init.lua: Print error message if custom init.lua cannot be called properly
This commit is contained in:
5
init.lua
5
init.lua
@@ -15,4 +15,7 @@ end
|
|||||||
require("core.mappings").misc()
|
require("core.mappings").misc()
|
||||||
|
|
||||||
-- try to call custom init
|
-- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user