draft: initial implementation

This commit is contained in:
Marc Jakobi
2024-04-11 20:46:06 +02:00
parent ac72bb5c76
commit e61adde6ce
15 changed files with 904 additions and 102 deletions
+27
View File
@@ -0,0 +1,27 @@
local event = require('lz.n.handler.event')
---@class LzFtHandler: LzHandler
---@type LzFtHandler
local M = {
active = {},
managed = {},
type = 'ft',
}
---@param value string
---@return LzEvent
function M.parse(value)
return {
id = value,
event = 'FileType',
pattern = value,
}
end
---@param lz_event LzEvent
function M.add(lz_event)
event.add(lz_event)
end
return M