function! s:goyo_enter()
set rnu
set nu
endfunction
function! s:goyo_leave()
set rnu
set nu
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()
noremap <leader>o :call fzf#run({'source': 'find ~', 'sink': 'e' , 'window': '30vnew'})<CR><CR>
When I enter Goyo, relative numbers are enabled, but when I do <leader>o and go to a different file with fzf, relative numbers are not enabled.
Reading previous issues I think there is some workaround to make Goyo remember settings when changing buffers but the simplest solution is to just to put let g:goyo_linenr=1 in vimrc.
I have the following config
When I enter Goyo, relative numbers are enabled, but when I do
<leader>o
and go to a different file with fzf, relative numbers are not enabled.