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

No syntax highlighting for markdown files #315

Open
opixelum opened this issue Jan 31, 2024 · 3 comments
Open

No syntax highlighting for markdown files #315

opixelum opened this issue Jan 31, 2024 · 3 comments

Comments

@opixelum
Copy link

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

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

zozowell commented Mar 17, 2024

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

@tmillr
Copy link
Member

tmillr commented Mar 17, 2024

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.

ful1e5 added a commit that referenced this issue May 7, 2024
All highlights changes:
  - `@text.*` -> `@markup.*` (`strong`, `italic`, `link`, `strikethrough`; with exceptions; see below)
  - `@text.title` -> `@markup.heading`
  - `@text.literal` -> `@markup.raw`
  - `@text.reference` -> `@markup.link`
  - `@text.uri` -> `@markup.link.url` (in markup links)
  - `@string.special` -> `@markup.link.label` (non-url links)
  - `@punctuation.special` -> `@markup.list` (markdown lists only; move subitems from `@text.todo`)

Related to #315
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

4 participants