nvim: Diff against branch

This commit is contained in:
2026-04-20 18:28:11 +02:00
parent acb8445fbb
commit 8f6b9cab74

View File

@@ -43,6 +43,17 @@ return {
gs.diffthis("~")
end, "Diff this ~")
map("n", "<leader>hc", function()
Snacks.picker.git_branches({
confirm = function(picker, item)
picker:close()
if item and item.branch then
gs.diffthis(item.branch)
end
end,
})
end, "Diff against branch")
-- Text object
map({ "o", "x" }, "ih", ":<C-U>Gitsigns select_hunk<CR>", "Gitsigns select hunk")
end,