Skip to content

Conversation

@dtracz
Copy link

@dtracz dtracz commented Sep 27, 2025

Using nvim-treesitter-context for C++ and code style with braces in separate lines I found multiple lines displaying only single '{'. This makes context window taking needlessly many lines in nested constructions and just looks ugly.
I found no way in the config to hide them (if I just missed it I'm sorry, please let me know) so I decided to add my own.
This also enables user to hide any lines according to their needs by specifying proper regular expression for capturing them.

@lewis6991 lewis6991 closed this Sep 28, 2025
@lewis6991
Copy link
Member

No sorry. Won't be adding features like that.

If you want the contexts to be different then you need to define your own queries that exclude the {

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.

2 participants