mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-03 01:25:22 +02:00
treewide: use mkWarnings wherever possible
This commit is contained in:
parent
2ec6218f87
commit
60adb6c56b
17 changed files with 158 additions and 122 deletions
|
@ -241,10 +241,12 @@ mkVimPlugin {
|
|||
extraConfig = cfg: {
|
||||
extraPython3Packages = cfg.python3Dependencies;
|
||||
|
||||
warnings =
|
||||
lib.optional (cfg.settings.image_provider == "wezterm" && !config.plugins.wezterm.enable)
|
||||
''
|
||||
Nixvim (plugins.molten): The `wezterm` plugin is not enabled, so the `molten` plugin's `image_provider` setting will have no effect.
|
||||
'';
|
||||
warnings = lib.nixvim.mkWarnings "plugins.molten" {
|
||||
when = cfg.settings.image_provider == "wezterm" && !config.plugins.wezterm.enable;
|
||||
|
||||
message = ''
|
||||
The `wezterm` plugin is not enabled, so the `molten` plugin's `image_provider` setting will have no effect.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue