return { "goolord/alpha-nvim", config = function () local alpha = require'alpha' --local colours = require 'material.colors' vim.api.nvim_set_hl(0, "alphaheader", {fg = "#3661cf" }) --vim.api.nvim_set_hl(0, "alphafooter", {fg = colours.main.darkpurple }) local dashboard = require'alpha.themes.dashboard' dashboard.section.header.val = { [[ ░░░░░░░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░▒▓▒░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░░▒██▓░░░░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░▓████▓░░░░░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░▒██████▓░░░░░░░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░▓████████▒░░░░░░░░░░░░░░░░░ ]], [[░░░░░░░░░░░░░░▒███████████▓░░░░░░░░░░░░░░░░░]], [[░░░░░░░░░░░░░▓██████████████▒░░░░░░░░░░░░░░░]], [[░░░░░░░░░░░░▓████████████████▓░░░░░░░░░░░░░░]], [[░░░░░░░░░░░▓███████████████▓▓██▒░░░░░░░░░░░░]], [[░░░░░░░░░░▒████████████████▓░▒██▒░░░░░░░░░░░]], [[░░░░░░░░░░▒███████████████▓▒░░▓█▓░░░░░░░░░░░]], [[ ░░░░░░░░░▒███████████████▓░░░▓█▓▒░░░░░░░░░ ]], [[ ░░░░░░░░░░▓████████████████████▓░░░░░░░░░░ ]], [[ ░░░░░░░░▒▓██████████████████▓░░░░░░░░░ ]], [[ ░░░░░░░░░▓████████████████▒░░░░░░░░░ ]], [[ ░░░░░░░░▒▓██████████▓▒░░░░░░░░ ]], [[ ░░░░░░░░░░░░▒▒░░░░░░░░░░░░ ]], [[ ░░░░░░░░░░░░░░░░░░ ]], } dashboard.section.header.opts.hl = "alphaheader" dashboard.section.buttons.val = { dashboard.button( "e", " new file" , ":ene startinsert "), dashboard.button("f", " search file in cwd", ":FzfLua files"), dashboard.button("-", " explore cwd", ":Oil --float"), dashboard.button("l", " Lazy settings", ":Lazy"), dashboard.button("g", " GIT", ":LazyGit"), dashboard.button( "q", "󰅚 quit nvim" , ":qa"), } local handle = io.popen('fortune') local fortune = handle:read("*a") handle:close() dashboard.section.footer.val = { [["we define the boundaries of reality;]], [[they don't define us."]], [[ -Teferi]] } dashboard.section.footer.opts.hl = "alphafooter" dashboard.config.opts.noautocmd = true vim.cmd[[autocmd user alphaready echo 'ready']] alpha.setup(dashboard.config) end }