Depend on nvim-treesitter-locals instead of nvim-treesitter:master - #253
Open
neeshy wants to merge 3 commits into
Open
Depend on nvim-treesitter-locals instead of nvim-treesitter:master#253neeshy wants to merge 3 commits into
neeshy wants to merge 3 commits into
Conversation
Retain backwards compatibility with nvim-treesitter:master otherwise Fixes RRethy#247
UrsaDK
added a commit
to UrsaDK/vim-illuminate
that referenced
this pull request
Mar 1, 2026
Merge RRethy#249 and RRethy#253 to resolve RRethy#247. Updates vim-illuminate to remain compatible with both the legacy nvim-treesitter `master` branch and the rewritten `main` branch, whose APIs and module layout differ substantially – several features that were previously included are now provided by separate modules. To ensure the treesitter provider attaches only when the required capabilities are actually available, the integration is made more defensive: parser availability, locals queries, and cursor node lookups are resolved dynamically based on the APIs present at runtime, and cached for further reuse. --------- Co-authored-by: neeshy <neeshy@tfwno.gf> Co-authored-by: dqnk <64268180+dqnk@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit allows users to migrate to nvim-treesitter:main. nvim-treesitter-locals is used as a dependency which provides a reimplementation of
find_definitionandfind_usagesfromnvim-treesitter.locals. Backwards compatibility with nvim-treesitter:master is maintained for users of neovim version 0.8 and below.