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: preserve PrecognitionHighlight through colorscheme changes #90

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

TymekDev
Copy link
Contributor

I have taken a look what autocmds I have for ColorScheme. Turns out quite a few plugins have callbacks to re-setup their highlights. I loosely based this solution on oil.nvim and gitsigns.nvim.

@tris203 FYI I haven't run or taken a look at the tests yet.

Closes #89

@TymekDev
Copy link
Contributor Author

@tris203 tests passed locally for me. However, as I developed them, I initially had this block at the top of describe("e2e tests", ...) and the "auto commands are set" test was failing. I haven't looked into it, but perhaps changing the colorscheme messes with other things too?

@tris203 tris203 merged commit 19d9706 into tris203:main Oct 29, 2024
10 checks passed
@tris203
Copy link
Owner

tris203 commented Oct 29, 2024

Thanks!

@TymekDev TymekDev deleted the fix/preserve-highlights branch October 29, 2024 21:58
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.

Highlighting stops working on a colorscheme change
2 participants