avoid swallowing custom/init.lua errors by pcall

This commit is contained in:
siduck 2022-12-17 17:04:52 +05:30
parent bdd142dbd6
commit 8babf12991
1 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,10 @@ if fn.empty(fn.glob(install_path)) > 0 then
}) })
end end
pcall(require, "custom") local custom_init_path = vim.api.nvim_get_runtime_file("lua/custom/init.lua", false)[1]
if custom_init_path then
dofile(custom_init_path)
end
require("core.utils").load_mappings() require("core.utils").load_mappings()