refactor(git): rename show.lua to object.lua and split show out
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user