zoriya
bfe810e15a
feat: support explicit lazy=false
2025-01-01 21:59:11 +01:00
Marc Jakobi
6325a21905
fix: setting lazy = false marks plugin as eager ( #108 )
2024-10-24 18:22:37 +00:00
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
Marc Jakobi
bc619dd3b1
fix: error when applying colorscheme in after hook on event trigger ( #86 )
2024-08-31 13:06:25 +00: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
a1d34cdf78
fix(vimdoc): missing lz.n.State field
2024-08-28 21:36:04 +02:00
Marc Jakobi
ef2194d277
fix(vimdoc): duplicate tag
2024-08-28 20:14:15 +02:00
Marc Jakobi
0d4eae4271
chore: fix luaCATS annotations
2024-08-28 17:36:38 +02:00
Marc Jakobi
180eb920f0
feat: support a simplified handler.state API without keys
2024-08-28 17:18:00 +02:00
Marc Jakobi
38befb0fc8
refactor: reduce redundant function declarations
2024-08-28 15:21:07 +02:00
Marc Jakobi
efe92fa725
feat: handler.state module
2024-08-28 19:49:31 +07:00
Marc Jakobi
163b2471e2
fix: handler resilience against trigger_load calls in hooks
2024-08-28 19:49:31 +07:00
Marc Jakobi
dac14fb5db
fix: lookup now returns deep copy ( #74 )
2024-08-28 07:48:58 +00:00
Marc Jakobi
33a8b1945c
feat(api): ability to filter plugin searches by handlers ( #68 )
2024-08-22 23:07:35 +00:00
Marc Jakobi
ed49bbeb3d
docs(luacats): allow table of plugins in load
2024-08-22 00:31:29 +02:00
Marc Jakobi
e3c646b281
refactor(handlers): don't expose state ( #64 )
2024-08-20 21:50:17 +02:00
Marc Jakobi
e1a186da5c
chore: warn on lookup missing
2024-08-20 13:46:17 +02: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
Marc Jakobi
7ba8692a5f
fix: colorscheme handler broken for start plugins ( #41 )
2024-08-09 10:32:44 +02:00
Marc Jakobi
8886765a2f
fix(keys): don't ignore modes that aren't 'n' ( #28 )
...
* fix(keys): don't ignore modes that aren't `'n'`
Fixes #26
* chore(deps): update flake.lock
* ci: remove docgen workflow
2024-06-29 15:37:28 +02:00
Marc Jakobi
35f78241ef
reactor: use vim.iter
2024-06-24 18:55:17 +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
cf11ec2b16
fix(event): broken DeferredUIEnter event
2024-06-19 18:05:11 +02:00
Marc Jakobi
d50e0e6d8d
chore: tweak comment
2024-06-10 16:50:16 +02:00
Marc Jakobi
d4a2eebb84
feat: handler for lazy-loading colorschemes
2024-06-10 15:43:25 +02:00
Marc Jakobi
e2417bd758
chore: cleanup some todos, implement loading hook API
2024-06-10 10:09:38 +02:00
Marc Jakobi
5b51bff25e
chore: types: Lz -> lz.n prefix
2024-06-07 13:44:39 +02:00
Marc Jakobi
03d08056c1
tests: add ft_spec
2024-06-07 13:32:35 +02:00
Marc Jakobi
7270d62b3c
tests: add cmd_spec
2024-06-07 13:06:23 +02:00
Marc Jakobi
0303315057
tests(handlers/keys): ensure plugins are only loaded once
2024-06-06 16:57:52 +02:00
Marc Jakobi
23986eb7d7
tests(handlers/keys): add integration test draft
2024-06-06 13:33:23 +02:00
Marc Jakobi
c17ba22545
tests(event): ensure plugins are loaded only once
2024-06-05 18:08:26 +02:00
Marc Jakobi
9b54ecb500
chore: simplify LzPluginHandler type
2024-06-05 17:34:20 +02:00
Marc Jakobi
3bedc2e8f6
chore: add cast to satisfy type checker
2024-06-05 16:52:37 +02:00
Marc Jakobi
9acc3d1053
style: run stylua with rocks.nvim config
2024-06-05 16:34:59 +02:00
Marc Jakobi
a3313d1e7f
chore: fix linting
2024-06-05 16:30:02 +02:00
Marc Jakobi
b10b02f0b4
chore: rework handler add signatures
2024-05-24 20:27:00 +02:00
Marc Jakobi
e61adde6ce
draft: initial implementation
2024-04-23 22:42:23 +02:00