Skip to content

Commit 2c69e2e

Browse files
dam9000kontr0x
authored andcommitted
Add gitsigns recommended keymaps as an optional plugin (nvim-lua#858)
1 parent e335a9c commit 2c69e2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lua/kickstart/plugins/gitsigns.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,17 @@ return {
3636
-- visual mode
3737
map('v', '<leader>hs', function()
3838
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
39+
<<<<<<< HEAD
3940
end, { desc = 'git [s]tage hunk' })
4041
map('v', '<leader>hr', function()
4142
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
4243
end, { desc = 'git [r]eset hunk' })
44+
=======
45+
end, { desc = 'stage git hunk' })
46+
map('v', '<leader>hr', function()
47+
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
48+
end, { desc = 'reset git hunk' })
49+
>>>>>>> cef5bee (Add gitsigns recommended keymaps as an optional plugin (#858))
4350
-- normal mode
4451
map('n', '<leader>hs', gitsigns.stage_hunk, { desc = 'git [s]tage hunk' })
4552
map('n', '<leader>hr', gitsigns.reset_hunk, { desc = 'git [r]eset hunk' })

0 commit comments

Comments
 (0)