Configure which-key plugin

This commit is contained in:
Isshi0417 2024-07-19 15:28:37 +09:00
parent 51244165a8
commit decad32741
2 changed files with 45 additions and 0 deletions

View File

@ -10,5 +10,6 @@
./conform.nix
./gitsigns.nix
./nvim-cmp.nix
./which-key.nix
];
}

View File

@ -0,0 +1,44 @@
{ ... }:
{
programs.nixvim.plugins.which-key = {
enable = true;
registrations = {
"<leader>c" = {
name = "[C]ode";
_ = "which_key_ignore";
};
"<leader>d" = {
name = "[D]ocument";
_ = "which_key_ignore";
};
"<leader>r" = {
name = "[R]ename";
_ = "which_key_ignore";
};
"<leader>s" = {
name = "[S]earch";
_ = "which_key_ignore";
};
"<leader>w" = {
name = "[W]orkspace";
_ = "which_key_ignore";
};
"<leader>t" = {
name = "[T]oggle";
_ = "which_key_ignore";
};
"<leader>h" = {
name = "Git [H]unk";
_ = "which_key_ignore";
};
};
};
}