diff options
author | Magnus Larsen <magnusfynbo@hotmail.com> | 2023-10-09 17:39:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 08:39:10 -0700 |
commit | 280360eb019fe52433a68b7918790c9187076865 (patch) | |
tree | 25e1b705a0ee5b2984356b6ba517b4c6d71fb780 | |
parent | 38da505fb0339f68734b659460ad49d4a60ecf34 (diff) |
feat: add fixjson (#126)
Co-authored-by: Magnus Larsen <mlar@novozymes.com>
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | doc/conform.txt | 1 | ||||
-rw-r--r-- | lua/conform/formatters/fixjson.lua | 8 |
3 files changed, 10 insertions, 0 deletions
@@ -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 5422ff2..f705d77 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 0000000..a29528a --- /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", +} |