Branching out plugins with verbose configs

This commit is contained in:
Imbus 2024-07-21 23:30:17 +02:00
parent c387df5738
commit 1f4ef6856f
8 changed files with 557 additions and 581 deletions

20
lua/plugins/which-key.lua Normal file
View file

@ -0,0 +1,20 @@
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>r', group = '[R]ename' },
{ '<leader>s', group = '[S]earch' },
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
},
}
end,
}