diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-03-14 19:39:31 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-03-14 19:46:07 +0100 |
| commit | 2f5d4c3f3c675962242096bcc8e586d76dd72eb2 (patch) | |
| tree | 3a32761103e9c705cbf07dae09b5c42ff3e6e8c0 | |
| parent | refactor(config): no trailing slash in installdir (diff) | |
| download | nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar.gz nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar.bz2 nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar.lz nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar.xz nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.tar.zst nvim-treesitter-2f5d4c3f3c675962242096bcc8e586d76dd72eb2.zip | |
docs(readme): clarify pre-release support policy
| -rw-r--r-- | README.md | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -16,16 +16,15 @@ For details on these and how to help improving them, see [CONTRIBUTING.md](./CON ## Requirements -- Neovim 0.11.0 or later (nightly) +- Neovim 0.12.0 or later (nightly) - `tar` and `curl` in your path -- [`tree-sitter-cli`](https://github.com/tree-sitter/tree-sitter/blob/master/crates/cli/README.md) (0.26.1 or later) +- [`tree-sitter-cli`](https://github.com/tree-sitter/tree-sitter/blob/master/crates/cli/README.md) (0.26.1 or later, installed via your package manager, **not npm**) - a C compiler in your path (see <https://docs.rs/cc/latest/cc/#compile-time-requirements>) >[!IMPORTANT] -> The **support policy** for Neovim is -> 1. the _latest_ [stable release](https://github.com/neovim/neovim/releases/tag/stable); -> 2. the _latest_ [nightly prerelease](https://github.com/neovim/neovim/releases/tag/nightly). -> Other versions may work but are neither tested nor considered for fixes. In general, compatibility with Nvim 0.X is removed after the release of Nvim 0.(X+1).1. +> The current **support policy** for Neovim is +> * the _latest_ [nightly prerelease](https://github.com/neovim/neovim/releases/tag/nightly). +> Other versions may work but are neither tested nor considered for fixes. Once this plugin is [considered stable](https://github.com/nvim-treesitter/nvim-treesitter/issues/4767), support will be added for the latest release. ## Installation @@ -50,7 +49,7 @@ It is strongly recommended to automate this; e.g., using the following spec with `nvim-treesitter` can be configured by calling `setup`. **You do not need to call `setup` for `nvim-treesitter` to work using default values.** ```lua -require'nvim-treesitter'.setup { +require('nvim-treesitter').setup { -- Directory to install parsers and queries to (prepended to `runtimepath` to have priority) install_dir = vim.fn.stdpath('data') .. '/site' } @@ -59,7 +58,7 @@ require'nvim-treesitter'.setup { Parsers and queries can then be installed with ```lua -require'nvim-treesitter'.install { 'rust', 'javascript', 'zig' } +require('nvim-treesitter').install { 'rust', 'javascript', 'zig' } ``` (This is a no-op if the parsers are already installed.) Note that this function runs asynchronously; for synchronous installation in a script context ("bootstrapping"), you need to `wait()` for it to finish: |
