-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwhich-key.lua
More file actions
26 lines (24 loc) · 825 Bytes
/
Copy pathwhich-key.lua
File metadata and controls
26 lines (24 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
return { -- Useful plugin to show you pending keybinds.
'folke/which-key.nvim',
event = 'VimEnter', -- Sets the loading event to 'VimEnter'
config = function() -- This is the function that runs, AFTER loading
require('which-key').setup()
-- Document existing key chains
require('which-key').add {
{ '<leader>c', group = '[C]ode' },
{ '<leader>d', group = '[D]ocument' },
{ '<leader>h', group = 'Git [H]unk' },
{ '<leader>r', group = '[R]ename' },
{ '<leader>s', group = '[S]earch' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>w', group = '[W]orkspace' },
}
-- visual mode
require('which-key').add {
{ '<leader>h', desc = 'Git [H]unk', mode = 'v' },
}
end,
dependencies = {
{ 'echasnovski/mini.icons', version = false },
},
}