vim-jsx icon indicating copy to clipboard operation
vim-jsx copied to clipboard

Wrong es6/es7 decorators indent

Open stigmat4j opened this issue 10 years ago • 4 comments

Before Image

After Image

stigmat4j avatar Nov 29 '15 17:11 stigmat4j

@stigmat4j—Are you sure this isn't an issue with this short lambda syntax? (Is that what the (x) => (y)) thing is?) What happens when you replace @connect(...) with, e.g., {...}?

mxw avatar Nov 29 '15 19:11 mxw

@mxw, so... my code is working. https://github.com/rackt/react-redux/issues/1

stigmat4j avatar Nov 29 '15 19:11 stigmat4j

Er, by "issue with the short lambda syntax", I meant, "an issue with vim-jsx re: short lambda syntax".

In other words, are you sure the issue you're seeing with JSX indentation has anything to do with decorators? Are you sure it's not just short lambdas?

mxw avatar Nov 29 '15 19:11 mxw

@stigmat4j—Sorry for the delay. Today's a "fix bugs in my vim projects" day; could you re-post your code and/or images?

mxw avatar Feb 01 '16 17:02 mxw