From d113c874b3ec8349632d14cebc4e80b58f9a50ee Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 5 Apr 2024 09:11:57 +0200 Subject: [PATCH] remove gitsigns hunk keybind overlap --- lua/kickstart/plugins/gitsigns.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/kickstart/plugins/gitsigns.lua b/lua/kickstart/plugins/gitsigns.lua index cb4168f..46a40d5 100644 --- a/lua/kickstart/plugins/gitsigns.lua +++ b/lua/kickstart/plugins/gitsigns.lua @@ -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', 'hs', gs.stage_hunk, { desc = 'git stage hunk' }) - map('n', 'hr', gs.reset_hunk, { desc = 'git reset hunk' }) map('n', 'hS', gs.stage_buffer, { desc = 'git Stage buffer' }) map('n', 'hu', gs.undo_stage_hunk, { desc = 'undo stage hunk' }) - map('n', 'hR', gs.reset_buffer, { desc = 'git Reset buffer' }) map('n', 'hp', gs.preview_hunk, { desc = 'preview git hunk' }) map('n', 'hb', function() gs.blame_line { full = false }