This commit is contained in:
hrsh7th
2024-03-22 18:44:52 +09:00
parent be50b23910
commit 630cdf7d54
2 changed files with 14 additions and 2 deletions

View File

@@ -69,6 +69,16 @@ misc.empty = function(v)
return false
end
---Search value in table
misc.contains = function(tbl, v)
for _, value in ipairs(tbl) do
if value == v then
return true
end
end
return false
end
---The symbol to remove key in misc.merge.
misc.none = vim.NIL