Skip to content

Commit

Permalink
fix(config): set default options if user provides empty table
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Jul 5, 2022
1 parent bb494ab commit 4fee354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/gopher/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4fee354

Please sign in to comment.