alpha-nvim icon indicating copy to clipboard operation
alpha-nvim copied to clipboard

Open Alpha on every new tab with autocmd

Open lockieluke opened this issue 3 years ago • 0 comments

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
})

lockieluke avatar Aug 04 '22 10:08 lockieluke