Skip to content

Commit 1ebab96

Browse files
authored
fix: replace deprecated vim.tbl_islist with vim.islist (#1723)
`vim.tbl_islist` was deprecated in nvim 0.10 in favor of `vim.islist`
1 parent 0bcb3be commit 1ebab96

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docgen/docgen.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ docgen.render = function(configuration_option, open)
688688

689689
if t == "table" then
690690
return (vim.tbl_isempty(self.object) and "empty " or "")
691-
.. (vim.tbl_islist(self.object) and "list" or "table")
691+
.. (vim.islist(self.object) and "list" or "table")
692692
else
693693
return t
694694
end

lua/neorg/modules/core/summary/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.load = function()
155155
-- normalise categories into a list. Could be vim.NIL, a number, a string or a list ...
156156
if not metadata.categories or metadata.categories == vim.NIL then
157157
metadata.categories = { "Uncategorised" }
158-
elseif not vim.tbl_islist(metadata.categories) then ---@diagnostic disable-line
158+
elseif not vim.islist(metadata.categories) then ---@diagnostic disable-line
159159
metadata.categories = { tostring(metadata.categories) }
160160
end
161161

lua/neorg/modules/core/tangle/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ module.public = {
253253
}
254254

255255
---@diagnostic disable-next-line
256-
if vim.tbl_islist(options.languages) then
256+
if vim.islist(options.languages) then
257257
options.filenames_only = options.languages
258258
options.languages = {}
259259
elseif type(options.languages) == "string" then

0 commit comments

Comments
 (0)