Commit Graph

20 Commits

Author SHA1 Message Date
Marc Jakobi
8611566831 feat: deprecate trigger_load with lists of plugin specs 2024-08-28 19:49:31 +07:00
Marc Jakobi
c8c06af2ac feat: vimdoc (#65) 2024-08-26 17:44:38 +00:00
Marc Jakobi
9c74d06fdc feat(trigger_load): return list of skipped plugins instead of failing (#70) 2024-08-23 09:56:22 +02:00
Marc Jakobi
33a8b1945c feat(api): ability to filter plugin searches by handlers (#68) 2024-08-22 23:07:35 +00:00
Marc Jakobi
92c4199b44 docs(luacats): overload loader.load 2024-08-22 00:35:16 +02:00
Marc Jakobi
ed49bbeb3d docs(luacats): allow table of plugins in load 2024-08-22 00:31:29 +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
Birdee
50c1454663 fix: altered loading order for startup plugins (#49)
some minor order changes to require('lz.n').load

This change is mostly to prevent issues with people doing
less-adviseable things such as calling trigger_load from places.

This ensures startup plugins have the same environment that the lazy ones do.

Namely, the ability to call trigger_load with a name instead of only being able to call trigger_load with a plugin spec, due to the plugin not yet being in state.
2024-08-17 13:51:27 +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
d911029947 feat: support loading plugin spec lists and imports more than once 2024-06-18 17:58:40 +02:00
Marc Jakobi
2989fd3fe2 docs(lua): use overload type annnotation 2024-06-17 18:37:40 +02:00
Marc Jakobi
47a10afe2c fix: ensure individual plugins can only be registered once 2024-06-16 15:23:59 +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
0a3b2c5e12 feat: add DeferredUIEnter user event 2024-06-15 11:40:42 +02:00
Marc Jakobi
5c03f32b1e chore: bump minimum Nvim version to 0.10.0 2024-06-10 13:59:01 +02:00
Marc Jakobi
b52a46c624 feat: add PluginSpec.config 2024-06-10 11:10:36 +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
9acc3d1053 style: run stylua with rocks.nvim config 2024-06-05 16:34:59 +02:00
Marc Jakobi
e61adde6ce draft: initial implementation 2024-04-23 22:42:23 +02:00