vimPlugins.nvim-treesitter: master -> main update#470883
vimPlugins.nvim-treesitter: master -> main update#470883HeitorAugustoLN merged 1 commit intoNixOS:masterfrom
Conversation
I was working on a PR for this but got distracted watching my Packers season pretty much end... Just bump the package in this PR instead of making a timing thing. Otherwise I can push the update to your branch. |
|
Ok, I'll update it |
|
Can you run the grammars update too |
5ae4657 to
2a358b8
Compare
|
It should also have a module skip for a meta module iirc |
2a358b8 to
bad5aeb
Compare
|
Not at my computer atm, can you check if the tests need updating. I remember a workaround implemented when we first started updating based on main. |
|
|
bad5aeb to
c10be1b
Compare
|
Only the first test required a fix, everything else built just fine |
c10be1b to
fcb979f
Compare
|
|
Looks like https://github.com/nvim-treesitter/nvim-treesitter-refactor (doesn't pass build since it's incompatible) got archived and replaced with https://github.com/nvim-treesitter/nvim-treesitter-locals. We can just create an alias for refactor, for now. |
PerchunPak
left a comment
There was a problem hiding this comment.
The parser and queries for Nix are still the same, I wouldn't consider it a blocker just because of performance issues that are unrelated to this update
Even if it is unrelated to updating nvim-treesitter itself, the issue happens only after moving to the main branch. So this is a blocker; the performance regression makes working with relatively big Nix files painful.
Editing large Nix files like the generated vim plugins and Lua package sets has always been slow and painful for me - and I'm still using nvim-treesitter on nixpkgs-unstable. I don't think the majority of Nix users will be spending a lot of time in large files like the generated ones in nixpkgs. local file_size = vim.fn.getfsize(file_path)
if file_size < 100 * 1024 then
vim.treesitter.start()
endEdit: Even without any Nix queries installed, I get really bad performance on Edit2: Using neovim-unwrapped with just the nix parser and the queries on the rtp:
|
Are you talking about syntax highlighting or LSP/auto-formatting/etc? The latter is expected to be slow
My colorscheme (catppuccin) doesn't even bother setting colors for non-treesitter highlighting :( (or sets it incorrectly) Anyway, thanks for the work on those queries! |
|
Found the problematic query and opened a PR with a fix:
Tree-sitter related features in general.
I use catppuccin too. I just disable all syntax highlighting and tree-sitter related things in large files. |
c21d6c5 to
45ce741
Compare
|
nvim-treesitter/nvim-treesitter#8378 fixed performance issues for me |
PerchunPak
left a comment
There was a problem hiding this comment.
Issues for me have also been resolved, thanks @mrcjkb!
The only blocker for my approval is https://github.com/NixOS/nixpkgs/pull/470883/changes#r2644986136
45ce741 to
71f1b82
Compare
|
Thanks all for your hard work on this plus upstream fixes! |
|
|
The release notes reference a |
|
@kfiz @gigamonster256 we forgot to merge #472119 so most of the plugins that still depend on nvim-treesitter are broken 🫤 If you can, don't update yet if you don't want to migrate right now |
nvim-treesitter now defaults to the main branch, which have many breaking changes, including not installing queries by default, so we need to install them, when specified.
I manually updated nvim-treesitter to test it, and it works fine besides the missing grammars, them being:
ecma,jsxandhtml_tags.Closes #415438
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.