diff --git a/plugins/git/fugitive.nix b/plugins/git/fugitive.nix index a68ce349..a410a416 100644 --- a/plugins/git/fugitive.nix +++ b/plugins/git/fugitive.nix @@ -9,9 +9,18 @@ helpers.vim-plugin.mkVimPlugin config { name = "fugitive"; originalName = "vim-fugitive"; defaultPackage = pkgs.vimPlugins.vim-fugitive; - extraPackages = [ pkgs.git ]; maintainers = [ lib.maintainers.GaetanLepage ]; # In typical tpope fashion, this plugin has no config options + extraOptions = { + gitPackage = helpers.mkPackageOption { + name = "git"; + default = pkgs.git; + }; + }; + + extraConfig = cfg: { + extraPackages = [ cfg.gitPackage ]; + }; }