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

Attempt to generate some stylesheets from nvim treesitter files #13

Open
foxfriends opened this issue Oct 27, 2023 · 6 comments
Open

Attempt to generate some stylesheets from nvim treesitter files #13

foxfriends opened this issue Oct 27, 2023 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@foxfriends
Copy link
Owner

foxfriends commented Oct 27, 2023

The problem with just adding a language to the language.toml is that there will still be no highlighting until someone makes a stylesheet

I see. Is it possible to generate sytlesheet from https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries?

Originally posted by @Freed-Wu in #12 (comment)

@brainlessbitch
Copy link

any progress on this?

@foxfriends
Copy link
Owner Author

I have no plan to do this currently. You're welcome to try :)

@brainlessbitch
Copy link

i would, but i know zero rust lol

@foxfriends
Copy link
Owner Author

Generating these stylesheets could probably be done in any language, as a separate script rather than part of syncat program itself... but still requires learning how nvim does its queries and also how syncat does its queries and then translating the two... haha quite a bit of work

@brainlessbitch
Copy link

hmmmm, well, i can start working on it, have you written like a full spec for the syncat style stuff, i'm working on translating the ecma/javascript query, but i'm stuck because some rules seem to be overriding others

@foxfriends
Copy link
Owner Author

https://github.com/foxfriends/syncat-themes?tab=readme-ov-file#creating-themes

I believe the most comprehensive documentation for syncat themes is in there^

@foxfriends foxfriends added the help wanted Extra attention is needed label Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants