Looks like the issue is caused by vim-jsx
.
Given:
componentDidMount: function() { ▐$.ajax({ });
I press enter to move $.ajax onto a new line and the top line folds as well:
componentDidMount: function() {
$.ajax({ });
This is really annoying as I have to correct indentation in both lines now.
Also then I do ==
it collapses all indentation as well.
Is there anything I am missing?