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,6 +1,5 @@
{
lib,
pkgs,
...
}:
let
@ -14,6 +13,14 @@ lib.nixvim.plugins.mkVimPlugin {
maintainers = [ lib.maintainers.alisonjenkins ];
imports = [
# TODO: added 2025-04-06, remove after 25.05
(lib.nixvim.mkRemovedPackageOptionModule {
plugin = "committia";
packageName = "git";
})
];
settingsOptions = {
open_only_vim_starting = defaultNullOpts.mkFlagInt 1 ''
If `0`, committia.vim always attempts to open committia's buffer when `COMMIT_EDITMSG` buffer is opened.
@ -49,13 +56,7 @@ lib.nixvim.plugins.mkVimPlugin {
'';
};
extraOptions = {
gitPackage = lib.mkPackageOption pkgs "git" {
nullable = true;
};
};
extraConfig = cfg: {
extraPackages = [ cfg.gitPackage ];
dependencies.git.enable = lib.mkDefault true;
};
}