mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/performance: temporary add plenary to extraPlugins to fix tests
This commit is contained in:
parent
5d833a1692
commit
5a491f4b2b
1 changed files with 18 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue