kickstart.nvim/lua/custom/plugins/dashboard.lua

31 lines
1.3 KiB
Lua

return {
'goolord/alpha-nvim',
dependencies = {
'nvim-tree/nvim-web-devicons',
'nvim-lua/plenary.nvim'
},
config = function()
local alpha = require('alpha')
local dashboard = require('alpha.themes.dashboard')
dashboard.section.header.val = {
" ▄ ▄███▄ ████▄ ▄ ▄█ █▀▄▀█",
" █ █▀ ▀ █ █ █ ██ █ █ █",
"██ █ ██▄▄ █ █ █ █ ██ █ ▄ █",
"█ █ █ █▄ ▄▀ ▀████ █ █ ▐█ █ █",
"█ █ █ ▀███▀ █ █ ▐ █ ",
"█ ██ █▐ ▀ ",
"",
}
dashboard.section.buttons.val = {
dashboard.button("e", " > New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", " > Find file", ":Telescope find_files<CR>"),
dashboard.button("r", " > Recent", ":Telescope oldfiles<CR>"),
dashboard.button("s", " > Settings", ":e $MYVIMRC | :cd %:p:h | split . | wincmd k | pwd<CR>"),
dashboard.button("q", "󰩈 > Quit", ":qa<CR>"),
}
local fortune = require("alpha.fortune")
dashboard.section.footer.val = fortune()
alpha.setup(dashboard.config)
end
}