summaryrefslogtreecommitdiffstats
path: root/modules/plugins/mini/animate/config.nix
blob: e9cf2813efb80d13472a2ce43c93cc011b820eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  config,
  lib,
  ...
}: let
  inherit (lib.modules) mkIf;
  inherit (lib.nvim.dag) entryAnywhere;
  inherit (lib.nvim.lua) toLuaObject;

  cfg = config.vim.mini.animate;
in {
  vim = mkIf cfg.enable {
    startPlugins = ["mini-animate"];

    pluginRC.mini-animate = entryAnywhere ''
      require("mini.animate").setup(${toLuaObject cfg.setupOpts})
    '';
  };
}