Skip to content

Commit 08efa99

Browse files
authored
chore(gitsigns): Remove visual mappings from select mode
1 parent de44f49 commit 08efa99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ require('lazy').setup({
319319
{ '<leader>s', group = '[S]earch' },
320320
{ '<leader>w', group = '[W]orkspace' },
321321
{ '<leader>t', group = '[T]oggle' },
322-
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
322+
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'x' } },
323323
},
324324
},
325325
},

lua/kickstart/plugins/gitsigns.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ return {
3434

3535
-- Actions
3636
-- visual mode
37-
map('v', '<leader>hs', function()
37+
map('x', '<leader>hs', function()
3838
gitsigns.stage_hunk { vim.fn.line '.', vim.fn.line 'v' }
3939
end, { desc = 'git [s]tage hunk' })
40-
map('v', '<leader>hr', function()
40+
map('x', '<leader>hr', function()
4141
gitsigns.reset_hunk { vim.fn.line '.', vim.fn.line 'v' }
4242
end, { desc = 'git [r]eset hunk' })
4343
-- normal mode

0 commit comments

Comments
 (0)