We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2571780 commit d00dbb1Copy full SHA for d00dbb1
lua/nvim-ts-autotag/utils.lua
@@ -94,7 +94,12 @@ end
94
---@param value any Value to compare
95
---@return boolean `true` if `t` contains `value`
96
M.list_contains = function(t, value)
97
- vim.validate("t", t, "table")
+ if vim.fn.has("nvim-0.11") == 1 then
98
+ vim.validate("t", t, "table")
99
+ else
100
+ vim.validate({ t = { t, "table" } })
101
+ end
102
+
103
--- @cast t table<any,any>
104
105
for _, v in ipairs(t) do
0 commit comments