mini/test: init

This commit is contained in:
LilleAila 2025-01-17 21:22:23 +01:00
parent 400c7b84e3
commit ae76778186
No known key found for this signature in database
GPG key ID: D1ACCDCF2B9B9799
7 changed files with 62 additions and 0 deletions

View file

@ -91,6 +91,7 @@
- `mini.statusline` - `mini.statusline`
- `mini.surround` - `mini.surround`
- `mini.tabline` - `mini.tabline`
- `mini.test`
[kaktu5](https://github.com/kaktu5): [kaktu5](https://github.com/kaktu5):

View file

@ -1528,6 +1528,22 @@
"type": "github" "type": "github"
} }
}, },
"plugin-mini-test": {
"flake": false,
"locked": {
"lastModified": 1729520957,
"narHash": "sha256-NtsX441k84owAAJywq4G2rMvV6d7UR2K75G8oKam+gs=",
"owner": "echasnovski",
"repo": "mini.test",
"rev": "86a64d5a4bf9d73ebf5875edaae0d878f64f5e48",
"type": "github"
},
"original": {
"owner": "echasnovski",
"repo": "mini.test",
"type": "github"
}
},
"plugin-minimap-vim": { "plugin-minimap-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -2761,6 +2777,7 @@
"plugin-mini-statusline": "plugin-mini-statusline", "plugin-mini-statusline": "plugin-mini-statusline",
"plugin-mini-surround": "plugin-mini-surround", "plugin-mini-surround": "plugin-mini-surround",
"plugin-mini-tabline": "plugin-mini-tabline", "plugin-mini-tabline": "plugin-mini-tabline",
"plugin-mini-test": "plugin-mini-test",
"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

@ -930,5 +930,10 @@
url = "github:echasnovski/mini.tabline"; url = "github:echasnovski/mini.tabline";
flake = false; flake = false;
}; };
plugin-mini-test = {
url = "github:echasnovski/mini.test";
flake = false;
};
}; };
} }

View file

@ -37,5 +37,6 @@
./statusline ./statusline
./surround ./surround
./tabline ./tabline
./test
]; ];
} }

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.test;
in {
vim = mkIf cfg.enable {
startPlugins = ["mini-test"];
pluginRC.mini-test = entryAnywhere ''
require("mini.test").setup(${toLuaObject cfg.setupOpts})
'';
};
}

View file

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

View file

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