Repository navigation
Description
Nixpkgs version
- Unstable (25.11)
Package name
nvim-treesitter
Upstream version
https://github.com/nvim-treesitter/nvim-treesitter/tree/main ? The developer has asked not to blindly do this - see my comment below.
Nixpkgs version
2025-05-24
Changelog
No response
Additional context
It looks like nvim-treesitter has changed to using main rather than master, and the current commit is from the master branch. They haven't updated the master branch in a few months other than to say they are archiving it.
The commit used is on the master branch and has a couple hundred missing commits from main.
nixpkgs/pkgs/applications/editors/vim/plugins/generated.nix
Lines 11249 to 11260 in 3e3afe5
| nvim-treesitter = buildVimPlugin { | |
| pname = "nvim-treesitter"; | |
| version = "2025-05-24"; | |
| src = fetchFromGitHub { | |
| owner = "nvim-treesitter"; | |
| repo = "nvim-treesitter"; | |
| rev = "42fc28ba918343ebfd5565147a42a26580579482"; | |
| sha256 = "1ck1qslxwi18qxrga68blvk1dg9j4jn65xiw8snq5pk06waksnq9"; | |
| }; | |
| meta.homepage = "https://github.com/nvim-treesitter/nvim-treesitter/"; | |
| meta.hydraPlatforms = [ ]; | |
| }; |
This causes some issues with lack of grammar updates.
I saw this referenced #411256 (comment) - but that was in an issue for treesitter not nvim-treesitter directly and has been closed.
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- I assert that this package update does not yet exist in an open pull request or in Nixpkgs Unstable.
- I assert that this is not a duplicate of any known issue.
- I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Activity
JonBoyleCoding commentedon Jun 10, 2025
Before blindly updating, the developer had this comment on my original issue:
nvim-treesitter/nvim-treesitter#7944 (comment)
[-]Update Request: nvim-treesitter `master` branch → `main` branch[/-][+]Update Request: nvim-treesitter `master` branch → `main?` branch[/+]JonBoyleCoding commentedon Jun 10, 2025
Just for reference, my original issue was that the GDScript highlights were outdated. I see there are a number of scripts in nixpkgs, so my issue is something different to this being outdated. I don't have time to read the scripts and understand what's going on right now.
guillermofbriceno commentedon Aug 13, 2025
Want to add that since the
veriloggrammar has switched tosystemverilogin bothnixpkgsandnvim-treesittermain, but notmaster, parsing verilog is currently broken.iofq commentedon Aug 14, 2025
if anyone would like to adopt the
mainbranch, it can be done by adding nvim-treesitter main branch to flake inputs:and using this overlay:
The buildPhase part is a bit of a hack (ideally you'd only copy grammars defined using withPlugins), and I'm not sure what this master->main migration would look like on the nixpkgs side, so I'll leave this as-is for now.
PerchunPak commentedon Aug 22, 2025
CC @NixOS/neovim
mrcjkb commentedon Aug 22, 2025
nvim-treesitter/nvim-treesitter#7895 (comment)
We should hold off on migrating in nixpkgs until nvim-treesitter has an official release. And when that happens, we should probably pin the release tags.
Perhaps we could create a nix-community nvim-treesitter-main overlay for users who want to use the main branch in the meantime...
iofq commentedon Oct 3, 2025
I wrote a nixpkgs overlay for those that want to use the main branch today:
https://github.com/iofq/nvim-treesitter-main
mrcjkb commentedon Dec 14, 2025
nvim-treesitter have now switched and made
maintheir default branch.According to their support policy:
They haven't published a 1.0 release (and I don't think they will for a long time), but I would say now is the time for us to make the switch in nixpkgs.
khaneliman commentedon Dec 14, 2025
I agree Marc, I was just posting about this in our nixvim chat because I came across it while testing #470251 and was gonna start working on migrating it.
EDIT: Unless someone has worked through it already and has stuff PR ready.