feat(health): add treesitter markdown parser check#207
Merged
YousefHadder merged 3 commits intomainfrom Feb 8, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a Treesitter Markdown parser availability check to the plugin’s :checkhealth markdown-plus diagnostics, helping users understand when markdown-plus can use Treesitter-based “smart” format detection versus regex fallback.
Changes:
- Add a Treesitter markdown parser check to the health report.
- Provide an installation suggestion (
:TSInstall markdown) when the parser is missing.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
lua/markdown-plus/health.lua:156
- Same issue here:
:TSInstall markdownmay not be available if nvim-treesitter isn’t installed. Suggest gating the hint on the:TSInstallcommand being present, or using more general wording about installing the markdown Tree-sitter parser.
health.info(
"Treesitter markdown parser not available (format detection will use regex fallback)",
{ "Install with :TSInstall markdown for improved format detection accuracy" }
)
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.
Add a treesitter markdown parser availability check to
:checkhealth markdown-plus.The
format/treesitter.luamodule uses treesitter for smart format detection (e.g., detecting bold/italic nodes). If the markdown parser isn't installed, it silently falls back to regex. This health check informs users about the status and suggests installing the parser for improved accuracy.