fix: filter fn

This commit is contained in:
əlemi 2024-09-16 20:50:28 +02:00
parent f2fdaa40a5
commit 5eaefb52c7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -12,7 +12,7 @@ local function filter(needle, haystack, getter)
hay = getter(opt)
end
if vim.startswith(hay, needle) then
table.insert(hints, opt)
table.insert(hints, hay)
end
end
return hints