local status_ok, alpha = pcall(require, "alpha") if not status_ok then return end local dashboard = require("alpha.themes.dashboard") dashboard.section.header.val = { [[ ]], [[ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ]], [[ ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ]], [[ ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ]], [[ ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ]], [[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ]], [[ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]], [[ ]], } dashboard.section.buttons.val = { -- dashboard.button("e", " New file", ":ene startinsert "), -- dashboard.button("p", " Find project", ":Telescope projects "), -- dashboard.button("t", " Find text", ":Telescope live_grep "), -- dashboard.button("d", "✗ Delete session", "SessionsManager delete_session"), dashboard.button("s", " Sessions", "SessionManager load_session"), dashboard.button("r", " Recent", ":Telescope oldfiles "), dashboard.button("f", " Find", ":Telescope find_files "), dashboard.button("c", " Config", ":e $MYVIMRC "), dashboard.button("i", " Info", "e ~/.config/CheatSheet.md"), dashboard.button("q", " Quit", ":qa"), } local function footer() -- NOTE: requires the fortune-mod package to work -- local handle = io.popen("fortune") -- local fortune = handle:read("*a") -- handle:close() -- return fortune return "" end dashboard.section.footer.val = footer() dashboard.section.footer.opts.hl = "Type" dashboard.section.header.opts.hl = "Include" dashboard.section.buttons.opts.hl = "Keyword" dashboard.opts.opts.noautocmd = true -- vim.cmd([[autocmd User AlphaReady echo 'ready']]) alpha.setup(dashboard.opts)