peitalin / vim-jsx-typescript

React JSX syntax highlighting for vim and Typescript
The Unlicense
306 stars 29 forks source link

Highlighting not works #35

Open yuntan opened 3 years ago

yuntan commented 3 years ago

image neovim v4.4.0 leafgarland/typescript-vim 9f247d7 peitalin/vim-jsx-typescript 22df470

yuntan commented 3 years ago

Checking out 07370d48c605ec027543b52762930165b1b27779 solved the problem.

alminisl commented 3 years ago

@peitalin @yuntan Same problem on my side fresh install of everything. The JSX highlighting works as expected however the TSX does not.

  58   │ " set filetypes as typescriptreact
  59   │ autocmd BufNewFile,BufRead *.tsx,*.jsx set filetype=typescriptreact
  60   │
  61   │ " dark red
  62   │ hi tsxTagName guifg=#E06C75
  63   │ hi tsxComponentName guifg=#E06C75
  64   │ hi tsxCloseComponentName guifg=#E06C75
  65   │ "
  66   │ " " orange
  67   │ hi tsxCloseString guifg=#F99575
  68   │ hi tsxCloseTag guifg=#F99575
  69   │ hi tsxCloseTagName guifg=#F99575
  70   │ hi tsxAttributeBraces guifg=#F99575
  71   │ hi tsxEqual guifg=#F99575
  72   │ "
  73   │ " " yellow
  74   │ hi tsxAttrib guifg=#F8BD7F cterm=italic

What I also discovered is that when I use :GFile in the preview window it looks like this:

image

But when I open the file:

image

So weird...

zacharytyhacz commented 3 years ago

What does yall's output show when you open a .tsx file with verbose flag?

alminisl commented 3 years ago

Update, I reinstalled all plugins and seems to be working now, no idea why...