junegunn / goyo.vim

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

Guidance on showing lightline.vim #212

Closed capaldo closed 4 years ago

capaldo commented 4 years ago

I tried combing through the issues but didn't see anything. Could anyone point me in the right direction on how to keep lightline.vim shown when calling Goyo?

yunlingz commented 4 years ago

I tried combing through the issues but didn't see anything. Could anyone point me in the right direction on how to keep lightline.vim shown when calling Goyo?

function! s:goyo_enter()
  silent! call lightline#enable()
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
capaldo commented 4 years ago

when I enter goyo, the lightline bar appears with gaps

image
yunlingz commented 4 years ago

when I enter goyo, the lightline bar appears with gaps

image

It's a new buf window on top, like those on left and right, so lightline will be there.

tmp

check https://github.com/junegunn/goyo.vim/blob/3e129198bba7d6b50406902002ad7d213a6cccaa/autoload/goyo.vim#L85-L106 and https://github.com/junegunn/goyo.vim/blob/3e129198bba7d6b50406902002ad7d213a6cccaa/autoload/goyo.vim#L65-L83.