local dashboard = require("alpha.themes.dashboard") local function button(sc, txt, keybind, keybind_opts) local b = dashboard.button(sc, txt, keybind, keybind_opts) b.opts.hl = "Identifier" b.opts.hl_shortcut = "Identifier" return b end dashboard.section.buttons.val = { button("r", " > Recent files", ":Telescope oldfiles"), button("n", " > New file", ":ene startinsert "), button("f", " > Find files", ":Telescope find_files hidden=true"), button("u", " > Update plugins", ":PackerSync"), button("q", " > Quit Neovim", ":qa"), } dashboard.section.footer.val = require("alpha.fortune") dashboard.section.header.val = { [[ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓]], [[ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒]], [[▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░]], [[▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ ]], [[▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒]], [[░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░]], [[░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░]], [[ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ ]], [[ ░ ░ ░ ░ ░ ░ ░ ░ ]], [[ ░ ]], } dashboard.section.header.opts.hl = "Function" dashboard.section.footer.opts.hl = "Function" require("alpha").setup(require("alpha.themes.dashboard").opts)