maksimr/vim-jsbeautify

What options can we configure? How?

Closed this issue · 4 comments

I tried this editorconfig, as per the editorconfig docs, and it doesn't fully work:

[**.js]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
max_line_length = 80

Lines aren't being wrapped when they are longer than 80 chars. It'd be super helpful if you'd list exactly which properties we can configure.

Does it accept the options found in the README https://github.com/beautify-web/js-beautify? Which ones need to be ;vim options?

The example here shows

indent_style = space

But that option doesn't exist at https://github.com/beautify-web/js-beautify. They have options like

"indent_char": " ",
"eol": "\n"

so there's obviously discrepancies between this config, editorconfig, and js-beautify. It'd be nice if these were documented!

@trusktr you can use any js-beautify options, but some editorconfig options was mapped to js-beautify options.

If you know js-beautify options which should be mapped to editorconfig options then will be nice if you create PR

Thanks!

Feel free reopen