Skip to content

Commit

Permalink
fix(config): don't change defaults in merge
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Nov 3, 2024
1 parent d106107 commit 6e825f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/snacks/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ M.config = setmetatable({}, {
---@param defaults T
---@return T
function M.config.get(snack, defaults)
config[snack] = vim.tbl_deep_extend("force", defaults, config[snack] or {})
config[snack] = vim.tbl_deep_extend("force", {}, defaults, config[snack] or {})
return config[snack]
end

Expand Down

0 comments on commit 6e825f5

Please sign in to comment.