nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

Flickering On Start #352

Closed AndreM222 closed 1 year ago

AndreM222 commented 1 year ago

Sorry for the new bug report after another 😭. Thank you for your patience and good job with all your plugins.

Tends to be a fast flicker like vim wants to load the default startup and changes to dashboard.

my configs are the following:

Startup plugin

https://github.com/AndreM222/Windows-Dotfiles/blob/be551779a09be90f21c98b411823d91eb73df7d7/nvim/lua/andrem222/plugins.lua#L19

Custom configs

https://github.com/AndreM222/Windows-Dotfiles/blob/main/nvim/after/plugin/startup.lua

glepnir commented 1 year ago

IDK what the bug is. andy when you got bug please try a min config to reproduce.

AndreM222 commented 1 year ago

But I did send the config. one link I marked the part of the code that shows how is being installed and the other link is the custom configuration.

Link 1


local status, packer = pcall(require, 'packer')
if (not status) then
    print("Packer Is Not Installed")
    return
end

vim.cmd [[packadd packer.nvim]]

packer.startup(function(use)
    use {
        'glepnir/dashboard-nvim',
        event = 'VimEnter',
        requires = { 'nvim-tree/nvim-web-devicons' }
    }
end)

Link 2

local status, startup = pcall( require ,'dashboard' )
if (not status) then return end

startup.setup({
    config = {
        header ={
            ' ███╗   ██╗ ███████╗ ██████╗  ██╗   ██╗ ██╗ ███╗   ███╗',
            ' ████╗  ██║ ██╔════╝██╔═══██╗ ██║   ██║ ██║ ████╗ ████║',
            ' ██╔██╗ ██║ █████╗  ██║   ██║ ██║   ██║ ██║ ██╔████╔██║',
            ' ██║╚██╗██║ ██╔══╝  ██║   ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║',
            ' ██║ ╚████║ ███████╗╚██████╔╝  ╚████╔╝  ██║ ██║ ╚═╝ ██║',
            ' ╚═╝  ╚═══╝ ╚══════╝ ╚═════╝    ╚═══╝   ╚═╝ ╚═╝     ╚═╝',
            '                                                       ',
        },
        shortcut = {
            {
                desc = ' Files',
                group = 'Label',
                action = 'BrowseFiles',
                key = 'f',
            },
            {
                desc = ' Keymaps',
                group = 'DiagnosticHint',
                action = 'Telescope keymaps',
                key = 'k',
            },
            {
                desc = ' Dotfiles',
                group = 'Number',
                action = 'Telescope file_browser cwd=$HOME/Appdata/local/nvim', -- Change to your dotfiles path
                key = 'd',
            },
            {
                desc = '󰝒 New File',
                group = 'DiagnosticWarn',
                action = 'ene ',
                key = 'e',
            }
        },
        packages = { enable = false },
        footer = {
            "",
            "NVIM v" .. vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch
        }
    }
})
glepnir commented 1 year ago

Tends to be a fast flicker like vim wants to load the default startup and changes to dashboard.

IDK what you mean. so try to use a min config that only have dashboard plugin to reproduce your problem then show me a gif or video.

AndreM222 commented 1 year ago

hmmm I reinstalled of my plugins to see if it had something to do with that and now seems to work fine. sorry for the trouble. thanks for the help

AndreM222 commented 1 year ago

it seems the bug came from lualine.

The plugin seems to remove the startup screen from neovim at start and is probably the reason of the flicker of dashboard.

Is there a way to fix it?

glepnir commented 1 year ago

hmm I don't use that plugin .not sure what does it do and for stl I don't think anyone need a heavy plugin

confusedkernel commented 1 year ago

I'm having the same issue, @AndreM222 did you find a solution to it? :(

AndreM222 commented 1 year ago

I'm having the same issue, @AndreM222 did you find a solution to it? :(

No solution has been found

glepnir commented 1 year ago

not sure what does this happen on new version of dashboard. but when it's complete you can test new version pr.