mirror of https://github.com/folke/lazy.nvim.git
fix(handler): properly show errors generated by setting up handlers
This commit is contained in:
parent
6ff480bdee
commit
4d77cf2efe
|
@ -1,3 +1,4 @@
|
||||||
|
local Util = require("lazy.core.util")
|
||||||
local Config = require("lazy.core.config")
|
local Config = require("lazy.core.config")
|
||||||
|
|
||||||
---@class LazyHandler
|
---@class LazyHandler
|
||||||
|
@ -23,7 +24,9 @@ function M.setup()
|
||||||
M.handlers[type] = M.new(type)
|
M.handlers[type] = M.new(type)
|
||||||
end
|
end
|
||||||
for _, plugin in pairs(Config.plugins) do
|
for _, plugin in pairs(Config.plugins) do
|
||||||
|
Util.try(function()
|
||||||
M.enable(plugin)
|
M.enable(plugin)
|
||||||
|
end, "Failed to setup handlers for " .. plugin.name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue