wookayin / semshi

🌈 Semantic Highlighting for Python in Neovim
79 stars 5 forks source link

Re-define highlights on ColorScheme autocommand #4

Closed Stealthii closed 1 year ago

Stealthii commented 1 year ago

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 https://github.com/numirias/semshi/issues/70.

wookayin commented 1 year ago

Thanks! This is great to have.