You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
708 B
Lua
23 lines
708 B
Lua
local config = function()
|
|
local wk = require 'which-key'
|
|
wk.setup()
|
|
wk.register {
|
|
['<leader>c'] = { name = '[C]ode', _ = 'which_key_ignore' },
|
|
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
|
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
|
|
['<leader>h'] = { name = 'More git', _ = 'which_key_ignore' },
|
|
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
|
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
|
['<leader>w'] = { name = '[W]orkspace', _ = 'which_key_ignore' },
|
|
}
|
|
end
|
|
|
|
return {
|
|
'folke/which-key.nvim',
|
|
config = config,
|
|
dependencies = {
|
|
{ 'tpope/vim-sleuth', tag = 'v2.0' },
|
|
{ 'tpope/vim-surround', tag = 'v2.2' },
|
|
},
|
|
}
|