diff --git a/lua/ferris/overrides.lua b/lua/ferris/overrides.lua index 1ecf97f1..7688d50b 100644 --- a/lua/ferris/overrides.lua +++ b/lua/ferris/overrides.lua @@ -1,6 +1,9 @@ local M = {} function M.snippet_text_edits_to_text_edits(spe) + if type(spe) ~= 'table' then + return + end for _, value in ipairs(spe) do if value.newText and value.insertTextFormat then -- $0 -> Nothing