Skip to content

Commit

Permalink
fix: add back compatibility with neovim v0.9 (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored May 30, 2024
1 parent 588ab7b commit 8f8ab4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/go.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ _GO_NVIM_CFG = {
local function reset_tbl(tbl)
for k, _ in pairs(tbl) do
if type(tbl[k]) == 'table' then
if vim.islist(tbl[k]) then
if (vim.islist or vim.tbl_islist)(tbl[k]) then
tbl[k] = {}
else
reset_tbl(tbl[k])
Expand Down

0 comments on commit 8f8ab4b

Please sign in to comment.