Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: TreesitterContext support #89

Closed
Silzinc opened this issue Dec 9, 2024 · 3 comments · Fixed by #96
Closed

feature: TreesitterContext support #89

Silzinc opened this issue Dec 9, 2024 · 3 comments · Fixed by #96
Labels
done Done implementation enhancement New feature or request

Comments

@Silzinc
Copy link

Silzinc commented Dec 9, 2024

Is your feature request related to a problem? Please describe.

Using https://github.com/nvim-treesitter/nvim-treesitter-context, the context title is cleared and therefore looks like regular lines of code, which is rather confusing.

Describe the solution you'd like

Set a background color for TreesitterContext, typically dark_gray.

Describe alternatives you've considered

I tried setting TreesitterContext = colors.dark_gray in the options, as well as creating an autocommand to set this on colorscheme call, but no can do.

Note that setting the hl manually in the vim cmdline during session works fine.

Additional context

No response

@Silzinc Silzinc added the enhancement New feature or request label Dec 9, 2024
@cpea2506 cpea2506 added the in progress In progress of implementation label Feb 18, 2025
@cpea2506
Copy link
Owner

cpea2506 commented Feb 18, 2025

Currently, I have these colors in mind. How do you feel about them? The goal is to create a distinct blend between normal and transparent backgrounds.

Normal Background

Image

Transparent Background

Image

@Silzinc
Copy link
Author

Silzinc commented Feb 18, 2025

Thank you for considering my request! Looks pretty neat imo. I am used to having a lighter bg for TreesitterContext (looking at the normal bg case) but it would certainly make it hard to read at this point, and this seems fairly readable.

@cpea2506
Copy link
Owner

Thank you for your feedback! I've updated the colorscheme as planned. If you have any other suggestions, feel free to let me know. Sorry for the long wait! 😄

@cpea2506 cpea2506 added done Done implementation and removed in progress In progress of implementation labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Done implementation enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants