Skip to content

Commit

Permalink
fix: Handle changes in the Telescope API
Browse files Browse the repository at this point in the history
should be able to use path_display = { "truncate" } in telescope config
  • Loading branch information
Brian Ryall committed Jul 18, 2024
1 parent 126288d commit 6cb38fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/_extensions/git_worktree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,10 @@ local telescope_git_worktree = function(opts)
}

local make_display = function(entry)
local path, _ = utils.transform_path(opts, entry.path)
return displayer {
{ entry.branch, 'TelescopeResultsIdentifier' },
{ utils.transform_path(opts, entry.path) },
{ path },
{ entry.sha },
}
end
Expand Down

0 comments on commit 6cb38fe

Please sign in to comment.