mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 08:22:25 +00:00
mini/animate: init
This commit is contained in:
parent
c8d727f2e9
commit
a1a0ab89b6
7 changed files with 62 additions and 0 deletions
|
@ -56,6 +56,7 @@
|
|||
- Add the following plugins from [mini.nvim](https://github.com/echasnovski/mini.nvim)
|
||||
- `mini.ai`
|
||||
- `mini.align`
|
||||
- `mini.animate`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -968,6 +968,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2166,6 +2182,7 @@
|
|||
"plugin-mind-nvim": "plugin-mind-nvim",
|
||||
"plugin-mini-ai": "plugin-mini-ai",
|
||||
"plugin-mini-align": "plugin-mini-align",
|
||||
"plugin-mini-animate": "plugin-mini-animate",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -755,5 +755,10 @@
|
|||
url = "github:echasnovski/mini.align";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-animate = {
|
||||
url = "github:echasnovski/mini.animate";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
13
modules/plugins/mini/animate/animate.nix
Normal file
13
modules/plugins/mini/animate/animate.nix
Normal 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" {};
|
||||
};
|
||||
}
|
19
modules/plugins/mini/animate/config.nix
Normal file
19
modules/plugins/mini/animate/config.nix
Normal 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})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/animate/default.nix
Normal file
6
modules/plugins/mini/animate/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./animate.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./ai
|
||||
./align
|
||||
./animate
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue