From 70d28cbb3f1d40ba0124a75e5a4f9e8a84e78748 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 13 Jan 2026 15:39:03 +0000 Subject: [PATCH] Update quickfix mapping to open location list Enhance the quickfix mapping to open the location list after setting all hunks, improving user experience. --- lua/plugins/gitsigns.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/plugins/gitsigns.lua b/lua/plugins/gitsigns.lua index c8777fc..0205547 100644 --- a/lua/plugins/gitsigns.lua +++ b/lua/plugins/gitsigns.lua @@ -51,7 +51,10 @@ return { map('n', 'hD', function() gs.diffthis('~') end, { desc = 'Gitsigns: Diff this ~' }) -- Quickfix/Location list - map('n', 'hq', function() gs.setqflist('all') end, { desc = 'Gitsigns: All hunks to quickfix' }) + map('n', 'hq', function() + gs.setqflist('all') + vim.cmd('copen') + end, { desc = 'Gitsigns: All hunks to quickfix' }) -- Text object map({ 'o', 'x' }, 'ih', ':Gitsigns select_hunk', { desc = 'Gitsigns: Select hunk' })