fix(git): tbl_isarray compat with nvim 0.9 (#2710)

This commit is contained in:
James Trew
2023-09-19 19:43:18 -04:00
committed by GitHub
parent b543aaa2c9
commit e7cfbb5d1f

View File

@@ -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