utillity/image-nvim: fix processor configuration and cleanup module

This commit is contained in:
Snoweuph 2026-04-26 12:27:09 +02:00
commit 073d1775a7
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
4 changed files with 20 additions and 85 deletions

View file

@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
@ -15,10 +16,14 @@ in {
"image-nvim"
];
luaPackages = [
luaPackages = mkIf (cfg.setupOpts.processor == "magick_rock") [
"magick"
];
extraPackages = mkIf (cfg.setupOpts.processor == "magick_cli") [
pkgs.imagemagick
];
pluginRC.image-nvim = entryAnywhere ''
require("image").setup(
${toLuaObject cfg.setupOpts}