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
+11
View File
@@ -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)