In Neovim 0.10 (just released), vim.tbl_islist() is deprecated in favor of vim.islist(). This means that nightly users will get a warning on every nvim-surround action.
Solution: introduce a
local islist = vim.fn.has('nvim-0.10') == 1 and vim.islist or vim.tbl_islist
Actually, that function does not do what you think it does ;) It checks whether t is a list-like table (integer-indexed without holes). What you want is just type(t) == 'table'
In Neovim 0.10 (just released),
vim.tbl_islist()
is deprecated in favor ofvim.islist()
. This means that nightly users will get a warning on every nvim-surround action.Solution: introduce a