diff --git a/modules/home-manager/nixvim/plugins/default.nix b/modules/home-manager/nixvim/plugins/default.nix index 769d749..15b22ad 100644 --- a/modules/home-manager/nixvim/plugins/default.nix +++ b/modules/home-manager/nixvim/plugins/default.nix @@ -10,5 +10,6 @@ ./conform.nix ./gitsigns.nix ./nvim-cmp.nix + ./which-key.nix ]; } diff --git a/modules/home-manager/nixvim/plugins/which-key.nix b/modules/home-manager/nixvim/plugins/which-key.nix new file mode 100644 index 0000000..a9f90b9 --- /dev/null +++ b/modules/home-manager/nixvim/plugins/which-key.nix @@ -0,0 +1,44 @@ +{ ... }: + +{ + programs.nixvim.plugins.which-key = { + enable = true; + + registrations = { + "c" = { + name = "[C]ode"; + _ = "which_key_ignore"; + }; + + "d" = { + name = "[D]ocument"; + _ = "which_key_ignore"; + }; + + "r" = { + name = "[R]ename"; + _ = "which_key_ignore"; + }; + + "s" = { + name = "[S]earch"; + _ = "which_key_ignore"; + }; + + "w" = { + name = "[W]orkspace"; + _ = "which_key_ignore"; + }; + + "t" = { + name = "[T]oggle"; + _ = "which_key_ignore"; + }; + + "h" = { + name = "Git [H]unk"; + _ = "which_key_ignore"; + }; + }; + }; +}