fix(nvim): align Tree-sitter with Neovim 0.12 - #27
Draft
bupd wants to merge 1 commit into
Draft
Conversation
Signed-off-by: Prasanth Baskar <prasanth@8gears.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.
Summary
nvim-treesitterfrom the obsoletemasterAPI to the supportedmainAPI for Neovim 0.12markdown_inlinemainmaincommitRoot cause
The configuration was running Neovim 0.12 with the old
nvim-treesitterimplementation. Markdown fenced-code injections then passed multi-node captures through compatibility directives written for the earlier query API, causing repeatedattempt to call method 'range' (a nil value)errors from both the Tree-sitter decoration provider andrender-markdown.nvim.Impact
Markdown files with fenced code blocks render normally again without repeated redraw errors. Parser versions will remain aligned with plugin query versions through Lazy's
:TSUpdatebuild hook.The rewritten plugin requires Tree-sitter CLI 0.26.1 or newer; validation used 0.26.9.
Validation
luac -p .config/nvim/lua/plugins/treesitter.luanvim --headless README.md '+sleep 2' '+messages' '+qa!'git diff --check