goyo.vim
goyo.vim copied to clipboard
Goyo enter and exit does not remove tmux
I was using below code to hide tmux while inside Goyo which was working until I recently updated neovim to v0.8.0. Is there a fix for this?
function! s:goyo_enter()
if executable('tmux') && strlen($TMUX)
silent !tmux set status off
silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
endif
set noshowmode
set noshowcmd
set scrolloff=999
Limelight
" ...
endfunction
Did you setup autocmd
s as well?
Yes, I use autocmd! User GoyoEnter nested call <SID>goyo_enter()
. I have this issue on both Mac and Linux recently.
What about the other lines of code in the function? (set ..., Limelight) Are they executed as expected?
Sorry tmux is hidden inside Goyo but the lualine and tab bar of neovim is not hidden. Refer to figure below:
Goyo doesn't know what lualine is. I can't update Goyo whenever a new statusline plugin comes into being. You have to call its API for disabling/enabling it on GoyoEnter
and GoyoLeave
.