refactor plugins into directory
This commit is contained in:
parent
2ffe0d20cd
commit
29efb5d532
16 changed files with 541 additions and 474 deletions
19
lua/plugins/which-key.lua
Normal file
19
lua/plugins/which-key.lua
Normal 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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue