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:
Birdee
2024-06-24 09:07:08 -07:00
committed by GitHub
parent d530764a4e
commit d61186fc23
11 changed files with 126 additions and 26 deletions
+5
View File
@@ -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