leafgarland/typescript-vim

Adding support for filetype typescriptreact

lwb4 opened this issue · 1 comments

lwb4 commented

Since vim has added two new file types for Javascript and Typescript files that use JSX syntax, files with extensions .jsx and .tsx now have the filetype "javascriptreact" and "typescriptreact" respectively.

Is it possible to enable syntax highlighting for those filetypes as well by default?

My temporary workaround for now is to put the following line in my .vimrc:

au BufNewFile,BufRead *.tsx set filetype=typescript

This works, but it would be even better to be able to do this out of the box.

lwb4 commented

Silly me, just realized there is a PR for this. #167