mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(install): remove node requirement
* supported parsers _must_ commit at least `grammar.json` * set `TREE_SITTER_JS_RUNTIME=native` when generating parser to use built-in quickjs instead of node (requires tree-sitter 0.26)
This commit is contained in:
parent
a3b489680f
commit
fd2880e8bc
6 changed files with 337 additions and 351 deletions
|
|
@ -27,7 +27,6 @@ zimbu = {
|
|||
branch = 'develop', -- only needed if different from default branch
|
||||
location = 'parser', -- only needed if the parser is in subdirectory of a "monorepo"
|
||||
generate = true, -- only needed if repo does not contain pre-generated src/parser.c
|
||||
generate_from_json = false, -- only needed if repo does not contain `src/grammar.json` either
|
||||
},
|
||||
maintainers = { '@me' }, -- the _query_ maintainers
|
||||
tier = 1, -- stable: track versioned releases instead of latest commit
|
||||
|
|
@ -37,6 +36,9 @@ zimbu = {
|
|||
}
|
||||
```
|
||||
|
||||
>[!IMPORTANT]
|
||||
> If the repo does not contain a pre-generated `src/parser.c`, it **must** at least contain `src/grammar.json` so that the parser can be generated without having `node` installed.
|
||||
|
||||
>[!IMPORTANT]
|
||||
> The "maintainers" here refers to the person maintaining the **queries** in `nvim-treesitter`, not the parser maintainers (who likely don't use Neovim). The maintainers' duty is to review issues and PRs related to the query and to keep them updated with respect to parser changes.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue