Compare commits

..

4 Commits

Author SHA1 Message Date
154d4ad0a1 added paste whichkey pattern 2024-04-03 20:39:35 +02:00
0b64215e3c added delete whichkey pattern 2024-04-03 20:38:51 +02:00
9bde8580e9 added git whichkey pattern 2024-04-03 20:38:34 +02:00
982a0f821c removed non-unique which-key names 2024-04-03 20:37:14 +02:00

View File

@ -22,11 +22,11 @@ return {
-- Document existing key chains -- Document existing key chains
require('which-key').register { require('which-key').register {
['<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>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' }, ['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
['<leader>dn'] = { name = '[D]elete [N]o', _ = 'which_key_ignore' },
} }
-- register which-key VISUAL mode -- register which-key VISUAL mode
@ -34,6 +34,10 @@ return {
require('which-key').register({ require('which-key').register({
['<leader>'] = { name = 'VISUAL <leader>' }, ['<leader>'] = { name = 'VISUAL <leader>' },
['<leader>h'] = { 'Git [H]unk' }, ['<leader>h'] = { 'Git [H]unk' },
['<leader>d'] = { name = '[D]elete', _ = 'which_key_ignore' },
['<leader>p'] = { name = '[P]aste', _ = 'which_key_ignore' },
['<leader>dn'] = { name = '[N]o', _ = 'which_key_ignore' },
['<leader>pn'] = { name = '[N]o', _ = 'which_key_ignore' },
}, { mode = 'v' }) }, { mode = 'v' })
end, end,
}, },