1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 12:06:05 +01:00

plugins/lazy: add performance option

This commit is contained in:
wrvsrx 2024-09-05 21:17:55 +08:00 committed by Matt Sturgeon
parent 334d2eb26e
commit a1d59a5542

View file

@ -54,6 +54,18 @@ in
"lazy-nvim"
] { };
performance.rtp = {
reset = helpers.defaultNullOpts.mkBool true ''
reset the runtime path to $VIMRUNTIME and your config directory.
'';
paths = helpers.defaultNullOpts.mkListOf lib.types.str [ ] ''
add any custom paths here that you want to includes in the rtp
'';
disabled_plugins = helpers.defaultNullOpts.mkListOf lib.types.str [ ] ''
list any plugins you want to disable here
'';
};
plugins =
with types;
let
@ -220,7 +232,8 @@ in
patterns = {"."},
fallback = false
},
spec = ${lib.nixvim.toLuaObject packedPlugins}
spec = ${lib.nixvim.toLuaObject packedPlugins},
performance = ${lib.nixvim.toLuaObject cfg.performance},
}
)
'';