modules/dependencies: add git

This commit is contained in:
Gaetan Lepage 2025-04-06 17:21:24 +02:00 committed by nix-infra-bot
parent 30c4d00b72
commit 9abe8fd025
26 changed files with 179 additions and 149 deletions

View file

@ -1,7 +1,5 @@
{
lib,
helpers,
pkgs,
...
}:
lib.nixvim.plugins.mkVimPlugin {
@ -11,14 +9,17 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ lib.maintainers.GaetanLepage ];
# In typical tpope fashion, this plugin has no config options
extraOptions = {
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;
};
};
imports = [
# TODO: added 2025-04-07, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "fugitive";
packageName = "git";
})
];
extraConfig = cfg: {
extraPackages = [ cfg.gitPackage ];
# In typical tpope fashion, this plugin has no config options
extraConfig = {
dependencies.git.enable = lib.mkDefault true;
};
}