Skip to content

Commit

Permalink
plugins/fugitive: use gitPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Aug 29, 2024
1 parent 82b899a commit c96b46f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion plugins/git/fugitive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
};
}

0 comments on commit c96b46f

Please sign in to comment.