init.lua: Print error message if custom init.lua cannot be called properly
This commit is contained in:
parent
b86ae3b170
commit
4c85f25a09
1 changed files with 4 additions and 1 deletions
5
init.lua
5
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
|
||||
|
|
Loading…
Reference in a new issue