mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-10 04:37:16 +00:00
images/image-nvim: make lib calls more explicit
This commit is contained in:
parent
d2af30545d
commit
30fb2e4f28
2 changed files with 19 additions and 15 deletions
|
|
@ -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}
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue