diff --git a/plugins/git/gitgutter.nix b/plugins/git/gitgutter.nix index 29ce0a4f..f872fae0 100644 --- a/plugins/git/gitgutter.nix +++ b/plugins/git/gitgutter.nix @@ -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;