vim-jsx icon indicating copy to clipboard operation
vim-jsx copied to clipboard

My jsx isn't highlighted

Open CristoAMH opened this issue 6 years ago • 2 comments

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

captura de pantalla 2018-12-19 a las 9 26 43

CristoAMH avatar Dec 19 '18 09:12 CristoAMH

@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

lukerollans avatar Jan 10 '19 02:01 lukerollans

Maybe all JavaScript files should be highlighted by default? Not a major issue for me, but it's a very sensible default.

adrianhelvik avatar Feb 19 '19 23:02 adrianhelvik