elixir-lang / tree-sitter-elixir

Elixir grammar for tree-sitter
https://elixir-lang.org/tree-sitter-elixir
Apache License 2.0
248 stars 25 forks source link

Integrate with neovim-treesitter #1

Closed jonatanklosko closed 2 years ago

jonatanklosko commented 3 years ago

The goal is to update the Elixir integration points in nvim-treesitter to use this repository.

cc @connorlay, @nifoc

nifoc commented 3 years ago

Quick update from my end:

I had way less time than I initially thought over the weekend, but I did find some time to start updating the queries. I did not run into any issues and will try to finish things up during the evenings.

connorlay commented 3 years ago

Quick update from my end:

I had way less time than I initially thought over the weekend, but I did find some time to start updating the queries. I did not run into any issues and will try to finish things up during the evenings.

Hi @nifoc , it sounds like we may be working on the same thing. Are you interested in collaborating with me on the integration with Neovim? I'm on a break from work this week and have a good amount of time set aside for open source work.

nifoc commented 3 years ago

Hi @connorlay, if you have already started working on updating the queries, please feel free to just submit a PR! 😄 It sounds like you have way more time for it this week and I'm really eager to see the update land.

Btw. I have to say that the changes you made to the queries a while back really makes updating them easier! :) The ones I wrote initially were way too complex.

connorlay commented 3 years ago

Today's update: I opened a draft PR that migrates highlights and injections to the new grammar. Tomorrow I plan on migrating the rest of the queries over and submitting the PR for initial review.

The new grammar is a joy to work with @jonatanklosko 😁

jonatanklosko commented 3 years ago

@connorlay awesome, happy to hear that :cat: I left some initial comments!

connorlay commented 3 years ago

My PR is ready for a full review now. Thanks @jonatanklosko for the guidance the past few days 🙏🏻

jonatanklosko commented 3 years ago

Amazing!!

nifoc commented 3 years ago

This is awesome! Thank you so much for your work 🥳

connorlay commented 3 years ago

https://github.com/nvim-treesitter/nvim-treesitter/pull/1904 is merged now and is available now for users of neovim nightly. Users of neovim stable will have to wait for the 0.5-compat release, or upgrade manually to nightly.

During review I captured the following tasks we'll want to get after soon:

connorlay commented 3 years ago

https://github.com/neovim/neovim/pull/16008 is open as a draft PR and appears to be working for me locally. I'm not sure how to write tests for this, but I think the approach is solid.

nifoc commented 3 years ago

I don't know much about neovim internals, but I tried out your PR earlier and it works for me, too.

Great work!

connorlay commented 3 years ago

Quick update: I'm working on a draft PR migrating nvim-treesitter-textobjects to the new parser.

josevalim commented 2 years ago

Awesome job everyone!