Skip to content

Commit

Permalink
fix: setup call without argument
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 24, 2023
1 parent f54cacb commit 05efcb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/spider/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

--------------------------------------------------------------------------------

Expand Down

0 comments on commit 05efcb7

Please sign in to comment.