Neovim dashboard disappear after 0.5 seconds
nvim version: 0.6.0 tokyonight version: latest
vim.g.tokyonight_style = 'night'
vim.g.tokyonight_sidebars = { "qf", "vista_kind", "terminal", "packer" }
vim.g.tokyonight_dark_sidebar = true
vim.g.tokyonight_dark_float = true
vim.g.tokyonight_colors = {
bg_sidebar = '#1a1b26',
}
vim.cmd[[colorscheme tokyonight]]
https://user-images.githubusercontent.com/17645203/144701279-e84ca628-6aaa-4c7e-aa43-a29c5298656f.mov
I get the same.
My hunch is that this is the culprit: https://github.com/folke/tokyonight.nvim/blob/a5b3cbe750ed6a05a018ac81782bb01de512a6c9/lua/tokyonight/util.lua#L144
IIRC, autocmd ColorScheme forces a redraw that will hide the dashboard/default neovim banner.
Not sure what a fix would look like, but I think this does prevent plugins like alpha.nvim and nvim-dashboard from working correctly.
I can confirm this issue
However, nvim-dashboard works just fine.
I'm using nvim-dashboard together with TokyoNight without any issues.
@tuwuna where do you see this issue?
@jsec I don't think it has anything to do with that. That code is there simply to remove TN autocommands when switching to another colorscheme. Cleanup.
@folke ahh ok. Thanks for the correction. Love the scheme btw.
@folke Dashboard flash without using a dashboard plugin, as shown in OP's issue report.