plugins/molten: add wezterm as image provider

This commit is contained in:
Sammy Etur 2024-12-01 20:30:05 +01:00 committed by Austin Horstman
parent abe2211aef
commit 1702f24074
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
{ {
config,
lib, lib,
helpers, helpers,
... ...
@ -80,6 +81,7 @@ mkVimPlugin {
[ [
"none" "none"
"image.nvim" "image.nvim"
"wezterm"
] ]
'' ''
How images are displayed. How images are displayed.
@ -236,5 +238,13 @@ mkVimPlugin {
}; };
}; };
extraConfig = cfg: { extraPython3Packages = cfg.python3Dependencies; }; 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.
'';
};
} }