mxw / vim-jsx

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

Clobbers my local ftdetect #29

Closed lencioni closed 9 years ago

lencioni commented 9 years ago

I'd like to use vim-jsx for the syntax highlighting and indentation features it provides, but it is clobbering my local ftdetect file which I rely on for other things in Vim. I think this is happening because everything in this plugin is nested in an after directory. Would you be open to a pull request that un-nests everything from the after directory?

mxw commented 9 years ago

You should move stuff you want to override vim-jsx's ftdetect into your own after/ftdetect.

Pathogen's load order goes something like: local files > bundled files in some order (alphabetical?) > bundled after/ files in some order > local after files. This gives you control of both the early- and late-loading, which is usually sufficient for most use cases.

lencioni commented 9 years ago

Indeed, but I was hoping to avoid this. :)