local alpha = require('alpha')local dashboard = require("alpha.themes.dashboard") -- Load headerslocal headers = require("plugins.headers") -- Pick which header to usedashboard.section.header.val = headers["hatsune-miku"] dashboard.section.buttons.val = { dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"), dashboard.button("f", " Find file", ":lua require('fzf-lua').files() <CR>"), dashboard.button("t", " Browse cwd", ":NvimTreeOpen<CR>"), dashboard.button("r", " Browse src", ":e ~/.local/src/<CR>"), dashboard.button("s", " Browse scripts", ":e ~/scripts/<CR>"), dashboard.button("c", " Config", ":e ~/.config/nvim/<CR>"), dashboard.button("m", " Mappings", ":e ~/.config/nvim/lua/config/mappings.lua<CR>"), dashboard.button("p", " Plugins", ":PlugInstall<CR>"), dashboard.button("q", " Quit", ":q!<CR>"),} dashboard.section.footer.val = function() return vim.g.startup_time_ms or "[[ ]]"end dashboard.section.buttons.opts.hl = "Keyword"dashboard.opts.opts.noautocmd = truealpha.setup(dashboard.opts)
local alpha = require('alpha')
local dashboard = require("alpha.themes.dashboard")
-- Load headers
local headers = require("plugins.headers")
-- Pick which header to use
dashboard.section.header.val = headers["hatsune-miku"]
dashboard.section.buttons.val = {
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", " Find file", ":lua require('fzf-lua').files() <CR>"),
dashboard.button("t", " Browse cwd", ":NvimTreeOpen<CR>"),
dashboard.button("r", " Browse src", ":e ~/.local/src/<CR>"),
dashboard.button("s", " Browse scripts", ":e ~/scripts/<CR>"),
dashboard.button("c", " Config", ":e ~/.config/nvim/<CR>"),
dashboard.button("m", " Mappings", ":e ~/.config/nvim/lua/config/mappings.lua<CR>"),
dashboard.button("p", " Plugins", ":PlugInstall<CR>"),
dashboard.button("q", " Quit", ":q!<CR>"),
}
dashboard.section.footer.val = function()
return vim.g.startup_time_ms or "[[ ]]"
end
dashboard.section.buttons.opts.hl = "Keyword"
dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts)