return function() local db = require("dashboard") -- Fortune quote (supports multiline) local function quote() local handle = io.popen("fortune -s") local result = handle:read("*a") handle:close() local lines = { "" } for line in result:gmatch("[^\r\n]+") do table.insert(lines, line) end table.insert(lines, "") return lines end db.setup { theme = "hyper", config = { week_header = { enable = false }, header = { "│ ╲ │ │", "│ ╲ │ │", "│ │╲ ╲ │ │", "│ │ ╲ ╲│ │", "│ │ ╲ │", "│ │ ╲ │", " ", "Neovim v" .. vim.version().major .. '.' .. vim.version().minor .. '.' .. vim.version().patch, "  " .. os.date("%A, %B %d, %Y"), -- your custom date/day line "", "[TIP: To exit Vim, use a Sledgehammer!]", "" }, shortcut = { { icon = " ", desc = "New File", key = "n", action = "enew" }, { icon = " ", desc = "Find File", key = "f", action = "Telescope find_files" }, { icon = " ", desc = "Recent Files", key = "r", action = "Telescope oldfiles" }, { icon = "󰓢 ", desc = "Open Config", key = "c", action = "edit ~/.config/nvim/" }, { icon = "󰣪 ", key = "SMASH!", desc = "SLEDGEHAMMER!", action = "qa" }, }, packages = { enable = true -- set to true if you want plugin count display }, mru = { enable = true, -- set true if you want MRU files limit = 10, icon = " ", label = "Recent", cwd_only = false }, project = { enable = false, -- set true if you want project list limit = 8, icon = " ", label = "Projects", action = "Telescope find_files cwd=" }, footer = quote(), }, } end