Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goyo, fzf and tabs issue. #266

Open
jfab20 opened this issue May 8, 2022 · 3 comments
Open

Goyo, fzf and tabs issue. #266

jfab20 opened this issue May 8, 2022 · 3 comments

Comments

@jfab20
Copy link

jfab20 commented May 8, 2022

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
Copy link

@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
Copy link
Author

jfab20 commented Dec 20, 2023

@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
Copy link

cyrillkuettel commented Dec 20, 2023

Thank you, I might switch in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants