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

Highlighting not works #35

Open
yuntan opened this issue Dec 7, 2020 · 4 comments
Open

Highlighting not works #35

yuntan opened this issue Dec 7, 2020 · 4 comments

Comments

@yuntan
Copy link

yuntan commented Dec 7, 2020

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

@yuntan
Copy link
Author

yuntan commented Dec 7, 2020

Checking out 07370d4 solved the problem.

@alminisl
Copy link

alminisl commented Mar 17, 2021

@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
Copy link

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

@alminisl
Copy link

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

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