Skip to content

Commit

Permalink
feat: Add which-key.nvim plugin for mapping help
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett committed Nov 15, 2024
1 parent 4f068a4 commit f6682a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"vim-textobj-line": { "branch": "master", "commit": "0a78169a33c7ea7718b9fa0fad63c11c04727291" },
"vim-textobj-quotes": { "branch": "master", "commit": "cca9686acf7b21d930ced1801120ecf23fb2f995" },
"vim-textobj-user": { "branch": "master", "commit": "074ce2575543f790290b189860597a3dcac1f79d" },
"vim-wordmotion": { "branch": "master", "commit": "81d9bd298376ab0dc465c85d55afa4cb8d5f47a1" }
"vim-wordmotion": { "branch": "master", "commit": "81d9bd298376ab0dc465c85d55afa4cb8d5f47a1" },
"which-key.nvim": { "branch": "main", "commit": "fb070344402cfc662299d9914f5546d840a22126" }
}
15 changes: 15 additions & 0 deletions vim/lua/plugins/which-key.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
return {
'folke/which-key.nvim',
event = 'VeryLazy',
opts = {
spec = {
{ '<leader>c', group = '[C]ode', mode = { 'n', 'x' } },
{ '<leader>d', group = '[D]ocument' },
{ '<leader>r', group = '[R]ename' },
{ '<leader>f', group = '[F]ind' },
{ '<leader>w', group = '[W]orkspace' },
{ '<leader>t', group = '[T]oggle' },
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
},
},
}

0 comments on commit f6682a8

Please sign in to comment.