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

Use different highlights for markdown titles #492

Closed
igorlfs opened this issue May 21, 2023 · 1 comment · Fixed by #493
Closed

Use different highlights for markdown titles #492

igorlfs opened this issue May 21, 2023 · 1 comment · Fixed by #493
Labels
enhancement New feature or request

Comments

@igorlfs
Copy link
Contributor

igorlfs commented May 21, 2023

Is your feature request related to a problem? Please describe.
Treesitter now supports custom highlighting for markdown headers, which would be nice. Current behavior:
image

Describe the solution you'd like
Using vim's syntax files, we get:
image

The highlights groups are in format text.title.1.markdown and so on

Describe alternatives you've considered
I could set these highlight groups myself, but I think it benefits the community

@igorlfs
Copy link
Contributor Author

igorlfs commented May 21, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant