local alpha = require("alpha") local dashboard = require("alpha.themes.dashboard") -- local icons = require("user.utils").icons -- local utils = require("user.utils") local datetime = os.date(" %H:%M. ") local num_plugins_loaded = require("lazy").stats().loaded dashboard.section.header.val = require("nami.utils.headers") dashboard.section.buttons.val = { dashboard.button("i", " New file", "enewi"), dashboard.button( "o", " Recent Files", "Telescope oldfiles" ), dashboard.button( "f", " Find", " pf" ), dashboard.button( "e", " Explorer", "Explore" ), dashboard.button( "c", " Neovim config", "e ~/.config/nvim | cd %:p:h" ), dashboard.button("l", " Lazy", "Lazy"), dashboard.button("q", " Quit NVIM", ":qa"), } local footer = { type = "text", val = { num_plugins_loaded .. " plugins loaded." }, opts = { position = "center", hl = "Comment" }, } -- local bottom_section = { -- type = "text", -- val = "Hi " -- .. utils.get_user() -- .. "," -- .. " It's" -- .. datetime -- .. "How are you doing today?", -- opts = { -- position = "center", -- }, -- } local section = { header = dashboard.section.header, -- bottom_section = bottom_section, buttons = dashboard.section.buttons, footer = footer, } local opts = { layout = { { type = "padding", val = 8 }, section.header, { type = "padding", val = 2 }, section.buttons, { type = "padding", val = 1 }, -- section.bottom_section, -- { type = "padding", val = 1 }, section.footer, }, } alpha.setup(opts)