Skip to content

feat(render): add per-depth context highlight groups#656

Draft
TheRickyZhang wants to merge 1 commit intonvim-treesitter:masterfrom
TheRickyZhang:line-highlights
Draft

feat(render): add per-depth context highlight groups#656
TheRickyZhang wants to merge 1 commit intonvim-treesitter:masterfrom
TheRickyZhang:line-highlights

Conversation

@TheRickyZhang
Copy link
Copy Markdown

Addresses issue #655

This currently hardcodes 8 context levels, as it is unlikely users will make use of more (falls back to base style). A possible improvement could be to implement a cycling mechanism if desired.

treesitter-context

I'm not sure how to test the row-by-row depth coloring systematically in tests, so if that is possible or desired, then I can add that. Additionally, I have not investigated many edge cases like terminal vs GUI colors and theme overrides.

@TheRickyZhang
Copy link
Copy Markdown
Author

^ I don't think the test failures are due to my changes? Could anyone confirm?

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