nvimdev / dashboard-nvim

vim dashboard
MIT License
2.37k stars 193 forks source link

dashboard center does not show #311

Closed PalsFreniers closed 1 year ago

PalsFreniers commented 1 year ago

I use packer as my packet manager, and dashboard give me this result


                                                 ██████╗  █████╗ ███████╗██╗  ██╗██████╗  ██████╗  █████╗ ██████╗ ██████╗  
                                                 ██╔══██╗██╔══██╗██╔════╝██║  ██║██╔══██╗██╔═══██╗██╔══██╗██╔══██╗██╔══██╗ 
                                                 ██║  ██║███████║███████╗███████║██████╔╝██║   ██║███████║██████╔╝██║  ██║ 
                                                 ██║  ██║██╔══██║╚════██║██╔══██║██╔══██╗██║   ██║██╔══██║██╔══██╗██║  ██║ 
                                                 ██████╔╝██║  ██║███████║██║  ██║██████╔╝╚██████╔╝██║  ██║██║  ██║██████╔╝ 
                                                 ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝  ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═════╝  

                                                                 Please config your own center section 

                                                                         neovim loaded 35 packages

my packer config :

use {
        'glepnir/dashboard-nvim',
        event = 'VimEnter',
        config = function()
            require('dashboard').setup {
                theme = 'doom',
                shortcut_type = 'letter',
                config = {
                    header = {
                        ' ███╗   ██╗ ███████╗ ██████╗  ██╗   ██╗ ██╗ ███╗   ███╗',
                        ' ████╗  ██║ ██╔════╝██╔═══██╗ ██║   ██║ ██║ ████╗ ████║',
                        ' ██╔██╗ ██║ █████╗  ██║   ██║ ██║   ██║ ██║ ██╔████╔██║',
                        ' ██║╚██╗██║ ██╔══╝  ██║   ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║',
                        ' ██║ ╚████║ ███████╗╚██████╔╝  ╚████╔╝  ██║ ██║ ╚═╝ ██║',
                        ' ╚═╝  ╚═══╝ ╚══════╝ ╚═════╝    ╚═══╝   ╚═╝ ╚═╝     ╚═╝',
                    },
                    center = {
                        {
                            icon = '  ',
                            icon_hl = 'group',
                            desc = 'Personal Code Folder',
                            desc_hl = 'group',
                            key = 'b',
                            key_hl = 'group',
                            action = 'NERDTree /home/tidian/Documents/code/',
                        },
                    },
                    footer = {
                        '',
                        '',
                        '',
                        '',
                        '',
                        '                               NVIM session',
                        '',
                        '',
                        '',
                        '',
                        '',
                    },
                    preview = {
                        command = 'bash -c "cat $HOME/.splash"',
                        file_path = '',
                        file_height = 20,
                        file_width = 102,
                    },
                },
            }
        end,
        requires = {'nvim-tree/nvim-web-devicons'}
    }
glepnir commented 1 year ago

packercompile