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

add queries for different tree-sitter-based editors #5

Open
1Kinoti opened this issue Apr 26, 2023 · 6 comments
Open

add queries for different tree-sitter-based editors #5

1Kinoti opened this issue Apr 26, 2023 · 6 comments

Comments

@1Kinoti
Copy link
Contributor

1Kinoti commented Apr 26, 2023

i think queries should be written for tree-sitter-based editors to enable syntax highlighting

resources:

@amtoine
Copy link
Member

amtoine commented Apr 27, 2023

on neovim i followed the instructions from @zioroboco but i still had to run

mkdir ~/.local/share/nvim/lazy/nvim-treesitter/queries/nu/
http get https://raw.githubusercontent.com/1Kinoti/_tree-sitter-nu/main/queries/helix/highlights.scm | save ~/.local/share/nvim/lazy/nvim-treesitter/queries/nu/highlights.scm

to install the queries from your fork @1Kinoti to neovim 😮

it would be very cool to have that automated 😋

@fdncred
Copy link
Collaborator

fdncred commented Apr 27, 2023

@amtoine I believe the queries need to be in this tree-sitter-nu repo once we've developed them. We can start with @1Kinoti's if we want to but if you look at the helix queries from LhKipp's tree-sitter, you'll notice there are more than just one query file. I think this is all part of creating the tree-sitter part and it's just not finished yet. We added this repository in the hopes that people would jump in and add what's missing. Maybe I'm preaching to the choir here. Sorry if I am.

@amtoine
Copy link
Member

amtoine commented Apr 27, 2023

oooh yeah you are absolutely right here 😋

can we start now with the highlights.csm file above? it adds a lot to the experience i think

@fdncred
Copy link
Collaborator

fdncred commented Apr 27, 2023

@amtoine We can I think. @1Kinoti is it ok to add that file? Since it existed in your repo after the merge, I just want to ask to be sure it's ok.

@1Kinoti
Copy link
Contributor Author

1Kinoti commented Apr 27, 2023

the file is not tested, that is why i did not include it. i was just using it to learn how to write queries. but if @amtoine tests it then it can be added

@mrdgo
Copy link
Contributor

mrdgo commented Sep 20, 2024

Lapce appears to use queries that look very similar to nvim/helix queries. Does anyone use Lapce and has tried them?

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