mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 17:45:03 +02:00
modules/dependencies: add git
This commit is contained in:
parent
30c4d00b72
commit
9abe8fd025
26 changed files with 179 additions and 149 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue