local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
return
end
local
local datetime = os.date(" %m-%d-%Y %H:%M:%S")
local version = vim.version()
local nvim_version_info = " v" .. version.major .. "." .. version.minor .. "." .. version.patch
return datetime .. " Running NixVim " .. nvim_version_info
end
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
[[ ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗]],
[[ ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║]],
[[ ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║]],
[[ ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║]],
[[ ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║]],
[[ ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝]],
}
dashboard.section.buttons.val = {
dashboard.button("<leader> e n", " New File", ":ene <CR>"),
dashboard.button("<leader> f h", " Recently Files", ":Telescope oldfiles <CR>"),
dashboard.button("<leader> f t", " Find Text", ":Telescope live_grep <CR>"),
dashboard.button("<leader> c", " X Quit Neovim", ":qa<CR>"),
}
dashboard.section.footer.val = footer()
dashboard.opts.opts.noautocmd = true