mirror of
https://github.com/zoriya/lz.n.git
synced 2026-06-05 03:31:17 +00:00
feat: extend lz.n with custom handlers (#17)
added require('lz.n').register_handler(lz.n.HandlerSpec)
added lz.n.Plugin.extras for extra spec items from custom handlers.
feat: extend lz.n with custom handlers
feat: extend lz.n with custom handlers
added tests
Update spec/register_handler_spec.lua
Update spec/register_handler_spec.lua
feat: extend lz.n with custom handlers
Update README.md
Update lua/lz/n/handler/init.lua
Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
This commit is contained in:
@@ -88,5 +88,10 @@ error("Cannot import a meta module")
|
||||
--- Takes the plugin name (not the module name). Defaults to |packadd| if not set.
|
||||
--- @field load? fun(name: string)
|
||||
|
||||
--- @class lz.n.Handler
|
||||
--- @field spec_field string
|
||||
--- @field add fun(plugin: lz.n.Plugin)
|
||||
--- @field del? fun(plugin: lz.n.Plugin)
|
||||
|
||||
--- @type lz.n.Config
|
||||
vim.g.lz_n = vim.g.lz_n
|
||||
|
||||
Reference in New Issue
Block a user