plugins/lazy: use gitPackage

This commit is contained in:
Austin Horstman 2024-08-29 11:22:06 -05:00
parent ce6573424d
commit 4fe95d4502
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View file

@ -41,6 +41,11 @@ in
plugins.lazy = { plugins.lazy = {
enable = mkEnableOption "lazy.nvim"; enable = mkEnableOption "lazy.nvim";
gitPackage = helpers.mkPackageOption {
name = "git";
default = pkgs.git;
};
plugins = plugins =
with types; with types;
let let
@ -152,7 +157,8 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.lazy-nvim ]; extraPlugins = [ pkgs.vimPlugins.lazy-nvim ];
extraPackages = [ pkgs.git ];
extraPackages = [ cfg.gitPackage ];
extraConfigLua = extraConfigLua =
let let

View file

@ -89,4 +89,11 @@
]; ];
}; };
}; };
no-packages = {
plugins.lazy = {
enable = true;
gitPackage = null;
};
};
} }