mini/animate: init

This commit is contained in:
LilleAila 2025-01-17 19:03:44 +01:00
parent c8d727f2e9
commit a1a0ab89b6
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -56,6 +56,7 @@
- Add the following plugins from [mini.nvim](https://github.com/echasnovski/mini.nvim) - Add the following plugins from [mini.nvim](https://github.com/echasnovski/mini.nvim)
- `mini.ai` - `mini.ai`
- `mini.align` - `mini.align`
- `mini.animate`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -968,6 +968,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-animate": {
"flake": false,
"locked": {
"lastModified": 1733078395,
"narHash": "sha256-ZePmJuHCCymTgaK46nSg5tRloxs+UKrVgVmT++rGKpc=",
"owner": "echasnovski",
"repo": "mini.animate",
"rev": "d14190ac3040116540889e2ebc25f488b195799e",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.animate",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2166,6 +2182,7 @@
"plugin-mind-nvim": "plugin-mind-nvim", "plugin-mind-nvim": "plugin-mind-nvim",
"plugin-mini-ai": "plugin-mini-ai", "plugin-mini-ai": "plugin-mini-ai",
"plugin-mini-align": "plugin-mini-align", "plugin-mini-align": "plugin-mini-align",
"plugin-mini-animate": "plugin-mini-animate",
"plugin-minimap-vim": "plugin-minimap-vim", "plugin-minimap-vim": "plugin-minimap-vim",
"plugin-modes-nvim": "plugin-modes-nvim", "plugin-modes-nvim": "plugin-modes-nvim",
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim", "plugin-neo-tree-nvim": "plugin-neo-tree-nvim",

View file

@ -755,5 +755,10 @@
url = "github:echasnovski/mini.align"; url = "github:echasnovski/mini.align";
flake = false; flake = false;
}; };
plugin-mini-animate = {
url = "github:echasnovski/mini.animate";
flake = false;
};
}; };
} }

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption mkOption;
inherit (lib.nvim.types) mkPluginSetupOption;
in {
options.vim.mini.animate = {
enable = mkEnableOption "mini.animate";
setupOpts = mkPluginSetupOption "mini.animate" {};
};
}

View file

@ -0,0 +1,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})
'';
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./animate.nix
./config.nix
];
}

View file

@ -2,5 +2,6 @@
imports = [ imports = [
./ai ./ai
./align ./align
./animate
]; ];
} }