summaryrefslogtreecommitdiff
path: root/conform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'conform.lua')
-rw-r--r--conform.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/conform.lua b/conform.lua
index 82e76b8..fbefafc 100644
--- a/conform.lua
+++ b/conform.lua
@@ -11,8 +11,9 @@ return {
tex = { "tex-fmt" },
lua = { "stylua" },
sh = { "shfmt" },
+ json = { "json_repair" },
},
- -- This is the "Magic" part: Format on Save
+
format_on_save = {
lsp_fallback = true, -- Use LSP if no dedicated formatter is found
async = false, -- Formatting must be synchronous to save correctly