mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
modules/dependencies: add lazygit
This commit is contained in:
parent
e866ddf5ce
commit
800bee29df
2 changed files with 9 additions and 11 deletions
|
@ -26,6 +26,7 @@ let
|
||||||
example = [ "gitMinimal" ];
|
example = [ "gitMinimal" ];
|
||||||
};
|
};
|
||||||
go.default = "go";
|
go.default = "go";
|
||||||
|
lazygit.default = "lazygit";
|
||||||
lean.default = "lean4";
|
lean.default = "lean4";
|
||||||
ledger.default = "ledger";
|
ledger.default = "ledger";
|
||||||
manix.default = "manix";
|
manix.default = "manix";
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
@ -21,6 +20,10 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
plugin = "lazygit";
|
plugin = "lazygit";
|
||||||
packageName = "git";
|
packageName = "git";
|
||||||
})
|
})
|
||||||
|
(lib.nixvim.mkRemovedPackageOptionModule {
|
||||||
|
plugin = "lazygit";
|
||||||
|
packageName = "lazygit";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
settingsOptions = {
|
settingsOptions = {
|
||||||
|
@ -78,17 +81,11 @@ lib.nixvim.plugins.mkVimPlugin {
|
||||||
config_file_path = [ ];
|
config_file_path = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = {
|
|
||||||
lazygitPackage = lib.mkPackageOption pkgs "lazygit" {
|
|
||||||
nullable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
extraConfig = cfg: {
|
extraConfig = cfg: {
|
||||||
dependencies.git.enable = lib.mkDefault true;
|
dependencies = {
|
||||||
|
git.enable = lib.mkDefault true;
|
||||||
|
lazygit.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
|
||||||
extraPackages = [
|
|
||||||
cfg.lazygitPackage
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue