25 lines
595 B
Lua
25 lines
595 B
Lua
|
|
return {
|
||
|
|
"folke/which-key.nvim",
|
||
|
|
event = "VeryLazy",
|
||
|
|
opts = {
|
||
|
|
-- your configuration comes here
|
||
|
|
-- or leave it empty to use the default settings
|
||
|
|
-- refer to the configuration section below
|
||
|
|
spec = {
|
||
|
|
{ '[', group = 'Navigation' },
|
||
|
|
{ ']', group = 'Navigation' },
|
||
|
|
{ '<leader>t', group = '[T]oggle' },
|
||
|
|
{ '<leader>h', group = 'Git [h]unk', mode = { 'n', 'v' } },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
keys = {
|
||
|
|
{
|
||
|
|
"<leader>?",
|
||
|
|
function()
|
||
|
|
require("which-key").show({ global = false })
|
||
|
|
end,
|
||
|
|
desc = "Buffer Local Keymaps (which-key)",
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|