Skip to content

Commit

Permalink
plugins/molten: add wezterm as image provider
Browse files Browse the repository at this point in the history
  • Loading branch information
samos667 authored and khaneliman committed Dec 27, 2024
1 parent abe2211 commit 1702f24
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion plugins/by-name/molten/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
lib,
helpers,
...
Expand Down Expand Up @@ -80,6 +81,7 @@ mkVimPlugin {
[
"none"
"image.nvim"
"wezterm"
]
''
How images are displayed.
Expand Down Expand Up @@ -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.
'';
};
}

0 comments on commit 1702f24

Please sign in to comment.