nvimdev / dashboard-nvim

vim dashboard
MIT License
2.29k stars 187 forks source link

No start screen at all #324

Closed kon3gor closed 1 year ago

kon3gor commented 1 year ago

Describe the bug I did everything as docs says, but I see nothing but default netrw when opening nvim.

To Reproduce Steps to reproduce the behavior: Here is my config (copy-pasted from docs)

require('dashboard').setup {
    theme = 'hyper',
    config = {
        week_header = {
            enable = true,
        },
        shortcut = {
            { desc = ' Update', group = '@property', action = 'Lazy update', key = 'u' },
            {
                icon = ' ',
                icon_hl = '@variable',
                desc = 'Files',
                group = 'Label',
                action = 'Telescope find_files',
                key = 'f',
            },
            {
                desc = ' Apps',
                group = 'DiagnosticHint',
                action = 'Telescope app',
                key = 'a',
            },
            {
                desc = ' dotfiles',
                group = 'Number',
                action = 'Telescope dotfiles',
                key = 'd',
            },
        },
    },
}

And here is my packer config

return require('packer').startup(function(use)
    use 'wbthomason/packer.nvim'

    use {
        'kyazdani42/nvim-tree.lua',
        requires = { 'kyazdani42/nvim-web-devicons' }
    }

    use {
        'gelguy/wilder.nvim',
        config = function() modues = { ':', '/', '?' } end,
    }

    use {
        'nvim-treesitter/nvim-treesitter',
        run = function() require('nvim-treesitter.install').update({ with_sync = true }) end,
    }

    use 'nvim-treesitter/nvim-treesitter-context'

    use {
        'nvim-telescope/telescope.nvim',
        requires = { { 'nvim-lua/plenary.nvim' } }
    }

    --LSP
    use "williamboman/mason.nvim"
    use "williamboman/mason-lspconfig.nvim"
    use "neovim/nvim-lspconfig"
    use "dart-lang/dart-vim-plugin"

    --cmp
    use { "hrsh7th/nvim-cmp" }
    use { "hrsh7th/cmp-nvim-lsp" }
    use { "hrsh7th/cmp-buffer" }
    use { "hrsh7th/cmp-path" }
    use "L3MON4D3/LuaSnip"
    use "saadparwaiz1/cmp_luasnip"

    --color scehmes
    use "savq/melange"

    --stuff
    use "ThePrimeagen/vim-be-good"
    use {
        'nvim-lualine/lualine.nvim',
        requires = { 'kyazdani42/nvim-web-devicons', opt = true }
    }
    use {
        'glepnir/dashboard-nvim',
        event = 'VimEnter',
        config = function() require("dash") end,
        requires = { 'nvim-tree/nvim-web-devicons' }
    }

end)

Full config (w/o dashboard) is here

Expected behavior Dashboard

Screenshots

Screenshot 2023-03-02 at 19 43 47
kon3gor commented 1 year ago

Also, Dashboard commands does nothing too

kon3gor commented 1 year ago

And https://github.com/mhinz/vim-startify works fine too

kon3gor commented 1 year ago

I've figured it out. You should do not jus :PackerInstall but also PackerCompile after installation.