diff --git a/lua/blink/cmp/lib/utils.lua b/lua/blink/cmp/lib/utils.lua index 5d5f85ac..5044ea49 100644 --- a/lua/blink/cmp/lib/utils.lua +++ b/lua/blink/cmp/lib/utils.lua @@ -56,6 +56,7 @@ end --- @param t table --- @return table function utils.flatten(t) + if type(t) == 'string' then return { t } end if t[1] == nil then return t end local flattened = {}