fix(config): set default options if user provides empty table
This commit is contained in:
parent
bb494abd1e
commit
4fee3543e0
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ local M = {
|
||||||
---Plugin setup function
|
---Plugin setup function
|
||||||
---@param opts table user options
|
---@param opts table user options
|
||||||
function M.setup(opts)
|
function M.setup(opts)
|
||||||
M.config = vim.tbl_deep_extend("force", M.config, opts)
|
M.config = vim.tbl_deep_extend("force", M.config, opts or {})
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue