mirror of
https://github.com/zoriya/lz.n.git
synced 2026-05-30 09:50:56 +00:00
chore: fix linting
This commit is contained in:
+11
-12
@@ -1,24 +1,23 @@
|
||||
local event = require('lz.n.handler.event')
|
||||
|
||||
---@class LzFtHandler: LzHandler
|
||||
---@field parse fun(spec: LzEventSpec): LzEvent
|
||||
|
||||
---@type LzFtHandler
|
||||
local M = {
|
||||
active = {},
|
||||
managed = {},
|
||||
pending = {},
|
||||
type = 'ft',
|
||||
---@param value string
|
||||
---@return LzEvent
|
||||
parse = function(value)
|
||||
return {
|
||||
id = value,
|
||||
event = 'FileType',
|
||||
pattern = value,
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
---@param value string
|
||||
---@return LzEvent
|
||||
function M.parse(value)
|
||||
return {
|
||||
id = value,
|
||||
event = 'FileType',
|
||||
pattern = value,
|
||||
}
|
||||
end
|
||||
|
||||
---@param plugin LzPlugin
|
||||
function M.add(plugin)
|
||||
event.add(plugin)
|
||||
|
||||
Reference in New Issue
Block a user