mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +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" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
whichPackage = lib.mkPackageOption pkgs "which" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
|
@ -126,9 +130,13 @@ helpers.neovim-plugin.mkNeovimPlugin {
|
|||
"fzf-lua"
|
||||
];
|
||||
|
||||
extraPackages = [
|
||||
cfg.gitPackage
|
||||
] ++ optional (hasInfix "which" (cfg.settings.commit_view.verify_commit.__raw or "")) pkgs.which;
|
||||
extraPackages =
|
||||
[
|
||||
cfg.gitPackage
|
||||
]
|
||||
++ optional (hasInfix "which" (
|
||||
cfg.settings.commit_view.verify_commit.__raw or ""
|
||||
)) cfg.whichPackage;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -295,6 +295,7 @@
|
|||
plugins.neogit = {
|
||||
enable = true;
|
||||
gitPackage = null;
|
||||
whichPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue