mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 23:39:47 +01:00
28 lines
445 B
Nix
28 lines
445 B
Nix
{
|
|
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"
|
|
];
|
|
|
|
luaConfigRC.image-nvim = nvim.dag.entryAnywhere ''
|
|
require("image").setup(
|
|
${nvim.lua.toLuaObject cfg.setupOpts}
|
|
)
|
|
'';
|
|
};
|
|
};
|
|
}
|