mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-22 08:53:28 +02:00
plugins/packer: use package option
This commit is contained in:
parent
1364f071ad
commit
5316141e50
1 changed files with 6 additions and 5 deletions
|
@ -14,6 +14,11 @@ in
|
||||||
plugins.packer = {
|
plugins.packer = {
|
||||||
enable = mkEnableOption "packer.nvim";
|
enable = mkEnableOption "packer.nvim";
|
||||||
|
|
||||||
|
package = lib.mkPackageOption pkgs [
|
||||||
|
"vimPlugins"
|
||||||
|
"packer-nvim"
|
||||||
|
] { };
|
||||||
|
|
||||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||||
nullable = true;
|
nullable = true;
|
||||||
};
|
};
|
||||||
|
@ -108,11 +113,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
extraPlugins = [
|
extraPlugins = [ cfg.package ];
|
||||||
(pkgs.vimPlugins.packer-nvim.overrideAttrs (_: {
|
|
||||||
pname = "packer.nvim";
|
|
||||||
}))
|
|
||||||
];
|
|
||||||
|
|
||||||
extraPackages = [ cfg.gitPackage ];
|
extraPackages = [ cfg.gitPackage ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue