diff --git a/init.lua b/init.lua index 12d372f8bcf..c0f72b4e6a5 100644 --- a/init.lua +++ b/init.lua @@ -277,26 +277,15 @@ require('lazy').setup({ require('which-key').setup() -- Document existing key chains - require('which-key').register { + require('which-key').add { { 'c', group = '[C]ode' }, - { 'c_', hidden = true }, { 'd', group = '[D]ocument' }, - { 'd_', hidden = true }, - { 'h', group = 'Git [H]unk' }, - { 'h_', hidden = true }, { 'r', group = '[R]ename' }, - { 'r_', hidden = true }, { 's', group = '[S]earch' }, - { 's_', hidden = true }, - { 't', group = '[T]oggle' }, - { 't_', hidden = true }, { 'w', group = '[W]orkspace' }, - { 'w_', hidden = true }, + { 't', group = '[T]oggle' }, + { 'h', group = 'Git [H]unk', mode = { 'n', 'v' } }, } - -- visual mode - require('which-key').register({ - { 'h', desc = 'Git [H]unk', mode = 'v' }, - }, { mode = 'v' }) end, },