sbdchd / neoformat

:sparkles: A (Neo)vim plugin for formatting code.
BSD 2-Clause "Simplified" License
1.98k stars 188 forks source link

Format on Save: Not working on JS file #403

Open ghost opened 2 years ago

ghost commented 2 years ago

I have configured format on save and tested in golang code. It works. But, I try to format on save in JS it does not trigger auto formatting.

init.vim Screenshot 2022-02-28 at 4 26 57 PM

Code example:

image

Zolmok commented 1 year ago

That's odd. It works for me. Do you have one of the supported formatters installed?

From the documentation:

JavaScript

js-beautify, prettierd, prettier, prettydiff, clang-format, esformatter, prettier-eslint, eslint_d, standard, semistandard, deno fmt

I have prettier installed and it's working fine for me.