Skip to content

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

Closed
@icristianhernandez

Description

@icristianhernandez

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions