mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
feat(setup)!: remove ensure_install field
Instead, call `require('nvim-treesitter').install( { ... } )` manually.
This gives users full control over how they want to install parsers
(sync, from grammar, limited concurrency) and obviates the need for
calling `setup` for most users.
This commit is contained in:
parent
73adbe597e
commit
522e0c6991
7 changed files with 37 additions and 46 deletions
2
TODO.md
2
TODO.md
|
|
@ -4,7 +4,6 @@ This document lists the planned and finished changes in this rewrite towards [Nv
|
|||
|
||||
## TODO
|
||||
|
||||
- [ ] **`config.lua`:** drop ensure_install (replace with install), ignore_install
|
||||
- [ ] **`install.lua`:** simply skip Tier 4 parsers (`get_install_info`)
|
||||
- [ ] **`parsers.lua`:** allow specifying version in addition to commit hash (for Tier 1)
|
||||
- [ ] **`parsers.lua`:** add WASM support (tier 1)
|
||||
|
|
@ -31,3 +30,4 @@ This document lists the planned and finished changes in this rewrite towards [Nv
|
|||
- [X] rewrite installation using async module (drop support for sync; use callback instead)
|
||||
- [X] switch to upstream injection format
|
||||
- [X] remove locals from highlighting (cf. https://github.com/nvim-treesitter/nvim-treesitter/issues/3944#issuecomment-1458782497)
|
||||
- [X] drop ensure_install (replace with install)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue