nushell / tree-sitter-nu

A tree-sitter grammar for nu-lang, the language of nushell
MIT License
96 stars 23 forks source link

Publish SemVer tags to luarocks.org? #103

Open mrcjkb opened 3 weeks ago

mrcjkb commented 3 weeks ago

Hey :wave:

rocks.nvim supports using tree-sitter parsers that have been published to luarocks.org as plugin dependencies.

This means that rocks.nvim users can just :Rocks install my-nushell-plugin.nvim, and the tree-sitter parser will be installed automatically, without having to use nvim-treesitter to install parsers.

For parsers that are supported by nvim-treesitter, we have an automated workflow to package/publish them using the NURR. But for parsers that aren't natively supported by nvim-treesitter, it's better if the authors manage them themselves.

Some examples:

Would you be open to publishing SemVer releases (e.g. using the release-please github action) and pubishing tree-sitter-nu to luarocks.org? If so, I'd be happy to set up the GitHub actions for you.

fdncred commented 3 weeks ago

👋🏻

We're of two minds in regard to publishing.

  1. We're happy to have tree-sitter-nu in as many places as possible for users to easily install and use it.
  2. It ends up being a big pain to support because people change things and then publishing breaks without anyone who cares to support it.
mrcjkb commented 3 weeks ago

Thanks for the feedback. In that case I suppose it's better for you if we add it to the NURR.

mrcjkb commented 1 week ago

I have added tree-sitter-nu to the NURR, so a scm version is now available on luarocks.org.

It would be nice to have semver releases so that users can pin versions. Are there any plans for that?

fdncred commented 1 week ago

Yes, but probably not until we have a maintainer passionate enough about tree-sitter-nu to finish the grammar and highlighting and do releases.