Skip to content

Commit

Permalink
feat(wk): Added keymaps for GitSigns.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed Apr 10, 2024
1 parent 8b4022b commit bd72d31
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion lua/lazy_cfg/which_key/register.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,28 @@ local regs = {

-- TODO: Expand these keys.
-- GitSigns
['<leader>h'] = { name = '+GitSigns' },
['<leader>G'] = { name = '+GitSigns' },
['<leader>Gh'] = { name = '+Hunks' },
['<leader>Ghd'] = {
'<CMD>Gitsigns diffthis<cr>',
'Diffthis',
},
['<leader>Ghp'] = {
'<CMD>Gitsigns preview_hunk<cr>',
'Preview Current Hunk',
},
['<leader>Ghs'] = {
'<CMD>Gitsigns stage_hunk<cr>',
'Stage Current Hunk',
},
['<leader>GhS'] = {
'<CMD>Gitsigns stage_buffer<cr>',
'Stage Current Buffer',
},
['<leader>Ghu'] = {
'<CMD>Gitsigns undo_stage_hunk<cr>',
'Un-Stage Current Hunk',
},

-- Lazy
['<leader>L'] = { name = '+Lazy' },
Expand Down

0 comments on commit bd72d31

Please sign in to comment.