mxw / vim-jsx

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

jsx indenting breaks when changing colorscheme #166

Closed kbrah closed 6 years ago

kbrah commented 6 years ago

So I came across this weird behavior that when I change my colorscheme the jsx indentation breaks. No idea why this happens and if changing the colorscheme is the only way to break it. Colorschemes that I used were onedark and jellybeans.

before:

return [
      <div>
        <div>
          {hi}
        </div>
      </div>,
      <div>
        {hi}
      </div>
    ]

after:

return [
      <div>
        <div>
          {hi}
      </div>
    </div>,
      <div>
        {hi}
      </div>
      ]
mxw commented 6 years ago

I can't repro this. Additionally, a colorscheme should never affect your indentation, so it's likely you accidentally changed something else as well.