mirror of
https://github.com/zoriya/lz.n.git
synced 2026-05-28 08:57:42 +00:00
draft: initial implementation
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user