mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
plugins/lazy: use gitPackage
This commit is contained in:
parent
ce6573424d
commit
4fe95d4502
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -89,4 +89,11 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
no-packages = {
|
||||||
|
plugins.lazy = {
|
||||||
|
enable = true;
|
||||||
|
gitPackage = null;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue