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

feature: Recognise all keyword groups as keywords for purposes of styling #305

Open
1 task done
ghost opened this issue Feb 4, 2023 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Feb 4, 2023

Did you check the docs?

  • I have read all the tokyonight.nvim docs

Is your feature request related to a problem? Please describe.

The grammar for Zig divides keywords into subgroups as prescribed by nvim-treesitter. However, only the @keyword group is affected by tokyonight's options.styles.keywords, producing an ugly result1.

Describe the solution you'd like

I'd like tokyonight to style all prescribed keyword groups with the options.styles.keywords options. So for instance under the default styling, all of these groups would be italicised.

Describe alternatives you've considered

An alternative would be to PR tree-sitter-zig to clump all keywords under the @keyword group, like Go and Rust do, but it would be a shame to throw away that due diligence for tool compatibility.

Additional context

Footnotes

  1. image

@ghost ghost added the enhancement New feature or request label Feb 4, 2023
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

No branches or pull requests

0 participants