Add dashboard.
This commit is contained in:
parent
24e3d13728
commit
a3cd5b8ad6
|
@ -0,0 +1,30 @@
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue