mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fix(health): check required neovim version (#4330)
* fix(health): check required neovim version * fixup(health)!: require v0.8.3 for is_in_node_range * fixup(readme)!: always prefer latest neovim
This commit is contained in:
parent
87cf2abeb6
commit
1f087c91f5
2 changed files with 3 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ For more detailed information on setting these up, see ["Advanced setup"](#advan
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- **Neovim 0.8.0 or later** built with **tree-sitter 0.20.3+** (latest [nightly](https://github.com/neovim/neovim#install-from-source) recommended)
|
- [Latest](https://github.com/neovim/neovim/releases/tag/stable) Neovim release ([nightly](https://github.com/neovim/neovim#install-from-source) recommended)
|
||||||
- `tar` and `curl` in your path (or alternatively `git`)
|
- `tar` and `curl` in your path (or alternatively `git`)
|
||||||
- A C compiler in your path and libstdc++ installed ([Windows users please read this!](https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support)).
|
- A C compiler in your path and libstdc++ installed ([Windows users please read this!](https://github.com/nvim-treesitter/nvim-treesitter/wiki/Windows-support)).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ local NVIM_TREESITTER_MINIMUM_ABI = 13
|
||||||
local function install_health()
|
local function install_health()
|
||||||
health.report_start "Installation"
|
health.report_start "Installation"
|
||||||
|
|
||||||
if fn.has "nvim-0.7" == 0 then
|
if fn.has "nvim-0.8.3" ~= 1 then
|
||||||
health.report_error "Nvim-treesitter requires Neovim 0.7.0+"
|
health.report_error "Nvim-treesitter requires Neovim 0.8.3+"
|
||||||
end
|
end
|
||||||
|
|
||||||
if fn.executable "tree-sitter" == 0 then
|
if fn.executable "tree-sitter" == 0 then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue