nvim.nix/config/plugins/utils/whichkey.nix

81 lines
1.1 KiB
Nix
Raw Normal View History

2024-08-08 09:58:48 +08:00
{...}: {
2024-08-04 21:19:37 +08:00
plugins.which-key = {
enable = true;
};
2024-08-07 14:29:15 +08:00
# Prefixes, No operation.
keymaps = [
{
mode = "n";
key = "<leader>f";
action = "<Nop>";
options = {
desc = "+find/files";
};
}
{
mode = "n";
key = "<leader>s";
action = "<Nop>";
options = {
desc = "+search";
};
}
{
mode = "n";
key = "<leader>h";
action = "<Nop>";
options = {
desc = "+hunks";
};
}
{
mode = "n";
key = "<leader>t";
action = "<Nop>";
options = {
desc = "+toggle";
};
}
{
mode = "n";
key = "<leader>b";
action = "<Nop>";
options = {
desc = "+buffer";
};
}
{
2024-08-08 09:58:48 +08:00
mode = ["n" "v"];
2024-08-07 14:29:15 +08:00
key = "<leader>c";
action = "<Nop>";
options = {
desc = "+comment";
};
}
{
mode = "n";
key = "<leader>g";
action = "<Nop>";
options = {
desc = "+git";
};
}
{
mode = "n";
key = "<leader>l";
action = "<Nop>";
options = {
desc = "+list";
};
}
];
2024-08-04 21:19:37 +08:00
}