fix(config): set default options if user provides empty table

This commit is contained in:
Smirnov Oleksandr 2022-07-05 11:46:20 +03:00
parent bb494abd1e
commit 4fee3543e0

View file

@ -13,7 +13,7 @@ local M = {
---Plugin setup function
---@param opts table user options
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
return M