nushell / tree-sitter-nu

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

Pipeline #151

Open mrdgo opened 1 week ago

mrdgo commented 1 week ago

while working on #117 I noticed that the current pipeline didn't prevent me from breaking things. In that case, neovim crashed in certain circumstances. So I tried to reproduce that in the pipeline, but couldn't really setup something sensible.

I got some hints about what to consider and where to find some docs in this comment.

Currently, our pipeline does

  1. checkout the parser
  2. install npm and treesitter
  3. lint, using prettier
  4. run tests via tree-sitter test

If we decide to keep queries within queries/nu/*.scm and an nvim plugin via plugin/init.lua, we might want to:

  1. assert that queries are valid with the current grammar
  2. try to highlight a .nu file in neovim, testing plugin/init.lua. Or at least open a *.nu file in neovim.