Closed khughitt closed 9 years ago
Thanks for the detailed report.
It looks like it's an issue of hemisu rather than a bug of Goyo or Limelight. If you check the value of &background
after starting Vim with the attached vimrc, you'll notice that it's incorrectly set to light
. So if you colorscheme hemisu
again, then the light version will take place. (Goyo simply reloads the current color scheme on exit) This is not the case with the other color schemes, such as seoul256 which I use. You might want to file an issue on the issue tracker of hemisu. The current workaround is to force-reset color scheme in GoyoAfter function.
function! GoyoAfter()
Limelight!
set background=dark
colorscheme hemisu
endfunction
Thanks for the quick response and work-around! It looks like you are indeed correct and the issue lies with the hemisu theme. I will report it upstream. Thanks!
When toggling limelight on/off when using a dark theme, I noticed that the theme is not properly restored upon disabling limelight.
For example, using the
vimrc
file below, turning on limelight works fine, but turning it off results in a light theme, and requires one to both set the background to dark and reload the theme (e.g. hemisu) to restore it to the previous state.~/.vimrc
Any suggestions? I suppose I could save the theme and background state as variables and reload them after toggling Goyo off, but I thought I would check with you first in case there is a better upstream fix.
Vim version