The color of variables imported in typescript code is different from vscode
I-Want-ToBelieve opened this issue · 1 comments
I-Want-ToBelieve commented
What happened
The color of variables imported in typescript code is different from vscode
What I expected to happen
Same color
Screenshot
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 commented
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 :)