mxw / vim-jsx

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

Set filetype to `javascript.jsx` #33

Closed lencioni closed 9 years ago

lencioni commented 9 years ago

In Vim, you can set multiple filetypes by separating them with a .. This allows you to have special configuration that applies to only JSX files while inheriting all of the configuration for JavaScript files.

Closes #31.

mxw commented 9 years ago

@lencioni—Sorry for vanishing on you; I was out of town for a week and a half and really busy for another week and a half... but that doesn't excuse the other two weeks!

Anyway, I've resolved this issue with a similar diff. Using multiple filetypes conveniently allows me to kill the weird jsx-config includes, but that's just a pretty refactor. Let me know if you have any other issues, and I'll try to respond more promptly!