Skip to content

bug: the copilot's highlight colors are not being set by the colorschemes #376

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

Closed
icristianhernandez opened this issue Mar 13, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@icristianhernandez
Copy link

Messing around with copilot.vim, I noticed the suggestions had a different color. I looked into it and found my color scheme (Catppuccin) sets custom colors for the CopilotSuggestion and CopilotAnnotation highlights. At first, I thought copilot.lua might use different names, which would explain why the integrations weren't working. But after checking the code (lua/copilot/highlight.lua), that's not the case because copilot.lua uses the same highlight names as copilot.vim.

It looks like the default link that the setup makes (copilot highlights to comments highlights) is overwriting or stopping the custom highlights from the color scheme from being applied. I can't say which of those two things is actually happening (or maybe another thing that I don't know).

@AntoineGS AntoineGS added the bug Something isn't working label Mar 23, 2025
@AntoineGS
Copy link
Collaborator

Let me know if the issue persists!

AntoineGS added a commit to AntoineGS/copilot.lua that referenced this issue Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants