mirror of
https://github.com/iofq/nvim-treesitter-main.git
synced 2026-03-24 03:10:49 -05:00
This commit is contained in:
parent
d71e59e0cb
commit
d019c356b1
2 changed files with 6 additions and 1 deletions
|
|
@ -22,6 +22,11 @@ The `nixpkgs` `nvim-treesitter` plugin is not well equipped to handle the migrat
|
|||
|
||||
**nvim-treesitter-main** is a flake that builds the new `main` branch `nvim-treesitter`, along with all of the parser versions from the [`parsers.lua`](https://github.com/nvim-treesitter/nvim-treesitter/blob/main/lua/nvim-treesitter/parsers.lua) file, as recommended by the project.
|
||||
|
||||
## Deprecation
|
||||
The `nvim-treesitter` main branch was merged into [nixpkgs](https://github.com/NixOS/nixpkgs/pull/470883) in late 2025.
|
||||
|
||||
This flake will stay maintained (new grammar versions) in the medium-term, but you should look to move to the nixpkgs version - it's far simpler and more correct.
|
||||
|
||||
## Usage
|
||||
|
||||
** See below if you also plan to install tree-sitter grammars **
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ in
|
|||
nvimSkipModules = [ "nvim-treesitter._meta.parsers" ];
|
||||
})
|
||||
);
|
||||
nvim-treesitter = nvim-treesitter-unwrapped;
|
||||
nvim-treesitter = lib.warn "The nvim-treesitter-main flake is deprecated; consider moving to the nvim-treesitter package provided by nixpkgs unstable." nvim-treesitter-unwrapped;
|
||||
|
||||
nvim-treesitter-textobjects = prev'.nvim-treesitter-textobjects.overrideAttrs (old: {
|
||||
version = inputs.nvim-treesitter-textobjects.rev;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue