NvChad / NvChad

Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.

Home Page:https://nvchad.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hide tabufline if no buffer?

ckt114 opened this issue · comments

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
I’ve configured nvim to open alpha when the last buffer is closed but the tabufline still show which is a diff color than alpha which is quite tacky. Is there a way to hide tabufline and only show it if there’s a buffer?

Describe alternatives you've considered
I’ve read the code in ui repo but couldn’t figure out a way to do it.

Additional context
Add any other context or screenshots about the feature request here.

Screenshot
Maybe a screenshot of the feature

make an autocmd which checks number of buffers ( if its 0 + unamed ) , you can check the length of vim.t.bufs and then use showtabline option to toggle tabline