config/dotfiles/nvim/lua/plugins/which-key.lua
Christophe Robillard a66616eb7b [nvim] split plugins
2025-08-11 19:35:04 +02:00

24 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)",
},
},
}