diff --git a/lua/telescope/builtin/__git.lua b/lua/telescope/builtin/__git.lua index 1478dc2..a50434f 100644 --- a/lua/telescope/builtin/__git.lua +++ b/lua/telescope/builtin/__git.lua @@ -428,7 +428,7 @@ end local try_worktrees = function(opts) local worktrees = conf.git_worktrees - if vim.tbl_isarray(worktrees) then + if vim.tbl_islist(worktrees) then for _, wt in ipairs(worktrees) do if vim.startswith(opts.cwd, wt.toplevel) then opts.toplevel = wt.toplevel