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,