From a1d59a5542a850f1b96462cb72b4164d70829dec Mon Sep 17 00:00:00 2001 From: wrvsrx Date: Thu, 5 Sep 2024 21:17:55 +0800 Subject: [PATCH] plugins/lazy: add `performance` option --- plugins/pluginmanagers/lazy.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/plugins/pluginmanagers/lazy.nix b/plugins/pluginmanagers/lazy.nix index d041ff05..3858a3c6 100644 --- a/plugins/pluginmanagers/lazy.nix +++ b/plugins/pluginmanagers/lazy.nix @@ -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}, } ) '';