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

3 Airlines bars #238

Open
lucasmsoares96 opened this issue Sep 21, 2020 · 3 comments
Open

3 Airlines bars #238

lucasmsoares96 opened this issue Sep 21, 2020 · 3 comments

Comments

@lucasmsoares96
Copy link

When I go into Goyo mode with this...
:Goyo | :AirlineToggle
I see 3 Airlines bars

2020-09-21-154607_2880x1800_scrot

@jueqingsizhe66
Copy link

how to fix it ? I have the same problemw

@jueqingsizhe66
Copy link

My solution:

lua << EOF
require('lualine').hide()
EOF

function! s:goyo_enter()
  set noshowmode
  set noshowcmd
  set scrolloff=999
  colorscheme srcery

  Limelight 0.5


lua << EOF
  require('lualine').hide()
EOF
  " ...
endfunction

@Chris0lsen
Copy link

Chris0lsen commented Oct 11, 2024

For those of us using lazy, I added this to my goyo.lua:

return {
	{
		"junegunn/goyo.vim",
		keys = {
			{ "<leader>G", ":Goyo<CR>", desc = "Toggle Goyo" },
		},
		config = function()
			vim.api.nvim_create_autocmd("User", {
				pattern = "GoyoEnter",
				callback = function()
					vim.opt.showmode = false
					vim.opt.showcmd = false
					vim.opt.scrolloff = 999
					require("lualine").hide()
				end,
			})
			vim.api.nvim_create_autocmd("User", {
				pattern = "GoyoLeave",
				callback = function()
					vim.opt.showmode = true
					vim.opt.showcmd = true
					vim.opt.scrolloff = 5
					require("lualine").hide({ unhide = true })
				end,
			})
		end,
	},
}

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

3 participants