50 lines
2.3 KiB
Lua
50 lines
2.3 KiB
Lua
return {
|
|
'goolord/alpha-nvim',
|
|
dependencies = 'nvim-tree/nvim-web-devicons',
|
|
config = function()
|
|
-- require 'alpha'.setup(require 'alpha.themes.dashboard'.config)
|
|
local alpha = require("alpha")
|
|
local dashboard = require("alpha.themes.dashboard")
|
|
|
|
dashboard.section.header.val = {
|
|
" ",
|
|
" ",
|
|
" ",
|
|
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
|
|
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
|
|
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
|
|
" ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
|
|
" ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
|
|
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
|
|
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
|
|
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
|
|
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
|
|
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
|
|
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
|
|
}
|
|
|
|
-- Set menu
|
|
dashboard.section.buttons.val = {
|
|
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
|
|
dashboard.button("r", " Recently used files", ":Telescope oldfiles<CR>"),
|
|
dashboard.button("f", " Find file", ":Telescope find_files<CR>"),
|
|
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
|
|
dashboard.button("q", " Quit NVIM", ":qa<CR>"),
|
|
}
|
|
|
|
-- Set footer
|
|
local handle = assert(io.popen('fortune -s'))
|
|
local fortune = handle:read("*all")
|
|
handle:close()
|
|
dashboard.section.footer.val = fortune
|
|
dashboard.section.header.opts.hl = "Title"
|
|
dashboard.section.buttons.opts.hl = "Debug"
|
|
dashboard.section.footer.opts.hl = "Conceal"
|
|
dashboard.config.opts.noautocmd = true
|
|
|
|
-- vim.cmd[[autocmd User AlphaReady echo 'ready']]
|
|
|
|
alpha.setup(dashboard.opts)
|
|
end
|
|
}
|