We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be25da commit 4b64680Copy full SHA for 4b64680
lua/lz/n/loader.lua
@@ -71,7 +71,13 @@ function M.load_startup_plugins(plugins)
71
run_before_all(plugins)
72
---@param plugin lz.n.Plugin
73
vim.iter(get_eager_plugins(plugins)):each(function(plugin)
74
- M.load(plugin)
+ xpcall(
75
+ M.load,
76
+ vim.schedule_wrap(function(err)
77
+ vim.notify("Failed to load " .. plugin.name .. ": " .. tostring(err or ""), vim.log.levels.ERROR)
78
+ end),
79
+ plugin
80
+ )
81
plugins[plugin.name] = nil
82
end)
83
end
0 commit comments