plugins/gitgutter: use gitPackage

This commit is contained in:
Austin Horstman 2024-08-29 11:23:09 -05:00
parent 710f3472ec
commit efb004a61f
No known key found for this signature in database

View file

@ -16,6 +16,11 @@ in
package = helpers.mkPluginPackageOption "gitgutter" pkgs.vimPlugins.gitgutter;
gitPackage = helpers.mkPackageOption {
name = "git";
default = pkgs.git;
};
recommendedSettings = mkOption {
type = types.bool;
default = true;
@ -188,7 +193,7 @@ in
foldtext = "gitgutter#fold#foldtext";
};
extraPackages = [ pkgs.git ] ++ grepPackage;
extraPackages = [ cfg.gitPackage ] ++ [ grepPackage ];
globals = {
gitgutter_max_signs = mkIf (cfg.maxSigns != null) cfg.maxSigns;