nix-community.nixvim/plugins/git/fugitive.nix
Matt Sturgeon 2a054b039e
lib/vim-plugin: drop config arg
Instead, access it via an imported module
2024-09-02 10:33:50 +01:00

25 lines
480 B
Nix

{
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin {
name = "fugitive";
originalName = "vim-fugitive";
defaultPackage = pkgs.vimPlugins.vim-fugitive;
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 ];
};
}