feat(git): open commits from gitlog in the same window

This commit is contained in:
2026-04-28 07:55:25 +02:00
parent 9ef5180a6a
commit 01c0f82e18
3 changed files with 28 additions and 12 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ vim.keymap.set("n", "<CR>", function()
.nvim_get_current_line()
:match("^[*|/\\_ ]*(%x%x%x%x%x%x%x+)")
if sha then
require("git.show").open_commit(worktree, sha)
require("git.show").open_commit(worktree, sha, { split = false })
else
-- "n" mode = no remap, so this doesn't recurse into our mapping.
vim.api.nvim_feedkeys(cr, "n", false)