goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.78k stars 104 forks source link

[FR] Allow to hide statusline and tabline #200

Closed xfzv closed 1 year ago

xfzv commented 1 year ago

It would be nice if we could disable statusline and tabline like with goolord/alpha-nvim to achieve a cleaner look:

Refs: 1 : 2

goolord commented 1 year ago

you can do that already, i don't know if it belongs as an option in the code since you can easily write autocmd User AlphaReady set showtabline=0 | autocmd BufUnload <buffer> set showtabline=2 or the lua equivalent https://github.com/goolord/alpha-nvim/blob/dafa11a6218c2296df044e00f88d9187222ba6b0/doc/alpha.txt#L339

xfzv commented 1 year ago

Sorry, I totally missed the FAQ. This works just fine:

vim.api.nvim_create_autocmd("User", {
    pattern = "AlphaReady",
    command = "set showtabline=0 | set laststatus=0",
})

Thank you!