refactor plugins into directory

This commit is contained in:
Jason Miller 2024-12-07 03:41:14 -05:00
parent 2ffe0d20cd
commit 29efb5d532
16 changed files with 541 additions and 474 deletions

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

@ -0,0 +1,19 @@
return {
{ -- Shows keybindings as you go
'folke/which-key.nvim',
event = 'VimEnter',
config = function()
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,
},
}