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

Lualine is visible in Ataraxis mode #110

Open
aleksey-rowan opened this issue Jan 20, 2023 · 4 comments
Open

Lualine is visible in Ataraxis mode #110

aleksey-rowan opened this issue Jan 20, 2023 · 4 comments

Comments

@aleksey-rowan
Copy link

The minimalist mode properly hides the status line, but in the Ataraxis mode Lualine is still visible:

image

I have globalstatus for Lualine enabled and that renders the line at the top of the document as well in Ataraxis.

@devstefancho
Copy link

I set callback function for ataraxis mode

hide lualine when open ataraxis mode, and unhide lualine when quitting it

here is my config

local status, true_zen = pcall(require, "true-zen")
if not status then
  return
end

true_zen.setup({
  modes = {
    ataraxis = {
      callbacks = {
        open_pre = function()
          require("lualine").hide()
        end,
        close_pre = function()
          require("lualine").hide({ unhide = true })
        end,
      },
    },
  },
})

or maybe this is an another way (I didn't try it)

use({
	"Pocco81/true-zen.nvim",
	config = function()
		 require("true-zen").setup {
			-- your config goes here
			-- or just leave it empty :)
                        modes = {
                          ataraxis = {
                            callbacks = {
                              open_pre = function()
                                require("lualine").hide()
                              end,
                              close_pre = function()
                                require("lualine").hide({ unhide = true })
                              end,
                            },
                          },
                        },
		 }
	end,
})

@LamprosPitsillos
Copy link

I am also having this issue

@plum
Copy link

plum commented Mar 10, 2023

I mange to get lualine hiding well without callbacks requiring lualine.
The true-zen integrations with lualine make it simple, as shown in the README, serving to hide lualine in ataraxis, when lualine is set to true (the default is 'false')

I use that at the end of my config beginning with something like your suggested second (untried by yourself) method. I'm using lazy.vim, so I preferred 'return', rather than 'use'

return {
	"Pocco81/true-zen.nvim",
	config = function()
		 require("true-zen").setup( {
			-- your config goes here
			-- or just leave it empty :)

    integrations = {
        twilight = true, -- enable twilight (ataraxis)
        lualine = true, -- hide nvim-lualine (ataraxis)
      },
    })
  end,
}

Regards,
John

@rafo
Copy link

rafo commented Nov 10, 2023

return {
	"Pocco81/true-zen.nvim",
	config = function()
		 require("true-zen").setup( {
			-- your config goes here
			-- or just leave it empty :)

    integrations = {
        twilight = true, -- enable twilight (ataraxis)
        lualine = true, -- hide nvim-lualine (ataraxis)
      },
    })
  end,
}

OT but this could be a good starting point to show how to install this with lazy.vim and should be copied to the README.md of this project.

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

5 participants