fix(ui): use actual handler values for rendering plugin handlers

This commit is contained in:
Folke Lemaitre 2023-10-11 14:25:10 +02:00
parent b65d308662
commit 99ee284739
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
2 changed files with 22 additions and 16 deletions

View file

@ -5,11 +5,6 @@ local Loader = require("lazy.core.loader")
local M = {}
M.extends = Event
---@param value string
function M:_event(value)
return "FileType " .. value
end
---@param plugin LazyPlugin
function M:add(plugin)
self.super.add(self, plugin)
@ -18,4 +13,12 @@ function M:add(plugin)
end
end
function M:parse(value)
return {
id = value,
event = "FileType",
pattern = value,
}
end
return M