mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 19:09:48 +01:00
8d5f23035d
* statix, deadnix, alejandra * _file * _module.args * concatStringsSep "\n" -> concatLines concatStringsSep "\n" map -> concatMapStringsSep "\n" * mkShell nativeBuildInputs -> packages
29 lines
489 B
Nix
29 lines
489 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: 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}
|
|
)
|
|
'';
|
|
};
|
|
};
|
|
}
|