This extension ports the main ideas of hlchunk.nvim to VS Code:
- indent guides for visible lines
- optional blank indentation fill
- current chunk highlighting based on indentation around the cursor
- gutter and line range highlighting for the current chunk
The VS Code API does not expose Neovim-style virtual text overlays or line-number highlight groups directly, so this implementation uses editor decorations and gutter markers. Chunk detection is indentation-based and does not require Tree-sitter.
Commands
HL Chunk: EnableHL Chunk: DisableHL Chunk: ToggleHL Chunk: Enable Chunk/HL Chunk: Disable ChunkHL Chunk: Enable Indent/HL Chunk: Disable IndentHL Chunk: Enable Blank/HL Chunk: Disable BlankHL Chunk: Enable Line Number Range/HL Chunk: Disable Line Number Range
Settings
All settings are under hlchunk.*. The most useful ones are:
hlchunk.enabledhlchunk.excludeLanguageshlchunk.maxFileSizehlchunk.indent.enabledhlchunk.blank.enabledhlchunk.chunk.enabledhlchunk.chunk.straighthlchunk.lineNum.enabled
Development
npm install
npm run compile
Open this folder in VS Code and run the extension host launch configuration, or press F5 after adding a standard extension debug launch config.
License
This project is distributed under the MIT License. It is a VS Code port inspired by hlchunk.nvim, which is also distributed under the MIT License.
The original hlchunk.nvim copyright notice is preserved in LICENSE and attribution details are listed in NOTICE.md.