Feat(hlchunk): + mode#4137
Open
h8d13 wants to merge 8 commits into
Open
Conversation
* default: `indent` mode vs `bracket` mode for C styled langs Signed-off-by: h8d13 <hadean-eon-dev@proton.me>
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.
Hi :) Micro fan here.
I always wanted a similar plugin to shellraining/hlchunk.nvim But since the plugin system does not expose render internals, I was not able to do it in lua.
The PR gives 1 runtime option with 2 modes;
hlchunkthat defaults toindentfor compatibility with bracket-less code languages. And re-uses existingfindMatchingBraceforbracketmode, which already existed.I also tried to match docs style, tests, and added to
simple.microin colorblue. And tested the few obvious edge cases.(Cf. small delay when cursor is currently traveling, to not spam animations). I also tried to isolate the logic as much as possible. (Also did not touch pre-existing
Loctest warnings)Disclosure: I used the nvim plugin above as a reference; so most of the credits should be to user @shellRaining, plus I did use Claude 5 to help with debugging, happy to do any follow-up or let maintainers edit directly (if this this PR is desired).
Preview:
Screencast_20260704_121455.webm