mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
plugins/which-key: updated spec examples and tests
Improve documentation for supported configurations
This commit is contained in:
parent
fb4e6c2361
commit
ebd2182b44
2 changed files with 100 additions and 46 deletions
|
@ -251,6 +251,42 @@
|
|||
desc = "Vim cmd KeyMapping Test";
|
||||
inherit mode;
|
||||
}
|
||||
# Nested mapping
|
||||
{
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
];
|
||||
__unkeyed-1 = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>f";
|
||||
group = "Group Test";
|
||||
}
|
||||
{
|
||||
__unkeyed-1 = "<leader>f<tab>";
|
||||
group = "Group in Group Test";
|
||||
}
|
||||
];
|
||||
}
|
||||
# Create mapping
|
||||
{
|
||||
__unkeyed-1 = "<leader>cS";
|
||||
__unkeyed-2 = "<cmd>CodeSnapSave<CR>";
|
||||
mode = "v";
|
||||
desc = "Save";
|
||||
}
|
||||
# Function mapping
|
||||
{
|
||||
__unkeyed-1 = "<leader>db";
|
||||
__unkeyed-2.__raw = ''
|
||||
function()
|
||||
require("dap").toggle_breakpoint()
|
||||
end
|
||||
'';
|
||||
mode = "n";
|
||||
desc = "Breakpoint toggle";
|
||||
silent = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue