mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.
1.59k stars 95 forks source link

Odd formatting with JSX #78

Closed dannycroft closed 8 years ago

dannycroft commented 8 years ago

Problem:

When I call JsBeautify() I get superfluous spacing around the chevrons within the markup:

jsx-indent

A copy of my .vimrc can be seen here

I spent the last hour bisecting my vim plugins to make sure it wasn't one of the others causing this, but to no avail. If anyone can spot my downfall that would be greatly appreciated. My .editorconfig can be seen in the gif above, but I'll add it below also:

; .editorconfig

root = true

[**.js]
path=~/.vim/bundle/js-beautify/js/lib/beautify.js
bin = node
indent_style = space
indent_size = 2

[**.json]
indent_style = space
indent_size = 2

[**.jsx]
e2x = true
indent_style = space
indent_size = 2

[**.css]
path=~/.vim/bundle/js-beautify/js/lib/beautify-css.js
indent_style = space
indent_size = 2

[**.html]
;vim:path=~/.vim/bundle/js-beautify/js/lib/beautify-html.js
indent_style = space
indent_size = 2
max_char = 78
brace_style = expand
dannycroft commented 8 years ago

Seems more of an issue with maksimr/vim-jsbeautify.