2022-10-03 16:39:31 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
function M.config()
|
|
|
|
local status_ok, alpha = pcall(require, "alpha")
|
|
|
|
if not status_ok then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local dashboard = require'alpha.themes.dashboard'
|
|
|
|
|
|
|
|
dashboard.section.header.val = { "NeoVim", }
|
|
|
|
dashboard.section.buttons.val = {
|
|
|
|
dashboard.button("f", "Find File", ":Telescope find_files<cr>"),
|
|
|
|
dashboard.button("w", "Find Word", ":Telescope live_grep<cr>"),
|
2022-10-05 17:01:46 +00:00
|
|
|
dashboard.button("p", "Projects", ":Telescope projects<cr>"),
|
2022-10-03 16:39:31 +00:00
|
|
|
dashboard.button("o", "Recent Files", ":Telescope oldfiles<cr>"),
|
|
|
|
dashboard.button("e", "Open Tree", ":NvimTreeToggle<cr>"),
|
|
|
|
dashboard.button("q", "Quit", ":qa<cr>"),
|
|
|
|
}
|
|
|
|
|
|
|
|
alpha.setup(dashboard.config)
|
|
|
|
end
|
|
|
|
|
|
|
|
return M
|
|
|
|
|