Open HenryMarshall opened 8 years ago
Sorry for the late reply, been really busy last few weeks. There's been a huge update to the original indent script a few weeks ago, I'll merge upstream soon here, hope this will fix your problems.
But anyway, which JavaScript syntax plugin are you using?
I was experimenting with semantic highlighting. I ultimately wound up reverting to vim-javascript because of frustrations with the highlighting (though can report that other than the above issue, indentation worked great).
I noticed that if you split the opening and closing parens for the arguments of an arrow function, it messes up the indentation for implicit returns.
Observed:
Expected:
Notably, this does not occur if the opening and closing parens are on the same line (or are omitted):
Nor does it occur when using a block (which requires an explicit return):
Thanks for making vim-js-indent, it works great with the rest of my config!