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

The color of variables imported in typescript code is different from vscode #271

Closed
I-Want-ToBelieve opened this issue Dec 8, 2021 · 1 comment

Comments

@I-Want-ToBelieve
Copy link

I-Want-ToBelieve commented Dec 8, 2021

What happened

The color of variables imported in typescript code is different from vscode

What I expected to happen

Same color

Screenshot

image

Machine Info

  • Vim type (vim/gvim/neovim): neovim
  • Vim version: NVIM v0.6.0
  • OS: Linux arch 5.15.6-arch2-1 # 1 SMP PREEMPT Thu, 02 Dec 2021 15:47:09 +0000 x86_64 GNU/Linux
  • Terminal/Terminal Emulator/VTE: kitty
  • TERM environment variable: xterm-kitty

Additional Info

@benknoble
Copy link
Member

This is fairly normal. VsCode uses (AFAIK) tree-sitter for syntax highlighting. Some LSPs can also do highlighting.

Vim has a fairly complex syntax system, and it isn't perfect.

Dracula as a colorscheme does not attempt to improve any of the syntax files.

So, your options are:

  • use a system like tree-sitter or LSP for syntax highlighting (NeoVim has tree-sitter; both vim's have LSP plugins);
  • install an improved syntax file for typescript (I'm sure some exist)
  • live with the difference :)

References: #263, #254, #250, #214, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants