From 05efcb763900697e92746f98115d9c638dd4e099 Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Sun, 24 Dec 2023 16:06:01 +0100 Subject: [PATCH] fix: `setup` call without argument --- lua/spider/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/spider/init.lua b/lua/spider/init.lua index 7ef2bcb..810ad2f 100644 --- a/lua/spider/init.lua +++ b/lua/spider/init.lua @@ -52,8 +52,10 @@ local defaultOpts = { } local globalOpts = defaultOpts ----@param userOpts optsObj -function M.setup(userOpts) globalOpts = vim.tbl_deep_extend("force", defaultOpts, userOpts) end +---@param userOpts? optsObj +function M.setup(userOpts) + globalOpts = vim.tbl_deep_extend("force", defaultOpts, userOpts or {}) +end --------------------------------------------------------------------------------