From 1702f2407417b1646f5fb4635476d16df9221c8b Mon Sep 17 00:00:00 2001 From: Sammy Etur Date: Sun, 1 Dec 2024 20:30:05 +0100 Subject: [PATCH] plugins/molten: add wezterm as image provider --- plugins/by-name/molten/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/plugins/by-name/molten/default.nix b/plugins/by-name/molten/default.nix index d4c34dacb2..6a3dadc97c 100644 --- a/plugins/by-name/molten/default.nix +++ b/plugins/by-name/molten/default.nix @@ -1,4 +1,5 @@ { + config, lib, helpers, ... @@ -80,6 +81,7 @@ mkVimPlugin { [ "none" "image.nvim" + "wezterm" ] '' 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. + ''; + }; }