mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +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 = {
|
||||
enable = mkEnableOption "packer.nvim";
|
||||
|
||||
package = lib.mkPackageOption pkgs [
|
||||
"vimPlugins"
|
||||
"packer-nvim"
|
||||
] { };
|
||||
|
||||
gitPackage = lib.mkPackageOption pkgs "git" {
|
||||
nullable = true;
|
||||
};
|
||||
|
@ -108,11 +113,7 @@ in
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
extraPlugins = [
|
||||
(pkgs.vimPlugins.packer-nvim.overrideAttrs (_: {
|
||||
pname = "packer.nvim";
|
||||
}))
|
||||
];
|
||||
extraPlugins = [ cfg.package ];
|
||||
|
||||
extraPackages = [ cfg.gitPackage ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue