mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-22 06:43:52 +00:00
utillity/image-nvim: fix processor configuration and cleanup module
This commit is contained in:
parent
13c4ad4b4b
commit
073d1775a7
4 changed files with 20 additions and 85 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue