diff --git a/lua/user/lsp/settings/jsonls.lua b/lua/user/lsp/settings/jsonls.lua index 1fffa68..e202e1e 100644 --- a/lua/user/lsp/settings/jsonls.lua +++ b/lua/user/lsp/settings/jsonls.lua @@ -169,7 +169,7 @@ local schemas = { } local function extend(tab1, tab2) - for _, value in ipairs(tab2) do + for _, value in ipairs(tab2 or {}) do table.insert(tab1, value) end return tab1