mxw / vim-jsx

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

indent error #45

Closed hufeng closed 9 years ago

hufeng commented 9 years ago

for example:

var About = React.createClass({
  render() {/*cursor is here*/}
});

when I typed 'enter',

var About = React.createClass({
 render() {
 }
 });
mxw commented 9 years ago

I can't repro this. This is probably a conflict with another package, or you forgot to install the vim-javascript dependency. Try bisecting your package includes if it's the former, or reading the installation instructions if it's the latter.