From 7aa8c3ae82b4c3087a652525d93fd35d40216db6 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 | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/plugins/pluginmanagers/lazy.nix b/plugins/pluginmanagers/lazy.nix index 1c11c4af74..f94c86c430 100644 --- a/plugins/pluginmanagers/lazy.nix +++ b/plugins/pluginmanagers/lazy.nix @@ -41,8 +41,18 @@ in plugins.lazy = { enable = mkEnableOption "lazy.nvim"; - gitPackage = lib.mkPackageOption pkgs "git" { - nullable = true; + gitPackage = lib.mkPackageOption pkgs "git" { nullable = true; }; + + 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 = @@ -214,7 +224,8 @@ in patterns = {"."}, fallback = false }, - spec = ${helpers.toLuaObject packedPlugins} + spec = ${helpers.toLuaObject packedPlugins}, + performance = ${helpers.toLuaObject cfg.performance}, } ) '';