From 1b6a550681618f0c36612f92456094e7a5862897 Mon Sep 17 00:00:00 2001 From: Mora Unie Youer Date: Fri, 4 Apr 2025 13:30:46 +0300 Subject: fix: `which-key.nvim` groups are not registered in Visual mode --- lua/config/plugins/extra.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/config/plugins/extra.lua b/lua/config/plugins/extra.lua index 4d5b9dc..6b2a029 100644 --- a/lua/config/plugins/extra.lua +++ b/lua/config/plugins/extra.lua @@ -31,10 +31,14 @@ return { require("which-key").setup() require("which-key").add({ - { "g", group = "git" }, - { "gh", group = "hunk" }, { "s", group = "search" }, - { "S", group = "surround" }, + + { + mode = { "n", "v" }, + { "g", group = "git" }, + { "gh", group = "hunk" }, + { "S", group = "surround" }, + }, }) end, }, -- cgit v1.2.3-70-g09d2