-
Notifications
You must be signed in to change notification settings - Fork 189
/
Copy pathneoformat.txt
545 lines (494 loc) · 21.3 KB
/
neoformat.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
*neoformat.txt* A Neovim plugin for formatting.
CONTENTS *neoformat-contents*
Introduction |neoformat-introduction|
Install |neoformat-install|
Usage |neoformat-usage|
Managing Undo History |neoformat-managing-undo-history|
Supported Filetypes |neoformat-supported-filetypes|
==============================================================================
INTRODUCTION *neoformat-introduction*
A [Neovim](https://neovim.io) and Vim8 plugin for formatting code.
*Neoformat* uses a variety of formatters for many filetypes. Currently, Neoformat
will run a formatter using the current buffer data, and on success it will
update the current buffer with the formatted text. On a formatter failure,
Neoformat will try the next formatter defined for the filetype.
By using `getbufline()` to read from the current buffer instead of file,
Neoformat is able to format your buffer without you having to `:w` your file first.
Also, by using `setline()`, marks, jumps, etc. are all maintained after formatting.
Neoformat supports both sending buffer data to formatters via stdin, and also
writing buffer data to `/tmp/` for formatters to read that do not support input
via stdin.
==============================================================================
INSTALL *neoformat-install*
Install with [vim-plug](https://github.com/junegunn/vim-plug)
>
Plug 'sbdchd/neoformat'
<
==============================================================================
USAGE *neoformat-usage*
Format the entire buffer, or visual selection of the buffer
>
:Neoformat
<Or specify a certain formatter (must be defined for the current filetype)
>
:Neoformat jsbeautify
Or format a visual selection of code in a different filetype
*Note:* you must use a ! and pass the filetype of the selection
>
:Neoformat! python
>
You can also pass a formatter to use
>
:Neoformat! python yapf
<
Or perhaps run a formatter on save
>
augroup fmt
autocmd!
autocmd BufWritePre * undojoin | Neoformat
augroup END
<
The |undojoin| command will put changes made by Neoformat into the same
|undo-block| with the latest preceding change. See
|neoformat-managing-undo-history|.
==============================================================================
CURRENT LIMITATION(S) *neoformat-limitations*
If a formatter is either not configured to use `stdin`, or is not able to read
from `stdin`, then buffer data will be written to a file in `/tmp/neoformat/`,
where the formatter will then read from
==============================================================================
CONFIG *neoformat-config*
Define custom formatters.
Options:
| `exe` | the name the formatter executable in the path | required
| `args` | list of arguments | default: [] | optional
| `replace` | overwrite the file, instead of updating the buffer | default: 0 | optional
| `stdin` | send data to the stdin of the formatter | default 0 | optional
| `stderr` | used to specify whether stderr output should be read along with
the stdin, otherwise redirects stderr to `stderr.log` file in neoformat's
temporary directory | default 0 | optional
| `no_append` | do not append the `path` of the file to the formatter command,
used when the `path` is in the middle of a command | default: 0 |
optional
| `env` | list of environment variables to prepend to the command | default: [] | optional
| `valid_exit_codes` | list of valid exit codes for formatters who do not respect common unix practices | \[0] | optional
| `try_node_exe` | attempt to find `exe` in a `node_modules/.bin` directory in the current working directory or one of its parents (requires setting `g:neoformat_try_node_exe`) | default: 0 | optional
Example:
Define custom formatters.
>
let g:neoformat_python_autopep8 = {
\ 'exe': 'autopep8',
\ 'args': ['-s 4', '-E'],
\ 'replace': 1 " replace the file, instead of updating buffer (default: 0),
\ 'stdin': 1, " send data to stdin of formatter (default: 0)
\ 'valid_exit_codes': [0, 23],
\ 'no_append': 1,
\ }
let g:neoformat_enabled_python = ['autopep8']
<
Have Neoformat use &formatprg as a formatter
>
let g:neoformat_try_formatprg = 1
<
Enable basic formatting when a filetype is not found. Disabled by default.
>
" Enable alignment globally
let g:neoformat_basic_format_align = 1
" Enable tab to spaces conversion globally
let g:neoformat_basic_format_retab = 1
" Enable trimmming of trailing whitespace globally
let g:neoformat_basic_format_trim = 1
Run all enabled formatters (by default Neoformat stops after the first
formatter succeeds)
let g:neoformat_run_all_formatters = 1
Above options can be activated or deactivated per buffer. For example:
" runs all formatters for current buffer without tab to spaces conversion
let b:neoformat_run_all_formatters = 1
let b:neoformat_basic_format_retab = 0
Have Neoformat only msg when there is an error
>
let g:neoformat_only_msg_on_error = 1
<
When debugging, you can enable either of following variables for extra logging.
>
let g:neoformat_verbose = 1 " only affects the verbosity of Neoformat
" Or
let &verbose = 1 " also increases verbosity of the editor as a whole
<
Have Neoformat look for a formatter executable in the `node_modules/.bin`
directory in the current working directory or one of its parents (only applies
to formatters with `try_node_exe` set to `1`):
>
let g:neoformat_try_node_exe = 1
<
==============================================================================
ADDING A NEW FORMATTER *neoformat-adding-new-formatter*
Note: you should replace everything `{{ }}` accordingly
1. Create a file in `autoload/neoformat/formatters/{{ filetype }}.vim` if it does not
already exist for your filetype.
2. Follow the following format
See Config above for options
>
function! neoformat#formatters#{{ filetype }}#enabled() abort
return ['{{ formatter name }}', '{{ other formatter name for filetype }}']
endfunction
function! neoformat#formatters#{{ filetype }}#{{ formatter name }}() abort
return {
\ 'exe': '{{ formatter name }}',
\ 'args': ['-s 4', '-q'],
\ 'stdin': 1
\ }
endfunction
function! neoformat#formatters#{{ filetype }}#{{ other formatter name }}() abort
return {'exe': {{ other formatter name }}
endfunction
<
3. Update `README.md` and `doc/neoformat.txt`
==============================================================================
MANAGING UNDO HISTORY *neoformat-managing-undo-history*
If you use an |autocmd| to run Neoformat on save, and you have your editor
configured to save automatically on |CursorHold| then you might run into
problems reverting changes. Pressing |u| will undo the last change made by
Neoformat instead of the change that you made yourself - and then Neoformat
will run again redoing the change that you just reverted. To avoid this
problem you can run Neoformat with the Vim |undojoin| command to put changes
made by Neoformat into the same |undo-block| with the preceding change. For
example:
>
augroup fmt
autocmd!
autocmd BufWritePre * undojoin | Neoformat
augroup END
<
When |undojoin| is used this way pressing |u| will "skip over" the Neoformat
changes - it will revert both the changes made by Neoformat and the change
that caused Neoformat to be invoked.
==============================================================================
SUPPORTED FILETYPES *neoformat-supported-filetypes*
- Arduino
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`astyle`](http://astyle.sourceforge.net)
- Assembly
- [`asmfmt`](https://github.com/klauspost/asmfmt)
- Astro
- [`prettier`](https://github.com/withastro/prettier-plugin-astro/)
- Bazel
- [`buildifier`](https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md)
- Beancount
- [`bean-format`](https://beancount.github.io/docs/running_beancount_and_generating_reports.html#bean-format)
- Bib
- [bibtex-tidy](https://github.com/FlamingTempura/bibtex-tidy)
- [bibclean](https://github.com/tobywf/bibclean)
- C
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`astyle`](http://astyle.sourceforge.net)
- C#
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`astyle`](http://astyle.sourceforge.net)
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html)
[`csharpier`](https://csharpier.com/)
- C++
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`astyle`](http://astyle.sourceforge.net)
- Cabal
- [`cabal-fmt`](https://github.com/phadej/cabal-fmt)
- CMake
- [`cmake_format`](https://github.com/cheshirekow/cmake_format)
- Crystal
- `crystal tool format` (ships with [`crystal`](http://crystal-lang.org))
- CSS
- `css-beautify` (ships with [`js-beautify`](https://github.com/beautify-web/js-beautify)),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`prettydiff`](https://github.com/prettydiff/prettydiff),
[`stylefmt`](https://github.com/morishitter/stylefmt),
[`stylelint`](https://stylelint.io/),
[`csscomb`](http://csscomb.com)
- CSV
- [`prettydiff`](https://github.com/prettydiff/prettydiff)
- Cue
- [`cue fmt`](https://cuelang.org/)
- D
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`dfmt`](https://github.com/Hackerpilot/dfmt)
- Dart
- [`dartfmt`](https://www.dartlang.org/tools/)
- [`dart format`](https://dart.dev/tools/dart-format)
- Dhall
- [`dhall format`](https://dhall-lang.org)
- dune
- [`dune format`](https://github.com/ocaml/dune)
- Elixir
- [mix format](https://hexdocs.pm/mix/master/Mix.Tasks.Format.html)
- Elm
- [`elm-format`](https://github.com/avh4/elm-format)
- Eruby
- [`htmlbeautifier`](https://github.com/threedaymonk/htmlbeautifier)
- Erlang
- [`erlfmt`](https://github.com/WhatsApp/erlfmt)
- Fish
- [`fish_indent`](http://fishshell.com)
- Fortran
- [`fprettify`](https://github.com/pseewald/fprettify)
- F#
- [`fantomas`](https://github.com/fsprojects/fantomas)
- GDScript
- [`gdformat`](https://github.com/Scony/godot-gdscript-toolkit)
- Gleam
- [gleam format](https://github.com/gleam-lang/gleam/)
- Go
- [`gofmt`](https://golang.org/cmd/gofmt/),
[`goimports`](https://godoc.org/golang.org/x/tools/cmd/goimports),
[`gofumpt`](https://github.com/mvdan/gofumpt),
[`gofumports`](https://github.com/mvdan/gofumpt)
- GLSL
- [`clang-format`](http://clang.llvm.org/docs/ClangFormat.html)
- GN
- [`gn`](http://gn.googlesource.com/gn)
- GraphQL
- [`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier)
- Haskell
- [`stylishhaskell`](https://github.com/jaspervdj/stylish-haskell)
- [`hindent`](https://github.com/chrisdone/hindent)
- [`hfmt`](https://github.com/danstiner/hfmt)
- [`brittany`](https://github.com/lspitzner/brittany)
- [`sortimports`](https://github.com/evanrelf/sort-imports)
- [`floskell`](https://github.com/ennocramer/floskell)
- [`ormolu`](https://github.com/tweag/ormolu)
`let g:ormolu_ghc_opt=["TypeApplications", "RankNTypes"]`
- You must use formatter's name without "`-`"
" right
let g:neoformat_enabled_haskell = ['sortimports', 'stylishhaskell']
" wrong
let g:neoformat_enabled_haskell = ['sort-imports', 'stylish-haskell']
- HCL
- [`hclfmt`](https://github.com/hashicorp/hcl)
- Puppet
- [`puppet-lint`](https://github.com/rodjek/puppet-lint)
- PureScript
- [`purs-tidy`](https://github.com/natefaubion/purescript-tidy)
- [`purty`](https://gitlab.com/joneshf/purty)
- HTML
- `html-beautify` (ships with [`js-beautify`](https://github.com/beautify-web/js-beautify)),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/jlongster/prettier),
[`prettydiff`](https://github.com/prettydiff/prettydiff)
- HTMLDjango
- [djlint](https://djlint.com/)
- Jade
- [`pug-beautifier`](https://github.com/vingorius/pug-beautifier)
- Java
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`astyle`](http://astyle.sourceforge.net)
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier)
- JavaScript
- [`js-beautify`](https://github.com/beautify-web/js-beautify),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/jlongster/prettier),
[`prettydiff`](https://github.com/prettydiff/prettydiff),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`esformatter`](https://github.com/millermedeiros/esformatter/),
[`prettier-eslint`](https://github.com/kentcdodds/prettier-eslint-cli),
[`eslint_d`](https://github.com/mantoni/eslint_d.js),
[`standard`](https://standardjs.com/),
[`semistandard`](https://github.com/standard/semistandard),
[`deno fmt`](https://deno.land/manual/tools/formatter),
[`biome`](https://biomejs.dev)
- JSON
- [`js-beautify`](https://github.com/beautify-web/js-beautify),
[`prettydiff`](https://github.com/prettydiff/prettydiff),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`jq`](https://stedolan.github.io/jq/),
[`fixjson`](https://github.com/rhysd/fixjson),
[`deno fmt`](https://deno.land/manual/tools/formatter),
[`topiary`](https://topiary.tweag.io),
[`biome`](https://biomejs.dev)
- Kotlin
- [`ktlint`](https://github.com/shyiko/ktlint)
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier)
- LaTeX
- [`latexindent`](https://github.com/cmhughes/latexindent.pl)
- Less
- [`csscomb`](http://csscomb.com),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`prettydiff`](https://github.com/prettydiff/prettydiff),
[`stylelint`](https://stylelint.io/)
- Lua
- [`luaformatter`](https://github.com/LuaDevelopmentTools/luaformatter)
- [`lua-fmt`](https://github.com/trixnz/lua-fmt)
- [`lua-format`](https://github.com/Koihik/LuaFormatter)
- [`stylua`](https://github.com/JohnnyMorganz/StyLua)
- Markdown
- [`remark`](https://github.com/wooorm/remark)
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`deno fmt`](https://deno.land/manual/tools/formatter),
[`mdformat`](https://github.com/executablebooks/mdformat)
- Matlab
- [`matlab-formatter-vscode`](https://github.com/affenwiesel/matlab-formatter-vscode)
- Nginx
- [nginxbeautifier](https://github.com/vasilevich/nginxbeautifier)
- Nickel
- [`topiary`](https://topiary.tweag.io)
- Nim
- nimpretty (ships with [nim](https://nim-lang.org/)),
- Nix
- [`nixfmt`](https://github.com/serokell/nixfmt)
- [`nixpkgs-fmt`](https://github.com/nix-community/nixpkgs-fmt)
- [`alejandra`](https://github.com/kamadorueda/alejandra)
- Objective-C
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`astyle`](http://astyle.sourceforge.net)
- Objective-C++
- [`uncrustify`](http://uncrustify.sourceforge.net),
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`astyle`](http://astyle.sourceforge.net)
- OCaml
- [`ocp-indent`](http://www.typerex.org/ocp-indent.html),
[`ocamlformat`](https://github.com/ocaml-ppx/ocamlformat),
[`topiary`](https://topiary.tweag.io)
- OpenSCAD
- [`openscad-format`](https://github.com/Maxattax97/openscad-format)
- Pandoc Markdown
- [`pandoc`](https://pandoc.org/MANUAL.html)
- Pawn
- [`uncrustify`](http://uncrustify.sourceforge.net)
- Perl
- [`perltidy`](http://perltidy.sourceforge.net)
- [`perlimports`](https://github.com/perl-ide/App-perlimports)
- PHP
- [`php_beautifier`](http://pear.php.net/package/PHP_Beautifier)
- [`php-cs-fixer`](http://cs.sensiolabs.org/)
- [`phpcbf`](https://github.com/squizlabs/PHP_CodeSniffer)
- [`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/plugin-php)
- [`laravel-pint`](https://github.com/laravel/pint),
- PowerShell
- [`PSScriptAnalyzer`](https://github.com/PowerShell/PSScriptAnalyzer),
[`PowerShell-Beautifier`](https://github.com/DTW-DanWard/PowerShell-Beautifier)
- Prisma
- [`prettier`](https://github.com/umidbekk/prettier-plugin-prisma)
- Proto
- [`clang-format`](http://clang.llvm.org/docs/ClangFormat.html)
- Pug (formally Jade)
- [`pug-beautifier`](https://github.com/vingorius/pug-beautifier)
- Python
- [`yapf`](https://github.com/google/yapf),
[`autopep8`](https://github.com/hhatto/autopep8),
[`black`](https://github.com/psf/black),
[`pydevf`](https://github.com/fabioz/PyDev.Formatter),
[`isort`](https://github.com/timothycrosley/isort),
[`docformatter`](https://github.com/myint/docformatter),
[`pyment`](https://github.com/dadadel/pyment),
[`ruff`](https://github.com/astral-sh/ruff)
- R
- [`styler`](https://github.com/r-lib/styler),
[`formatR`](https://github.com/yihui/formatR)
- Reason
- [`refmt`](https://github.com/facebook/reason)
- [`bsrefmt`](https://github.com/bucklescript/bucklescript)
- Rego
- [`opa fmt`](https://www.openpolicyagent.org/docs/latest/cli/#opa-fmt)
- Ruby
- [`rufo`](https://github.com/asterite/rufo)
- [`ruby-beautify`](https://github.com/erniebrodeur/ruby-beautify)
- [`rubocop`](https://github.com/rubocop/rubocop)
- [`standard`](https://github.com/testdouble/standard)
- [`prettier`](https://github.com/prettier/plugin-ruby)
- Rust
- [`rustfmt`](https://github.com/rust-lang-nursery/rustfmt),
[`topiary`](https://topiary.tweag.io)
- Sass
- [`sass-convert`](http://sass-lang.com/documentation/#executables),
[`stylelint`](https://stylelint.io/),
[`csscomb`](http://csscomb.com)
- Sbt
- [`scalafmt`](http://scalameta.org/scalafmt/)
- Scala
- [`scalariform`](https://github.com/scala-ide/scalariform),
[`scalafmt`](http://scalameta.org/scalafmt/)
- SCSS
- [`sass-convert`](http://sass-lang.com/documentation/#executables),
[`stylefmt`](https://github.com/morishitter/stylefmt),
[`stylelint`](https://stylelint.io/)
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`prettydiff`](https://github.com/prettydiff/prettydiff),
[`csscomb`](http://csscomb.com)
- Shell
- [`shfmt`](https://github.com/mvdan/sh),
[`topiary`](https://topiary.tweag.io)
- Solidity
- [`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier-solidity/prettier-plugin-solidity)
- SQL
- [`sqlfmt`](https://github.com/jackc/sqlfmt)
- `sqlformat` (ships with [`sqlparse`](https://github.com/andialbrecht/sqlparse))
- `pg_format` (ships with [`pgFormatter`](https://github.com/darold/pgFormatter))
- [`sleek`](https://github.com/nrempel/sleek)
- Starlark
- [`buildifier`](https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md)
- SugarSS
- [`stylelint`](https://stylelint.io/)
- Svelte
- [`prettierd`](https://github.com/fsouza/prettierd),
[`prettier-plugin-svelte`](https://github.com/UnwrittenFun/prettier-plugin-svelte)
- Swift
- [`Swiftformat`](https://github.com/nicklockwood/SwiftFormat)
- Terraform
- [`terraform`](https://www.terraform.io/docs/commands/fmt.html)
- TypeScript
- [`tsfmt`](https://github.com/vvakame/typescript-formatter),
[`prettierd`](https://github.com/fsouza/prettierd),
[`prettier`](https://github.com/prettier/prettier),
[`prettier-eslint`](https://github.com/kentcdodds/prettier-eslint-cli),
[`tslint`](https://palantir.github.io/tslint)
[`eslint_d`](https://github.com/mantoni/eslint_d.js)
[`clang-format`](http://clang.llvm.org/docs/ClangFormat.html),
[`deno fmt`](https://deno.land/manual/tools/formatter),
[`biome`](https://biomejs.dev)
- Typst
- [`typstfmt`](https://github.com/astrale-sharp/typstfmt)
[`typstyle`](https://github.com/Enter-tainer/typstyle)
- Toml
- [`taplo`](https://taplo.tamasfe.dev/cli/usage/formatting.html),
[`topiary`](https://topiary.tweag.io)
- V
- `v fmt` (ships with [`v`](https://vlang.io))
- VALA
- [`uncrustify`](http://uncrustify.sourceforge.net)
- Vue
- [`prettier`](https://github.com/prettier/prettier),
[`prettierd`](https://github.com/fsouza/prettierd)
- XHTML
- [`tidy`](http://www.html-tidy.org),
[`prettydiff`](https://github.com/prettydiff/prettydiff)
- XML
- [`tidy`](http://www.html-tidy.org),
[`prettydiff`](https://github.com/prettydiff/prettydiff)
[`prettier`](https://github.com/prettier/prettier),
[`prettierd`](https://github.com/fsouza/prettierd),
[`xmllint`](https://gitlab.gnome.org/GNOME/libxml2)
- YAML
- [`pyaml`](https://pypi.python.org/pypi/pyaml),
[`prettier`](https://github.com/prettier/prettier),
[`prettierd`](https://github.com/fsouza/prettierd),
[`yamlfmt`](https://github.com/mmlb/yamlfmt) (by @mmlb),
[`yamlfmt`](https://github.com/google/yamlfmt) (by @google),
[`yamlfix`](https://github.com/lyz-code/yamlfix)
- zig
- [`zigformat`](https://github.com/Himujjal/zigformat)
[`zig fmt`](https://github.com/ziglang/zig)
- zsh
- [`shfmt`](https://github.com/mvdan/sh)
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen:noet: