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

fix(hl): use global namespace (closes #563) #590

Merged
merged 3 commits into from
Sep 15, 2024

Conversation

qdbp
Copy link
Contributor

@qdbp qdbp commented Sep 15, 2024

as per #563, using namespaces introduced an unwanted ordering dependency on when the base color scheme was set

Based on playing around with the split pane and reading the code, I'm pretty sure the input_ns namespace highlights did nothing, so everything to do with them was just removed (the removed winhighlight comment is probably when they went dead)

The hint_ns namespace is replaced with the AvantePopupHint highlight group, which by default links to NormalFloat

In the same vein, I added the AvanteInlineHint group to be able to style the hint that appears at the end of the line in visual mode, because keyword leads to quite obnoxious visuals by default imho.

Copy link
Collaborator

@aarnphm aarnphm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style ting

lua/avante/sidebar.lua Outdated Show resolved Hide resolved
@aarnphm aarnphm changed the title fixes 563. add AvantePopupHint and AvanteInlineHint hl groups fix(hl): use global namespace (closes #563) Sep 15, 2024
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
@aarnphm aarnphm merged commit de9f36f into yetone:main Sep 15, 2024
4 checks passed
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