Closed junegunn closed 9 years ago
I like solution 2)! Could you please provide a patch. Thanks!
Hi, just to let you know, Goyo now recommends using GoyoEnter
and GoyoLeave
events instead of g:goyo_callbacks
for customization. Since we can now register any number of custom callbacks to those events, this issue can be easily solved.
Related: https://github.com/junegunn/goyo.vim/pull/11 (/cc @leeor)
Hi, currently zenroom2 defines
g:goyo_callbacks
even when it's already defined in .vimrc, so the user cannot further customize the Goyo window when zenroom2 is installed.I think there are two approaches you can take
g:goyo_callback
when it's already definedThe first option is simpler, but the documentation should mention that the user should explicitly call
g:zenroom_goyo_before
andg:zenroom_goyo_after
in his callback functions, as described in https://github.com/junegunn/goyo.vim/pull/11#issuecomment-31337259The second approach is also trivial to implement.
The advantage of this approach is that the user doesn't need to do anything. But it could be confusing when the user updates or changes his callback function after zenroom2 is loaded (less likely though)