-
Notifications
You must be signed in to change notification settings - Fork 5
Can't get this to work with vim-polyglot, or at all #1
Comments
FWIW, in that sample I'm using the |
Hey @statico. 👋
Edited: Apart from that, this plugin only detects styled-jsx if you explicitly write |
Hey! 😄 So it's a load order issue. Normally my runtime path looks something like this:
And the colors don't show up. But if I Thanks for the suggestions. cc @sheerun (vim-polyglot) who might be interested. |
You can also disable single syntax as described in the readme :) Then the load order doesn't matter probably |
These plugins make the colors look nicer when developing javascript and react code. I tried to enable vim-styled-jsx as well, but ran into an issue with load order and couldn't get it to work. alampros/vim-styled-jsx#1 I tried renaming the plugin folder A_vim-styled-jsx to fix loading order (as suggested here: https://stackoverflow.com/questions/20036921/vim-pathogen-and-load-order-of-ftplugin-files) but that didn't work.
I'm using vim-polyglot, which includes vim-jsx and pangloss/vim-javascript, and I don't get any syntax highlighting in my inline styles in my CSS. I've also tried removing
vim-polyglot
and installing vim-jsx and vim-javascript manually. My .vimrc is hosted here, but I've tried starting Vim without a config usingvim -u NONE foo.js
. Any ideas?Code in question
https://github.com/statico/aspen/blob/cb65123f1530b410ee3d941fd08399601678edba/pages/index.js#L182-L194
vim --version
The text was updated successfully, but these errors were encountered: