Skip to content

Commit

Permalink
feat: don't overwrite previous config (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 authored Sep 24, 2024
1 parent d531765 commit 26efb55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/formatter/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ function M.setup(user_config)
return
end

config.values = config.normalize_config(user_config)
config.values = vim.tbl_deep_extend(
"force",
config.values,
config.normalize_config(user_config)
)
end

return M

0 comments on commit 26efb55

Please sign in to comment.