fix(loader): don't load handlers before installing plugins

This commit is contained in:
Folke Lemaitre 2023-10-16 15:05:16 +02:00
parent ed6c9ffe21
commit 1cfd6d1f36
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 49 additions and 25 deletions

View file

@ -64,10 +64,11 @@ end
---@param plugin LazyPlugin
function M:values(plugin)
local Plugin = require("lazy.core.plugin")
---@type table<string,any>
local values = {}
---@diagnostic disable-next-line: no-unknown
for _, value in ipairs(plugin[self.type] or {}) do
for _, value in ipairs(Plugin.values(plugin, self.type, true)) do
local event = self:parse(value)
values[event.id] = event
end