-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Nvim Treesitter support #49
Comments
Here’s my take https://github.com/nkrkv/nvim-treesitter-rescript |
Awesome ! You rock, that's a good start :) First look, one thing is missing is function definition and call. But definitely cool ! |
Thank you!
🤔 they are here:
Or do you mean their highlighting queries?
No. I wanted to give it some trial among rescripters because I suspect it’s incomplete yet and it would be harder to manage within 3-rd party repo (or how things done, I don’t know). |
I mean their highlight yeap |
Also, I dunno how things work, but |
I’m not sure how practical it is for FP-like language:
I haven’t found yet a description or discussion on this topic. Things are clear for languages like C where functions live in another land, but not so clear for FP. Need to take a look at parsers for similar langs.
Another reason for me to finally try Telescope. Thank you! |
The second is a function call, so it make sense to me that this one is highlight. The first one is a variable, so.. also make sense to me that it's not highlight.
Good catch.. I think like @parameter.reference make more sense.. I guess ? but that's just my opinion.. To be honest, I was only considering:
So I guess we need to think more about it.. Maybe have a look at the ocaml way ? |
Not sure if I should post it here, but the tree-sitter build-in neovim doesn't support rescript. It's a great improvement for color highlight and other plugins features ( I think about blankline or telescope preview for example).
With the recent release of nvim 0.5, it's now a must have.
If we look at the elm way, they have a dedicated repo: https://github.com/elm-tooling/tree-sitter-elm for the "regular" tree-sitter as a common based, then we can have the slightly different version targeting nvim as explain here: nvim-treesitter/nvim-treesitter#529
Posting it here, as vs code took the opposite way to deprecied tree-sitter so it primaly focus neovim. Also, the current highlight syntax have some issue, it can fixed it at least for neovim, in what it seems to be an easier way than through LSP.
I will probably not have time to take care of it, but I post it here for the record anymway.
The text was updated successfully, but these errors were encountered: