junegunn / goyo.vim

:tulip: Distraction-free writing in Vim
MIT License
4.49k stars 115 forks source link

:Goyo! removes background transparency #224

Open strogiyotec opened 4 years ago

strogiyotec commented 4 years ago

Good day. I'm using Goyo the latest version. When I run :Goyo command, it works as expected here is the screenshot image However, when I run :Goyo! to turn it off , it removes transparency from vim. image I use gruvbox with this option hi Normal guibg=NONE ctermbg=NONE in order to add transparent backfround ,seems like Goyo override this option . This is my vimconfig but i don't think that problem is here. How can I fix it ? Thank you

strogiyotec commented 4 years ago

For now I added this hook to my vim config. Is it supposed to work in this way ?


function! s:goyo_leave()
         hi Normal guibg=NONE ctermbg=NONE
endfunction
autocmd! User GoyoLeave nested call <SID>goyo_leave()