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

Re-define highlights on ColorScheme autocommand #4

Merged
merged 1 commit into from
Dec 3, 2022

Conversation

Stealthii
Copy link

A rebase/fixup to @blueyed's excellent ColorScheme fix, against your semshi fork.


When using :colorscheme highlights are deleted, and need to be re-defined.

This wraps/moves this into semshi#init(), and triggers it on the ColorScheme autocommand.

It also wraps this and the conditional definition of the other autocommands in a new SemshiInit augroup, to not define the autocommands multiple times.

Fixes numirias#70.

When using `:colorscheme` highlights are deleted, and need to be
re-defined.

This wraps/moves this into `semshi#init()`, and triggers it on the
`ColorScheme` autocommand.

It also wraps this and the conditional definition of the other
autocommands in a new `SemshiInit` augroup, to not define the
autocommands multiple times.

Fixes numirias#70.
@wookayin wookayin merged commit d01b990 into wookayin:master Dec 3, 2022
@wookayin
Copy link
Owner

wookayin commented Dec 3, 2022

Thanks! This is great to have.

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.

Semshi stop working after source vimrc file.
3 participants