mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins: use mk{Neovim,Vim}Plugin's dependencies parameter
This commit is contained in:
parent
b66559d8ef
commit
1a64636839
49 changed files with 147 additions and 207 deletions
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -124,12 +125,13 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
];
|
||||
};
|
||||
|
||||
extraConfig = cfg: {
|
||||
# In theory, we could remove that if the user explicitly disables `downloadRemoteImages` for
|
||||
# all integrations but shipping `curl` is not too heavy.
|
||||
dependencies = {
|
||||
curl.enable = lib.mkDefault true;
|
||||
ueberzug.enable = lib.mkIf (cfg.settings.backend == "ueberzug") (lib.mkDefault true);
|
||||
};
|
||||
};
|
||||
# In theory, we could remove that if the user explicitly disables `downloadRemoteImages` for
|
||||
# all integrations but shipping `curl` is not too heavy.
|
||||
dependencies = [
|
||||
"curl"
|
||||
{
|
||||
name = "ueberzug";
|
||||
enable = config.plugins.image.settings.backend == "ueberzug";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue