mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-25 10:18:36 +02:00
plugins/neogit: use whichPackage
This commit is contained in:
parent
5316141e50
commit
6915b851a2
2 changed files with 12 additions and 3 deletions
|
@ -104,6 +104,10 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||||
nullable = true;
|
nullable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
whichPackage = lib.mkPackageOption pkgs "which" {
|
||||||
|
nullable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
|
@ -126,9 +130,13 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
||||||
"fzf-lua"
|
"fzf-lua"
|
||||||
];
|
];
|
||||||
|
|
||||||
extraPackages = [
|
extraPackages =
|
||||||
|
[
|
||||||
cfg.gitPackage
|
cfg.gitPackage
|
||||||
] ++ optional (hasInfix "which" (cfg.settings.commit_view.verify_commit.__raw or "")) pkgs.which;
|
]
|
||||||
|
++ optional (hasInfix "which" (
|
||||||
|
cfg.settings.commit_view.verify_commit.__raw or ""
|
||||||
|
)) cfg.whichPackage;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -295,6 +295,7 @@
|
||||||
plugins.neogit = {
|
plugins.neogit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
gitPackage = null;
|
gitPackage = null;
|
||||||
|
whichPackage = null;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue