From a55bbd02a550650c7d8fa29bd41111f79b4df9a0 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sat, 21 Oct 2023 12:24:41 +0200 Subject: [PATCH] fix: nil check --- lua/ferris/overrides.lua | 3 +++ 1 file changed, 3 insertions(+) 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