mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/direnv: use direnvPackage
This commit is contained in:
parent
6bf63e8871
commit
ff3fee3ae5
2 changed files with 17 additions and 1 deletions
|
@ -10,7 +10,6 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
originalName = "direnv.vim";
|
||||
package = "direnv-vim";
|
||||
globalPrefix = "direnv_";
|
||||
extraPackages = [ pkgs.direnv ];
|
||||
|
||||
maintainers = [ helpers.maintainers.alisonjenkins ];
|
||||
|
||||
|
@ -36,4 +35,14 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
Stop echoing output from Direnv command.
|
||||
'';
|
||||
};
|
||||
|
||||
extraOptions = {
|
||||
direnvPackage = lib.mkPackageOption pkgs "direnv" {
|
||||
nullable = true;
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
extraPackages = [ cfg.direnvPackage ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,4 +14,11 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
no-packages = {
|
||||
plugins.direnv = {
|
||||
enable = true;
|
||||
direnvPackage = null;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue