dracula/vim

Some text seems to just render white

iSeanRyan opened this issue ยท 3 comments

image

image

same code in VSCode with Dracula theme

image

Shouldn't the right hand side be the same as the left on top image?

I've set termguicolors

Using iTerm $TERM=xterm-256color

Is this javascript?

VsCode uses more complete syntax highlighters in the form of tree-sitters.

Vim's default js syntax is lacking. There's a popular replacement by pangloss. But even that is lacking some things.

Without using tree-sitters, there is likely to be some discrepancy--even if you took the time to rigorously implement the whole grammar for the language, I believe tree-sitters permit some semantic analysis.

NeoVim is getting native tree-sitters soon (@dsifford may have more info). In Vim, you'll have to look for syntax plugins or write your own. We do try quite hard to keep things aligned, but it cannot be perfect because of the feature discrepancies.

There are some related issues.

Thanks for the context @benknoble!

It's Typescript

I managed to find this in the meantime which improves on pangloss a bit https://github.com/vieira/vim-javascript

Interesting news about NeoVim and tree-sitters! I did find this also https://github.com/nvim-treesitter/nvim-treesitter

Will give this a shot ๐Ÿ‘

Thanks for the reply! I'll close this unless/until it needs re-opened. That fork looks interesting!