mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-04 20:41:14 +00:00
31 lines
497 B
Nix
31 lines
497 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
|
inherit (lib.nvim.lua) toLuaObject;
|
|
|
|
cfg = config.vim.utility.images.image-nvim;
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = [
|
|
"image-nvim"
|
|
];
|
|
|
|
luaPackages = [
|
|
"magick"
|
|
];
|
|
|
|
luaConfigRC.image-nvim = entryAnywhere ''
|
|
require("image").setup(
|
|
${toLuaObject cfg.setupOpts}
|
|
)
|
|
'';
|
|
};
|
|
};
|
|
}
|