junegunn / goyo.vim

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

Goyo, fzf and tabs issue. #266

Open jfab20 opened 2 years ago

jfab20 commented 2 years ago

I have the following map in my init.vim:

noremap <leader>o :call fzf#run({'source': 'find ~', 'window': {'width': 0.6, 'height': 0.6}, 'sink': 'tabedit' })<CR><CR>

This map just opens a fzf window and opens the selected file in a new tab.

Whenever I enter a file and use :Goyo, then activating the map with <leader>o opens a new terminal window in the middle of the screen as expected. Selecting a file however, causes a bunch of errors:

image

The bug is not present when I use 'sink':'e' insead of tabedit.

cyrillkuettel commented 6 months ago

@jfab20 I also use this command (fzf#run). Very useful, but I have one question. When I open a new file with this command, I have to press :Goyo again, do you know how to prevent this?

jfab20 commented 6 months ago

@jfab20 I also use this command (fzf#run). Very useful, but I have one question. When I open a new file with this command, I have to press :Goyo again, do you know how to prevent this?

I don't know unfortunately. I had too many issues with this plugin so I changed to https://github.com/shortcuts/no-neck-pain.nvim.

cyrillkuettel commented 6 months ago

Thank you, I might switch in the future.