Configure which-key plugin
This commit is contained in:
parent
51244165a8
commit
decad32741
@ -10,5 +10,6 @@
|
||||
./conform.nix
|
||||
./gitsigns.nix
|
||||
./nvim-cmp.nix
|
||||
./which-key.nix
|
||||
];
|
||||
}
|
||||
|
||||
44
modules/home-manager/nixvim/plugins/which-key.nix
Normal file
44
modules/home-manager/nixvim/plugins/which-key.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user