fix: add back compatibility with neovim v0.9 (#469)

pull/429/head
Micah Halter 5 months ago committed by GitHub
parent 588ab7b651
commit 8f8ab4b968
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save