From 9dd7251627350fff2a12cdd6ca3e686ab2dd5b00 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 15 Feb 2024 14:06:26 +0900 Subject: [PATCH] Add which-key registrations --- .../common/software/cli/nixvim-base.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/home-manager/common/software/cli/nixvim-base.nix b/home-manager/common/software/cli/nixvim-base.nix index 8d84b460..5c454a5d 100644 --- a/home-manager/common/software/cli/nixvim-base.nix +++ b/home-manager/common/software/cli/nixvim-base.nix @@ -92,8 +92,6 @@ nix-develop.enable = true; # tab bar like Firefox or Chrome bufferline.enable = true; - # Popup to show shortcuts - which-key.enable = true; # Automatic indent intellitab.enable = true; # Highlight all entries of the currently selected word @@ -111,6 +109,22 @@ # git plugin for vim fugitive.enable = true; + # Popup to show shortcuts + which-key = { + enable = true; + registrations = { + "b" = "Manage buffers"; + "c" = "Colorscheme"; + "g" = "Git Options"; + "l" = "LSP Options"; + "n" = "NvimTree"; + "t" = "ToggleTerm"; + "w" = "Manage Windows"; + "wo" = "Open New..."; + "wr" = "Resize"; + }; + }; + # Airline / Powerline alternative lualine = { enable = true;