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
@@ -10,7 +10,7 @@ end
local cr = vim.api.nvim_replace_termcodes("<CR>", true, false, true)
vim.keymap.set("n", "<CR>", function()
if not require("git.show").open_at_cursor() then
if not require("git.object").open_under_cursor() then
-- "n" mode = no remap, so this doesn't recurse into our mapping.
vim.api.nvim_feedkeys(cr, "n", false)
end