mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
modules/dependencies: add git
This commit is contained in:
parent
30c4d00b72
commit
9abe8fd025
26 changed files with 179 additions and 149 deletions
|
@ -15,6 +15,14 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
|
||||
maintainers = [ lib.maintainers.AndresBermeoMarinelli ];
|
||||
|
||||
imports = [
|
||||
# TODO: added 2025-04-07, remove after 25.05
|
||||
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||
plugin = "lazygit";
|
||||
packageName = "git";
|
||||
})
|
||||
];
|
||||
|
||||
settingsOptions = {
|
||||
floating_window_winblend = defaultNullOpts.mkNullable (types.ints.between 0 100) 0 ''
|
||||
Set the transparency of the floating window.
|
||||
|
@ -71,18 +79,15 @@ lib.nixvim.plugins.mkVimPlugin {
|
|||
};
|
||||
|
||||
extraOptions = {
|
||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
lazygitPackage = lib.mkPackageOption pkgs "lazygit" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
dependencies.git.enable = lib.mkDefault true;
|
||||
|
||||
extraPackages = [
|
||||
cfg.gitPackage
|
||||
cfg.lazygitPackage
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue