lib/neovim-plugin: support lz-n lazy config

This commit is contained in:
Austin Horstman 2024-12-02 12:23:45 -06:00
parent da30527de1
commit 3cfde1554c
No known key found for this signature in database
3 changed files with 155 additions and 23 deletions

View file

@ -360,6 +360,15 @@ rec {
lazy-loading for ${originalName}
'';
backend =
mkEnumFirstDefault
[
"lz.n"
]
''
The lazy-loading backend to use.
'';
# Spec loading:
enabled = mkStrLuaFnOr types.bool (lazyLoadDefaults.enabledInSpec or null) ''
When false, or if the function returns false, then ${originalName} will not be included in the spec.