plugins/neogit: use whichPackage

This commit is contained in:
Austin Horstman 2024-08-29 14:34:01 -05:00
parent 5316141e50
commit 6915b851a2
No known key found for this signature in database
2 changed files with 12 additions and 3 deletions

View file

@ -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 [
] ++ optional (hasInfix "which" (cfg.settings.commit_view.verify_commit.__raw or "")) pkgs.which; cfg.gitPackage
]
++ optional (hasInfix "which" (
cfg.settings.commit_view.verify_commit.__raw or ""
)) cfg.whichPackage;
}; };
} }

View file

@ -295,6 +295,7 @@
plugins.neogit = { plugins.neogit = {
enable = true; enable = true;
gitPackage = null; gitPackage = null;
whichPackage = null;
}; };
}; };
} }