-
Notifications
You must be signed in to change notification settings - Fork 34
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
Semshi stop working after source vimrc file. #70
Semshi stop working after source vimrc file. #70
Comments
This has been bothering me as well. A workaround I'm using is (using vim-plug as plugin manager):
This reloads the semshi plugin and it just works after re-sourcing vimrc. |
I did a bit more of study and found that any syntax or appearance-related commands would make Semshi broken. Specifically, the list is:
After having all of them not re-executed upon re-sourcing vimrc, the problem is gone. However I think we need more principled way of fixing this issue from semshi's end. If you're interested in how I patched my vimrc, please see the following commit: 82e17b4 |
When re-sourcing ~/.vimrc, Semshi stops working. To work around this bug, we avoid executing all syntax- or colorscheme-related vim configs for the second time (i.e., when re-sourced). See: numirias/semshi#70
Thanks a lot. |
Semshi stops too if I change colorscheme when already inside vim. Any way to solve this? Edit: I did try the given workaround, but since I am trying to change colorscheme, it didn't work. |
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.
This is triggered by using |
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 Co-authored-by: Daniel Hahler <[email protected]>
Fixed in my fork: wookayin#4 |
When I am having vim running with Semshi and source the vimrc file with
:so ~/.config/nvim/nvim.init
, Semshi stop running.No other commands, eg
:Semshi
can reenable Semshi. I have to restart vim for Semshi to work again.This is a little annoying if I have long working session open, or task running in neovim's terminal.
The text was updated successfully, but these errors were encountered: