alpha-nvim
alpha-nvim copied to clipboard
Open Alpha on every new tab with autocmd
Discussed in https://github.com/goolord/alpha-nvim/discussions/133
Originally posted by lockieluke August 4, 2022 I tried making an auto command function to open alpha on each new tab I open but it didn't work, I am pretty sure that the function is actually triggered when a tab is opened but it just doesn't work
local alpha_start_group = vim.api.nvim_create_augroup("AlphaStart", { clear = true })
vim.api.nvim_create_autocmd("TabNew", {
callback = function()
alpha.start()
end,
group = alpha_start_group,
buffer = 0
})