mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-03 19:11:10 +00:00
chore: simplify LzPluginHandler type
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
local event = require("lz.n.handler.event")
|
||||
-- local loader = require("lz.n.loader")
|
||||
|
||||
describe("event", function()
|
||||
it("can parse from string", function()
|
||||
@@ -38,4 +39,14 @@ describe("event", function()
|
||||
})
|
||||
)
|
||||
end)
|
||||
it("integration", function()
|
||||
---@type LzPlugin
|
||||
local plugin = {
|
||||
name = "foo",
|
||||
event = { { id = "BufEnter", event = "BufEnter" } },
|
||||
pattern = ".lua",
|
||||
}
|
||||
event.add(plugin)
|
||||
-- TODO
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user