mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(ui): use actual handler values for rendering plugin handlers
This commit is contained in:
parent
b65d308662
commit
99ee284739
2 changed files with 22 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue