junegunn / goyo.vim

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

When enabled, goyo creates empty buffers surrounding the current buffer in its window #276

Closed miguno closed 1 year ago

miguno commented 1 year ago

The problem: When goyo is enabled, it creates the "No Name" empty buffers as shown in the attached screenshot.

My question: Is there a way to disable or hide these empty buffers? Or are they required to place "margins" around the actual buffer one is working in?

(My issue is less the buffers themselves, but that they show up with their own status line, which pollutes the zen-like focus of goyo. Perhaps this is rather a neovim configuration issue on my side?)

Screenshot 2022-12-12 at 20 42 06
miguno commented 1 year ago

This issue here is perhaps related to https://github.com/junegunn/goyo.vim/issues/198.

In my case, however, the empty buffers stay on-screen regardless of whether the window has focus or not, or whether I have written to the main buffer or not.

Also, I am using lualine.nvim, not Airline.

(The comment https://github.com/junegunn/goyo.vim/issues/198#issuecomment-1065885240 on #198 is more similar to what I am experiencing.)

miguno commented 1 year ago

Solved by switching to https://github.com/folke/zen-mode.nvim/tree/main/lua/zen-mode. Sorry, it was easier for me to switch than to figure out how to configure goyo (or my surrounding neovim config) to fix the issue. I already spend a few hours on the problem before creating the GH issue here.