mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
plugins/mini-clue: init
This commit is contained in:
parent
ad3f508f7b
commit
5026bfcaa1
2 changed files with 124 additions and 0 deletions
60
plugins/by-name/mini-clue/default.nix
Normal file
60
plugins/by-name/mini-clue/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "mini-clue";
|
||||||
|
moduleName = "mini.clue";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.HeitorAugustoLN ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
triggers = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "g";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "g";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "`";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "`";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "\"";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "\"";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "z";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "z";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
clues = [
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.builtin_completion()")
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.g()")
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.marks()")
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.registers()")
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.windows()")
|
||||||
|
(lib.nixvim.nestedLiteralLua "require(\"mini.clue\").gen_clues.z()")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
64
tests/test-sources/plugins/by-name/mini-clue/default.nix
Normal file
64
tests/test-sources/plugins/by-name/mini-clue/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.mini-clue.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.mini-clue = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
triggers = [
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "g";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "g";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "`";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "'";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "`";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "\"";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "\"";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
keys = "z";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = "x";
|
||||||
|
keys = "z";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
clues = [
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.builtin_completion()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.g()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.marks()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.registers()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.windows()")
|
||||||
|
(lib.nixvim.mkRaw "require(\"mini.clue\").gen_clues.z()")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue