feat(git): add cat-file-based commit view for gitlog <CR>
This commit is contained in:
+1
-1
@@ -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, { split = false })
|
||||
require("git.show").open_commit_object(worktree, sha, { split = false })
|
||||
else
|
||||
-- "n" mode = no remap, so this doesn't recurse into our mapping.
|
||||
vim.api.nvim_feedkeys(cr, "n", false)
|
||||
|
||||
Reference in New Issue
Block a user