32 lines
1.9 KiB
Lua
32 lines
1.9 KiB
Lua
local dashboard = require("alpha.themes.dashboard")
|
|
local function button(sc, txt, keybind, keybind_opts)
|
|
local b = dashboard.button(sc, txt, keybind, keybind_opts)
|
|
b.opts.hl = "Identifier"
|
|
b.opts.hl_shortcut = "Identifier"
|
|
return b
|
|
end
|
|
|
|
dashboard.section.buttons.val = {
|
|
button("r", " > Recent files", ":Telescope oldfiles<CR>"),
|
|
button("n", " > New file", ":ene <BAR> startinsert <CR>"),
|
|
button("f", " > Find files", ":Telescope find_files hidden=true<CR>"),
|
|
button("u", " > Update plugins", ":PackerSync<CR>"),
|
|
button("q", " > Quit Neovim", ":qa<CR>"),
|
|
}
|
|
dashboard.section.footer.val = require("alpha.fortune")
|
|
dashboard.section.header.val = {
|
|
[[ ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓]],
|
|
[[ ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒]],
|
|
[[▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░]],
|
|
[[▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ ]],
|
|
[[▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒]],
|
|
[[░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░]],
|
|
[[░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░]],
|
|
[[ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ ]],
|
|
[[ ░ ░ ░ ░ ░ ░ ░ ░ ]],
|
|
[[ ░ ]],
|
|
}
|
|
|
|
dashboard.section.header.opts.hl = "Function"
|
|
dashboard.section.footer.opts.hl = "Function"
|
|
require("alpha").setup(require("alpha.themes.dashboard").opts)
|