Skip to content

Commit 5a491f4

Browse files
committed
modules/performance: temporary add plenary to extraPlugins to fix tests
1 parent 5d833a1 commit 5a491f4

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

modules/performance.nix

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
{ lib, ... }:
1+
{
2+
lib,
3+
pkgs,
4+
config,
5+
...
6+
}:
27
let
38
inherit (lib) types;
9+
cfg = config.performance;
410
in
511
{
612
options.performance = {
@@ -54,6 +60,17 @@ in
5460
};
5561
};
5662

63+
# FIXME: The performance options do not correctly propagate lua module dependencies.
64+
# We can explicitly specify 'plenary-nvim', as it is a very common dependency.
65+
# While this is enough for our test suite to pass, end-users may be affected by other dependencies not covered by our test suite.
66+
#
67+
# See https://github.com/nix-community/nixvim/pull/3099
68+
config.extraPlugins =
69+
lib.mkIf (cfg.combinePlugins.enable || (cfg.byteCompileLua.enable && cfg.byteCompileLua.plugins))
70+
[
71+
pkgs.vimPlugins.plenary-nvim
72+
];
73+
5774
config.performance = {
5875
# Set option value with default priority so that values are appended by default
5976
combinePlugins.pathsToLink = [

0 commit comments

Comments
 (0)