projekt0n / github-nvim-theme

GitHub's Neovim themes
MIT License
2.11k stars 106 forks source link

No syntax highlighting for markdown files #315

Open opixelum opened 8 months ago

opixelum commented 8 months ago

The whole text in a markdown file is white/black.

image

It should have syntax highlighting, with different colors for each heading levels, code snippet, lists, ...

Here is an example with tokyonight-night theme:

image

Aninsi-Sasberg commented 8 months ago

I have the same issue, i think it's because of a breaking change which is commented on here in Treesitter, to which the colorthemes have to adapt.

zozowell commented 6 months ago

Seems treesitter upstream bug report was closed w/o fix, it is an intentional breaking change, the theme needs to adopt it.

tmillr commented 6 months ago

This is a dependency or version compatibility issue. Until this colorscheme gets updated with the new capture names, you can try pinning your nvim-treesitter plugin installation to tag v0.9.2 in/via your plugin manager. That should work as a temporary fix.

I don't believe nvim bundles/vendors the nvim-treesitter plugin? Nvim might depend on certain versions of it however (if it is installed), I'm not sure. In that case, perhaps nvim itself needs to be pinned as well.