From 40c2afc5b428756342db62a9cb4f9660204df9f9 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Thu, 27 Feb 2025 14:29:30 +0100 Subject: [PATCH] Fix git show --- nvim/lua/telescope/_extensions/git_show.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nvim/lua/telescope/_extensions/git_show.lua b/nvim/lua/telescope/_extensions/git_show.lua index 71b6a8a..e95413b 100644 --- a/nvim/lua/telescope/_extensions/git_show.lua +++ b/nvim/lua/telescope/_extensions/git_show.lua @@ -86,13 +86,13 @@ local git_show = function(opts) end) map({ "i", "n" }, "", function(bufr) actions.close(bufr) - local entry = action_state.get_selected_entry() - vim.cmd("Gvsplit " .. entry.value .. ":" .. entry.current_file) + local selection = action_state.get_selected_entry() + vim.cmd("Gvsplit " .. opts.ref .. ":" .. selection.value) end) map({ "i", "n" }, "", function(bufr) actions.close(bufr) - local entry = action_state.get_selected_entry() - vim.cmd("Gsplit " .. entry.value .. ":" .. entry.current_file) + local selection = action_state.get_selected_entry() + vim.cmd("Gsplit " .. opts.ref .. ":" .. selection.value) end) return true end,