Update quickfix mapping to open location list
Enhance the quickfix mapping to open the location list after setting all hunks, improving user experience.
This commit is contained in:
parent
1b71a30520
commit
70d28cbb3f
|
|
@ -51,7 +51,10 @@ return {
|
|||
map('n', '<leader>hD', function() gs.diffthis('~') end, { desc = 'Gitsigns: Diff this ~' })
|
||||
|
||||
-- Quickfix/Location list
|
||||
map('n', '<leader>hq', function() gs.setqflist('all') end, { desc = 'Gitsigns: All hunks to quickfix' })
|
||||
map('n', '<leader>hq', function()
|
||||
gs.setqflist('all')
|
||||
vim.cmd('copen')
|
||||
end, { desc = 'Gitsigns: All hunks to quickfix' })
|
||||
|
||||
-- Text object
|
||||
map({ 'o', 'x' }, 'ih', ':<C-U>Gitsigns select_hunk<CR>', { desc = 'Gitsigns: Select hunk' })
|
||||
|
|
|
|||
Loading…
Reference in New Issue