remove gitsigns hunk keybind overlap

This commit is contained in:
Baipyrus 2024-04-05 09:11:57 +02:00
parent efea4df831
commit d113c874b3

View File

@ -13,7 +13,8 @@ return {
delete = { text = '_' },
topdelete = { text = '' },
changedelete = { text = '~' },
}, on_attach = function(bufnr)
},
on_attach = function(bufnr)
local gs = package.loaded.gitsigns
local function map(mode, l, r, opts)
@ -53,10 +54,8 @@ return {
end, { desc = 'reset git hunk' })
-- normal mode
map('n', '<leader>hs', gs.stage_hunk, { desc = 'git stage hunk' })
map('n', '<leader>hr', gs.reset_hunk, { desc = 'git reset hunk' })
map('n', '<leader>hS', gs.stage_buffer, { desc = 'git Stage buffer' })
map('n', '<leader>hu', gs.undo_stage_hunk, { desc = 'undo stage hunk' })
map('n', '<leader>hR', gs.reset_buffer, { desc = 'git Reset buffer' })
map('n', '<leader>hp', gs.preview_hunk, { desc = 'preview git hunk' })
map('n', '<leader>hb', function()
gs.blame_line { full = false }