16 Commits

Author SHA1 Message Date
Marc Jakobi a7b445fd34 feat: lazy field for lazy-loading via trigger_load only (#105) 2024-10-21 17:28:23 +02:00
Marc Jakobi 33796eae1d feat: move handler field parsing logic to handlers (#92) 2024-09-16 22:47:28 +02:00
Birdee ed9b8a4a1c feat(api): handler.post_load for setting up custom events (#82)
* feat(handler post_load): for setting up custom events
added a post_load callback for handlers to use to set
their own events such as DeferredUIEnter

In addition, made event handler use this feature to create DeferredUIEnter
further decoupling the handlers from the core of lz.n

* Update README.md

Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>

* Update lua/lz/n/meta.lua

Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>

---------

Co-authored-by: Marc Jakobi <mrcjkb89@outlook.com>
2024-08-30 08:13:48 +07:00
Marc Jakobi c8c06af2ac feat: vimdoc (#65) 2024-08-26 17:44:38 +00:00
Marc Jakobi 701d6acc03 feat!: simplify state management + idempotent trigger_load (#56)
* feat!: simplify state management + idempotent `trigger_load(name)`

* feat!: `lz.n.Handler.del` now takes a plugin name (`string`)
2024-08-20 11:53:37 +02:00
Birdee d61186fc23 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>
2024-06-24 18:07:08 +02:00
Marc Jakobi b9c03c1ed2 feat: register individual plugin specs for lazy loading
by passing a single spec to `load()`
2024-06-16 15:15:50 +02:00
Marc Jakobi d4a2eebb84 feat: handler for lazy-loading colorschemes 2024-06-10 15:43:25 +02:00
Marc Jakobi ca4e6ff54f chore: replace name with [1] 2024-06-10 13:48:15 +02:00
Marc Jakobi 19beffc4d9 feat: add before hook 2024-06-10 12:37:33 +02:00
Marc Jakobi 3deb6bb594 tests: add basic API spec 2024-06-10 12:04:21 +02:00
Marc Jakobi 674017835f refactor: config -> after 2024-06-10 11:13:55 +02:00
Marc Jakobi b52a46c624 feat: add PluginSpec.config 2024-06-10 11:10:36 +02:00
Marc Jakobi f89778db34 docs: add some luadoc + cleanup 2024-06-10 10:35:31 +02:00
Marc Jakobi 354fdd698b docs: formatting 2024-06-10 10:17:05 +02:00
Marc Jakobi e2417bd758 chore: cleanup some todos, implement loading hook API 2024-06-10 10:09:38 +02:00