fix(nvim): spell-cmp trigger condition

This commit is contained in:
Léana 江 2023-11-20 23:06:36 +01:00 committed by Léana 江
parent 85524b05b5
commit 77d3dfdb23
2 changed files with 7 additions and 2 deletions

View file

@ -15,7 +15,12 @@ M.Foreach = function(tbl, f)
end
M.Contains = function(tbl, elem)
return tbl[elem] ~= nil
for _, v in pairs(tbl) do
if v == elem then
return true
end
end
return false
end
return M