avoid swallowing custom/init.lua errors by pcall
This commit is contained in:
parent
bdd142dbd6
commit
8babf12991
1 changed files with 5 additions and 1 deletions
6
init.lua
6
init.lua
|
@ -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…
Reference in a new issue