mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-01-19 16:32:24 +00:00
mini/test: init
This commit is contained in:
parent
400c7b84e3
commit
ae76778186
7 changed files with 62 additions and 0 deletions
|
@ -91,6 +91,7 @@
|
|||
- `mini.statusline`
|
||||
- `mini.surround`
|
||||
- `mini.tabline`
|
||||
- `mini.test`
|
||||
|
||||
[kaktu5](https://github.com/kaktu5):
|
||||
|
||||
|
|
17
flake.lock
17
flake.lock
|
@ -1528,6 +1528,22 @@
|
|||
"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": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -2761,6 +2777,7 @@
|
|||
"plugin-mini-statusline": "plugin-mini-statusline",
|
||||
"plugin-mini-surround": "plugin-mini-surround",
|
||||
"plugin-mini-tabline": "plugin-mini-tabline",
|
||||
"plugin-mini-test": "plugin-mini-test",
|
||||
"plugin-minimap-vim": "plugin-minimap-vim",
|
||||
"plugin-modes-nvim": "plugin-modes-nvim",
|
||||
"plugin-neo-tree-nvim": "plugin-neo-tree-nvim",
|
||||
|
|
|
@ -930,5 +930,10 @@
|
|||
url = "github:echasnovski/mini.tabline";
|
||||
flake = false;
|
||||
};
|
||||
|
||||
plugin-mini-test = {
|
||||
url = "github:echasnovski/mini.test";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -37,5 +37,6 @@
|
|||
./statusline
|
||||
./surround
|
||||
./tabline
|
||||
./test
|
||||
];
|
||||
}
|
||||
|
|
19
modules/plugins/mini/test/config.nix
Normal file
19
modules/plugins/mini/test/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.test;
|
||||
in {
|
||||
vim = mkIf cfg.enable {
|
||||
startPlugins = ["mini-test"];
|
||||
|
||||
pluginRC.mini-test = entryAnywhere ''
|
||||
require("mini.test").setup(${toLuaObject cfg.setupOpts})
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/plugins/mini/test/default.nix
Normal file
6
modules/plugins/mini/test/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./test.nix
|
||||
./config.nix
|
||||
];
|
||||
}
|
13
modules/plugins/mini/test/test.nix
Normal file
13
modules/plugins/mini/test/test.nix
Normal 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" {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue