Skip to content

Feat(hlchunk): + mode#4137

Open
h8d13 wants to merge 8 commits into
micro-editor:masterfrom
h8d13:master
Open

Feat(hlchunk): + mode#4137
h8d13 wants to merge 8 commits into
micro-editor:masterfrom
h8d13:master

Conversation

@h8d13

@h8d13 h8d13 commented Jul 4, 2026

Copy link
Copy Markdown

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; hlchunk that defaults to indent for compatibility with bracket-less code languages. And re-uses existing findMatchingBrace for bracket mode, which already existed.

I also tried to match docs style, tests, and added to simple.micro in color blue. 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 Loc test 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

h8d13 added 8 commits July 4, 2026 02:59
* default: `indent` mode vs `bracket` mode for C styled langs

Signed-off-by: h8d13 <hadean-eon-dev@proton.me>
Signed-off-by: h8d13 <hadean-eon-dev@proton.me>
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.

1 participant