Closed elquimista closed 6 years ago
What is the correct syntax/filetype for this plugin to work - javascript or jsx?
javascript
jsx
Button.js (:set filetype=javascript)
Button.js
:set filetype=javascript
☝️Syntax highlighting is correct for regular JS code, but insufficient highlighting for JSX part.
Button.js (:set filetype=jsx)
:set filetype=jsx
☝️Syntax highlighting seems to be correct for JSX code, but no highlighting for regular JS code.
I'm using Vim 8.1 with following line at the top of my ~/.vim/vimrc file to load the plugin:
~/.vim/vimrc
set runtimepath^=~/.vim/plugins/vim-jsx
:set syntax=javascript.jsx
Woah, it's simple as that.. wonder why I didn't see it in the README (or any other documentation). I'm closing this...
What is the correct syntax/filetype for this plugin to work -
javascript
orjsx
?Button.js
(:set filetype=javascript
)☝️Syntax highlighting is correct for regular JS code, but insufficient highlighting for JSX part.
Button.js
(:set filetype=jsx
)☝️Syntax highlighting seems to be correct for JSX code, but no highlighting for regular JS code.
I'm using Vim 8.1 with following line at the top of my
~/.vim/vimrc
file to load the plugin: