Skip to content

fix(ui): restore highlights after colorscheme changes - #561

Merged
sudo-tee merged 1 commit into
sudo-tee:mainfrom
sainimal1ba-hue:fix-colorscheme-highlights-560
Nov 3, 2026
Merged

sudo-tee merged 1 commit into
sudo-tee:mainfrom
sainimal1ba-hue:fix-colorscheme-highlights-560

Conversation

@sainimal1ba-hue

Copy link
Copy Markdown
Contributor

Summary

Fixes #560.

Loading a colorscheme after opencode.setup() clears the plugin's highlight groups.

This change adds a ColorScheme autocmd to reapply the existing highlights while preserving custom overrides.

Testing

  • Verified highlight restoration after switching to habamax.
  • Added regression tests for colorscheme changes, custom highlights, and repeated setup.
  • Passed the full test suite and repository checks.

@sudo-tee

sudo-tee commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Thanks for the quick fix :)

@sudo-tee
sudo-tee merged commit c94d864 into sudo-tee:main Nov 3, 2026
15 of 16 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.

colorscheme clears opencode highlights

2 participants