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

local icons = require 'user.icons'

dashboard.setup({
    theme = 'hyper', --  theme is doom and hyper default is hyper
    disable_move = false, --  defualt is false disable move keymap for hyper
    shortcut_type = 'letter', --  shorcut type 'letter' or 'number'
    change_to_vcs_root = false, -- default is false,for open file in hyper mru. it will change to the root of vcs
    hide = {
        statusline = false, -- hide statusline default is true
        tabline = false, -- hide the tabline
        winbar = false, -- hide winbar
    },
    config = {
        week_header = {
            enable = true,
        },
        packages = { enable = true }, -- show how many plugins neovim loaded
        project = { enable = true, limit = 8 },
        mru = { limit = 8 },
        footer = { icons.ui.Rocket .. ' Build, Ship, Innovate with nvim2k! ' .. icons.ui.Vim },
        shortcut = {
            {
                desc = icons.ui.Package .. 'Plugins',
                group = '@property',
                action = 'Lazy',
                key = 'p',
            },
            {
                desc = icons.ui.Gear .. 'Mason',
                group = '@property',
                action = 'Mason',
                key = 'm',
            },
            {
                desc = icons.ui.Vim .. 'Config',
                group = '@property',
                action = 'e ~/.config/nvim/lua/installed.lua',
                key = 'e',
            },
            {
                desc = icons.ui.Search .. 'Files',
                group = 'Label',
                action = 'Telescope find_files',
                key = 'f',
            },
            {
                desc = icons.ui.Check .. 'Todo',
                group = 'Label',
                action = 'Telekasten goto_today',
                key = 'd',
            },
            {
                desc = icons.ui.NewFile .. 'New File',
                group = 'Label',
                action = 'enew',
                key = 'n',
            },
            {
                desc = icons.ui.Power .. 'Exit',
                group = 'Action',
                action = 'quit',
                key = 'q',
            },
        },
    },
})
