When multiple context entries are displayed, it can be difficult to visually distinguish between nesting levels, particularly when a single entry can span multiple lines, since everything shares the same TreesitterContext highlight group.
Proposed Solution: per-depth highlight groups
- Expose highlight groups like TreesitterContextLevel1, TreesitterContextLevel2, etc., allowing users to set distinct background colors per nesting level.
Implementation Notes
- I have not looked at the code too deeply, but the depth information seems to already available during tree-sitter traversal.
- Mostly use nvim_buf_add_highlight() with depth-based highlight groups?
Would this be helpful and feasible?
When multiple context entries are displayed, it can be difficult to visually distinguish between nesting levels, particularly when a single entry can span multiple lines, since everything shares the same TreesitterContext highlight group.
Proposed Solution: per-depth highlight groups
Implementation Notes
Would this be helpful and feasible?