avoid swallowing custom/init.lua errors by pcall

pull/1729/head
siduck 1 year ago
parent bdd142dbd6
commit 8babf12991

@ -41,6 +41,10 @@ if fn.empty(fn.glob(install_path)) > 0 then
})
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()

Loading…
Cancel
Save