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.
26 lines
732 B
Lua
26 lines
732 B
Lua
local function init()
|
|
vim.o.timeout = true
|
|
vim.o.timeoutlen = 300
|
|
end
|
|
|
|
local function config()
|
|
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',
|
|
init = init,
|
|
config = config,
|
|
event = "VeryLazy",
|
|
}
|