local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") -- Set header dashboard.section.header.val = { " ", " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ", " ", } -- Set menu dashboard.section.buttons.val = { dashboard.button("e", " > New File", "ene"), dashboard.button("SPC fe", " > Toggle file explorer", "NvimTreeToggle"), dashboard.button("SPC ff", "󰱼 > Find File", "Telescope find_files"), dashboard.button("SPC lg", " > Find Word", "Telescope live_grep"), dashboard.button("SPC wr", "󰁯 > Restore Session For Current Directory", "SessionRestore"), dashboard.button("q", " > Quit NVIM", "qa"), } -- Send config to alpha alpha.setup(dashboard.opts) -- Disable folding on alpha buffer vim.cmd([[autocmd FileType alpha setlocal nofoldenable]])