Skip to content

Commit 0fa71b3

Browse files
committed
fix(telescope): displaying worktrees when loading telescope
## what - displaying worktrees when loading telescope ## how - check - ThePrimeagen#122 - ThePrimeagen#124 ## why - telescope 0.1.5 breaks the code when listing available git worktress ## where - ./lua/telescope/_extensions/git_worktree.lua ## usage ## commit id, issue or pull request ## notes
1 parent 99a26bb commit 0fa71b3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lua/telescope/_extensions/git_worktree.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,14 @@ local telescope_git_worktree = function(opts)
203203
}
204204

205205
local make_display = function(entry)
206+
-- telescope 0.1.5 causes the break when listing available git worktrees
207+
--
208+
-- applying changes from
209+
-- https://github.com/ThePrimeagen/git-worktree.nvim/issues/122
210+
local path, _ = utils.transform_path(opts, entry.path)
206211
return displayer {
207212
{ entry.branch, "TelescopeResultsIdentifier" },
208-
{ utils.transform_path(opts, entry.path) },
213+
{ path },
209214
{ entry.sha },
210215
}
211216
end

0 commit comments

Comments
 (0)