Open CristoAMH opened 5 years ago
@CristoAMH You can add something like this to your vimrc
" Use JSX syntax highlighting in TSX files
autocmd BufRead,BufNewFile *.tsx setlocal syntax=javascript.jsx
Maybe all JavaScript files should be highlighted by default? Not a major issue for me, but it's a very sensible default.
I don't know why the plugin doesn't work. I add the line
let g:jsx_ext_required = 0
and it didn't work.If I put
:set syntax=javascript.jsx
it works, but I want to work without use this every time.Os version: Mojave Vim version: 8.0