I am trying to set up the Node.js version of js-beautify as an
Initially, I tried this:
-f - is necessary because js-beautify otherwise doesn't read from stdin).
So then I tried adding surrounding quotes:
:set equalprg, I see:
If I remove the
-f -, the
equalprg is set, but it doesn't work, because js-beautify tries to read from a file:
Must define at least one file. Run `js-beautify -h` for help.
How can pass these command-line options into js-beautify as part of setting equalprg?
Note I am aware that I could use the js-beautify vim plugin, but I'm trying not to overwhelm my vim setup with plugins, and instead setup the standard vim