refactor(git): rename show.lua to object.lua and split show out

This commit is contained in:
2026-04-28 11:02:28 +02:00
parent b9c314f059
commit 92d1891f33
4 changed files with 251 additions and 238 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_object(worktree, sha, { split = false })
require("git.object").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)