neovim-flake/modules/utility/images/image-nvim/config.nix

29 lines
445 B
Nix
Raw Normal View History

2024-02-17 01:19:38 +01:00
{
config,
pkgs,
lib,
...
}: let
inherit (lib) nvim mkIf attrValues;
cfg = config.vim.utility.images.image-nvim;
in {
config = mkIf cfg.enable {
vim = {
startPlugins = [
"image-nvim"
];
luaPackages = [
"magick"
];
2024-02-17 01:19:38 +01:00
luaConfigRC.image-nvim = nvim.dag.entryAnywhere ''
require("image").setup(
${nvim.lua.toLuaObject cfg.setupOpts}
)
'';
};
};
}