chore: simplify LzPluginHandler type

This commit is contained in:
Marc Jakobi
2024-06-05 17:34:03 +02:00
parent 1e36358596
commit 9b54ecb500
3 changed files with 18 additions and 6 deletions
+2 -1
View File
@@ -151,8 +151,9 @@ end
---@param plugin LzPlugin
function M.add(plugin)
-- TODO add plugin to M.pending
for _, event in pairs(plugin.event or {}) do
M.pending[event.id] = M.pending[event.id] or {}
M.pending[event.id][plugin.name] = plugin.name
add_event(event)
end
end