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

Highlighting issue with colorscheme

Open isaiahfisher opened this issue 4 years ago • 2 comments

While using this plugin with my colorscheme I do not get highlighted html inside of the .js file. Instead I get a strange rendering of the <> brackets. image If I switch colorschemes the issue is fixed. image When I switch back to my colorscheme the rendering of <> is fixed, but I still do not get syntax highlighting. image

Do you have any idea what could cause this? For reference, the below is my HTML highlighting with my theme: image

My theme can be found at https://github.com/isaiahfisher/vim-cinnabar-defined. If there is an issue with the theme that is making it incompatible with the plugin I can do my best to correct it.

isaiahfisher avatar Jan 21 '21 21:01 isaiahfisher

We defined the highlight group here, and linked the color's as below:

https://github.com/MaxMEllon/vim-jsx-pretty/blob/6989f1663cc03d7da72b5ef1c03f87e6ddb70b41/after/syntax/jsx_pretty.vim#L187-L221

Seems the colorscheme you used didn't highlight the color groups like Function and Identifier.

yuezk avatar Jan 22 '21 07:01 yuezk

@yuezk Is there currently any feature to highlight the HTML components within JSX as defined in html.vim? Basically I am just looking for my HTML templates to match my actual HTML files.

isaiahfisher avatar Jan 22 '21 14:01 isaiahfisher