-
Notifications
You must be signed in to change notification settings - Fork 39
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
Is there a way to hide tab/bufbar on initial nvim open, when only one buffer and file exists? #122
Comments
Sorry for making so many issues. I realize a couple of these could have been better placed in Discussions. |
There's an option called |
You can do something like this. Will probably add to the cookbook -- from the cookbook
local buf_cache = {} -- this
local BufferLine = utils.make_buflist(
TablineBufferBlock,
{ provider = " ", hl = { fg = "gray" } },
{ provider = " ", hl = { fg = "gray" } }, nil,
buf_cache -- this
)
vim.api.nvim_create_autocmd({"BufAdd", "BufDelete"}, {
callback = function()
if #buf_cache > 1 then
vim.o.showtabline = 2
else
vim.o.showtabline = 1
end
end
}) |
I apologise, the presented snippet does not fully work as intended. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The statusline and winbar both show the filename by default also, further reducing the utility of having it visible in this situation.
The text was updated successfully, but these errors were encountered: