Add optional tree-sitter highlighting - #22
Closed
willfish wants to merge 2 commits into
Closed
Conversation
willfish
force-pushed
the
treesitter-syntax-highlighting
branch
from
July 6, 2026 10:50
c90bd73 to
1a2844d
Compare
willfish
marked this pull request as ready for review
July 6, 2026 10:50
Owner
|
Thanks for the pr! I have to check this. I have proper syntax hl without doing anything. |
Owner
Author
|
Interesting! I'll look into it but this wasn't working for me @sotte |
Author
|
Also appreciate you having a gander at this and thanks for putting this project together - I've used it for years/it makes giving training and presentations much more comfortable for me |
Owner
|
Appreciate the kind words! If you turn this into a non breaking change, I'll merge it. No harm :) |
Author
|
Closing as I think this is a my config issue |
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
Adds an optional
syntax_highlightingconfig for slide buffers.When enabled, presenting.nvim starts tree-sitter highlighting after rendering each slide. For markdown presentations this lets tree-sitter injections highlight fenced code blocks when the user has the relevant parsers installed.
Example config:
For markdown fenced code blocks, users need the
markdownandmarkdown_inlineparsers, plus parsers for the code block languages they use, such aslua,ruby,bash, orsql.📸 Preview
📝 Checklist
make alllocally and checked for errors.CHANGELOG.mdfile.