images/image-nvim: make lib calls more explicit

This commit is contained in:
raf 2024-02-26 11:54:20 +03:00
commit 30fb2e4f28
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 19 additions and 15 deletions

View file

@ -1,10 +1,11 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) nvim mkIf attrValues;
inherit (lib.modules) mkIf;
inherit (lib.nvim.dag) entryAnywhere;
inherit (lib.nvim.lua) toLuaObject;
cfg = config.vim.utility.images.image-nvim;
in {
@ -18,9 +19,9 @@ in {
"magick"
];
luaConfigRC.image-nvim = nvim.dag.entryAnywhere ''
luaConfigRC.image-nvim = entryAnywhere ''
require("image").setup(
${nvim.lua.toLuaObject cfg.setupOpts}
${toLuaObject cfg.setupOpts}
)
'';
};