Skip to content

Native treesitter preview fallback#180

Open
madlep wants to merge 3 commits into
kevinhwang91:mainfrom
madlep:native-treesitter-preview-fallback
Open

Native treesitter preview fallback#180
madlep wants to merge 3 commits into
kevinhwang91:mainfrom
madlep:native-treesitter-preview-fallback

Conversation

@madlep

@madlep madlep commented May 11, 2026

Copy link
Copy Markdown

When using native neovim treesitter, and https://github.com/romus204/tree-sitter-manager.nvim (or something else similar, or manual file handling) to manage treesitter parsers after "the drama", bqf previews don't have treesitter syntax highlighting.

Fix this by tolerating nvim-treesitter.parsers not being present, and let the existing logic do it's thing.

It looks like this is the way that code was supposed to work, but because initialized is always false, it was never setting up the fallback logic to use native treesitter functions.

Comment thread lua/bqf/preview/treesitter.lua Outdated
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.

2 participants