-- Startup dashboard --- @type LazyPluginSpec return { "goolord/alpha-nvim", config = function() local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") dashboard.section.header.val = { [[ __ ]], [[ ___ ___ ___ __ __ /\_\ ___ ___ ]], [[ / _ `\ / __`\ / __`\/\ \/\ \\/\ \ / __` __`\ ]], [[/\ \/\ \/\ __//\ \_\ \ \ \_/ |\ \ \/\ \/\ \/\ \ ]], [[\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\]], [[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]], } dashboard.section.buttons.val = { dashboard.button("e", " New file", ":ene startinsert "), dashboard.button("", "🔍 Find file", "Telescope find_files"), dashboard.button("", "𑪢 Grep files", "Telescope live_grep"), dashboard.button("l", "🛋 Lazy", ":Lazy"), dashboard.button("m", "📦 Mason", ":Mason"), dashboard.button("q", "ꭙ Quit NeoVim", ":qa"), } -- Fortune in footer dashboard.section.footer.val = require("alpha.fortune")() dashboard.config.opts.noautocmd = true vim.cmd([[autocmd User AlphaReady echo 'ready']]) alpha.setup(dashboard.config) end, }