Skip to content

Treesitter fix#1799

Closed
kdave5 wants to merge 3 commits intonvim-lua:masterfrom
kdave5:treesitter-fix
Closed

Treesitter fix#1799
kdave5 wants to merge 3 commits intonvim-lua:masterfrom
kdave5:treesitter-fix

Conversation

@kdave5
Copy link

@kdave5 kdave5 commented Dec 19, 2025

Updated nvim-treesitter config to follow the stable 'master' branch (as opposed to the now default 'main' branch) as a temporary fix.

remove 
lazy-lock.json
changed treesitter to master for temp fix
@bewuethr
Copy link

There's also #1657 with all the changes to accommodate main.

'nvim-treesitter/nvim-treesitter',
branch = "master",
build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
Copy link

@adrianveen adrianveen Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just need to change .configs to .config on line 945 per this issue: #1771

Copy link

@clason clason Jan 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is WRONG, I don't understand why people keep repeating this nonsense. This PR is the ONLY correct fix(!).

(Transitioning to the main branch would be a breaking change for users, since that is effectively a different plugin with much reduced functionality (but much better maintainability.))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad - crossed it out.

@tjdevries
Copy link
Member

ok, i think i did the right fix. Sorry for delays.

@tjdevries tjdevries closed this Jan 27, 2026
@clason
Copy link

clason commented Jan 27, 2026

Note: It's unlikely that the master branch will be compatible with Nvim 0.12 when it is released (and nightlies before that, of course -- but if you run nightlies you are asking for breaking changes). It is also no longer compatible with the latest tree-sitter CLI (0.26.x, so you need to install <=0.25.10 to generate from grammar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants