VS Code Extensions
HL Chunk

HL Chunk

by m1skam

Highlight indentation guides, blank indentation, current chunk and its gutter range in VS Code.

Downloads

8

Rating

— (0)

Version

0.0.4

Last updated

Jun 26, 2026

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: Enable
  • HL Chunk: Disable
  • HL Chunk: Toggle
  • HL Chunk: Enable Chunk / HL Chunk: Disable Chunk
  • HL Chunk: Enable Indent / HL Chunk: Disable Indent
  • HL Chunk: Enable Blank / HL Chunk: Disable Blank
  • HL Chunk: Enable Line Number Range / HL Chunk: Disable Line Number Range

Settings

All settings are under hlchunk.*. The most useful ones are:

  • hlchunk.enabled
  • hlchunk.excludeLanguages
  • hlchunk.maxFileSize
  • hlchunk.indent.enabled
  • hlchunk.blank.enabled
  • hlchunk.chunk.enabled
  • hlchunk.chunk.straight
  • hlchunk.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.

Related extensions