plugins/fugitive: use gitPackage

This commit is contained in:
Austin Horstman 2024-08-29 14:56:09 -05:00
parent 82b899ab6d
commit c96b46f44b
No known key found for this signature in database

View file

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