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

Feat: Show tabline only when more than one tab #904

Open
chrisgrieser opened this issue Nov 29, 2022 · 2 comments
Open

Feat: Show tabline only when more than one tab #904

chrisgrieser opened this issue Nov 29, 2022 · 2 comments
Labels
new feature New feature or feature request

Comments

@chrisgrieser
Copy link

chrisgrieser commented Nov 29, 2022

Requested feature

similar to vim's default behavior, the tabline should only be shown when there is more than one tab. (or there should be an option for that)

Motivation

no reason to "waste" a line when only having one tab.


I tried using cond like this, but it seems that "tabs" creates a tabline, even if it is empty.

tabline = {
		lualine_a = {{
			"tabs",
			mode = 1,
			section_separators = "",
			cond = function () return fn.tabpagenr("$") > 1 end,
		}},
	},
@chrisgrieser chrisgrieser added the new feature New feature or feature request label Nov 29, 2022
@aerosol
Copy link

aerosol commented Jun 23, 2023

#395 (comment)

@theJian
Copy link

theJian commented Nov 8, 2023

I opened a proposal to add a new option for this, @chrisgrieser , let me know what you think.

francoisfreitag added a commit to francoisfreitag/dotfiles that referenced this issue Jun 12, 2024
It does not honor showtabline, the default tabline is fine.
nvim-lualine/lualine.nvim#904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

3 participants