nushell / nushell/tree-sitter-nu

Pipeline

Open
#151 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nushell
Stars
180
Forks
38
Avg merge
12m
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current pipeline and the discussion linked from pull request #117. Inspect queries/nu/*.scm and plugin/init.lua, then determine whether the pipeline should validate queries, open a .nu file in Neovim, or both. Done means the chosen checks run reliably and catch the reported breakage.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim
Domain
ci-cd, devtools, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.