Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My jsx isn't highlighted #184

Open
CristoAMH opened this issue Dec 19, 2018 · 2 comments
Open

My jsx isn't highlighted #184

CristoAMH opened this issue Dec 19, 2018 · 2 comments

Comments

@CristoAMH
Copy link

CristoAMH commented Dec 19, 2018

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

@lukerollans
Copy link

@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

@adrianhelvik
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants