From 5a491f4b2bc132cea2b56bfad0d445708c223113 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 1 Apr 2025 10:18:15 +0200 Subject: [PATCH] modules/performance: temporary add plenary to extraPlugins to fix tests --- modules/performance.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/modules/performance.nix b/modules/performance.nix index 2d086158..08d9790f 100644 --- a/modules/performance.nix +++ b/modules/performance.nix @@ -1,6 +1,12 @@ -{ lib, ... }: +{ + lib, + pkgs, + config, + ... +}: let inherit (lib) types; + cfg = config.performance; in { options.performance = { @@ -54,6 +60,17 @@ in }; }; + # FIXME: The performance options do not correctly propagate lua module dependencies. + # We can explicitly specify 'plenary-nvim', as it is a very common dependency. + # While this is enough for our test suite to pass, end-users may be affected by other dependencies not covered by our test suite. + # + # See https://github.com/nix-community/nixvim/pull/3099 + config.extraPlugins = + lib.mkIf (cfg.combinePlugins.enable || (cfg.byteCompileLua.enable && cfg.byteCompileLua.plugins)) + [ + pkgs.vimPlugins.plenary-nvim + ]; + config.performance = { # Set option value with default priority so that values are appended by default combinePlugins.pathsToLink = [