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 #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blueyed
Copy link
Contributor

@blueyed blueyed commented Sep 28, 2021

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 #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.
@DanielArndt
Copy link

Thanks @blueyed -- I tested this and it does fix my issue as reported in #90 (comment) (which would have been more appropriately reported as part of #70).

@Stealthii
Copy link

Can confirm this fix handles updates to syntax/colorscheme after load.

To test this PR's changes with VimPlug:

"Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
Plug 'blueyed/semshi', { 'branch': 'handle-ColorScheme', 'do': ':UpdateRemotePlugins' }

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