diff --git a/README.md b/README.md index f0bcf8e6..7b90f42b 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ You can view this list in vim with `:help conform-formatters` - [erb_format](https://github.com/nebulab/erb-formatter) - Format ERB files with speed and precision. - [eslint_d](https://github.com/mantoni/eslint_d.js/) - Like ESLint, but faster. - [fish_indent](https://fishshell.com/docs/current/cmds/fish_indent.html) - Indent or otherwise prettify a piece of fish code. +- [fixjson](https://github.com/rhysd/fixjson) - JSON Fixer for Humans using (relaxed) JSON5. - [gci](https://github.com/daixiang0/gci) - GCI, a tool that controls Go package import order and makes it always deterministic. - [gdformat](https://github.com/Scony/godot-gdscript-toolkit) - A formatter for Godot's gdscript. - [gofmt](https://pkg.go.dev/cmd/gofmt) - Formats go programs. diff --git a/doc/conform.txt b/doc/conform.txt index 5422ff25..f705d774 100644 --- a/doc/conform.txt +++ b/doc/conform.txt @@ -189,6 +189,7 @@ FORMATTERS *conform-formatter `erb_format` - Format ERB files with speed and precision. `eslint_d` - Like ESLint, but faster. `fish_indent` - Indent or otherwise prettify a piece of fish code. +`fixjson` - JSON Fixer for Humans using (relaxed) JSON5. `gci` - GCI, a tool that controls Go package import order and makes it always deterministic. `gdformat` - A formatter for Godot's gdscript. diff --git a/lua/conform/formatters/fixjson.lua b/lua/conform/formatters/fixjson.lua new file mode 100644 index 00000000..a29528ae --- /dev/null +++ b/lua/conform/formatters/fixjson.lua @@ -0,0 +1,8 @@ +---@type conform.FileFormatterConfig +return { + meta = { + url = "https://github.com/rhysd/fixjson", + description = "JSON Fixer for Humans using (relaxed) JSON5 ", + }, + command = "fixjson", +}