mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
52 lines
2.8 KiB
Lua
52 lines
2.8 KiB
Lua
-- alpha-nvim.lua
|
|
return {
|
|
{
|
|
'goolord/alpha-nvim',
|
|
dependencies = {
|
|
-- 'echasnovski/mini.icons',
|
|
-- 'nvim-lua/plenary.nvim'
|
|
},
|
|
config = function ()
|
|
local alpha = require'alpha'
|
|
local dashboard = require'alpha.themes.dashboard'
|
|
dashboard.section.header.val = {
|
|
" ",
|
|
"================= =============== =============== ======== ========",
|
|
"\\\\ . . . . . . .\\\\ //. . . . . . .\\\\ //. . . . . . .\\\\ \\\\. . .\\\\// . . //",
|
|
"||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\\/ . . .||",
|
|
"|| . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||",
|
|
"||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||",
|
|
"|| . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\\ . . . . ||",
|
|
"||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\\_ . .|. .||",
|
|
"|| . _|| || || || || ||_ . || || . _|| || || || |\\ `-_/| . ||",
|
|
"||_-' || .|/ || || \\|. || `-_|| ||_-' || .|/ || || | \\ / |-_.||",
|
|
"|| ||_-' || || `-_|| || || ||_-' || || | \\ / | `||",
|
|
"|| `' || || `' || || `' || || | \\ / | ||",
|
|
"|| .===' `===. .==='.`===. .===' /==. | \\/ | ||",
|
|
"|| .==' \\_|-_ `===. .===' _|_ `===. .===' _-|/ `== \\/ | ||",
|
|
"|| .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \\/ | ||",
|
|
"|| .==' _-' `-__\\._-' `-_./__-' `' |. /| | ||",
|
|
"||.==' _-' `' | /==.||",
|
|
"==' _-' j s 0 n y N E O V I M \\/ `==",
|
|
"\\ _-' `-_ /",
|
|
" `'' ``' ",
|
|
}
|
|
dashboard.section.buttons.val.leader = "SPC"
|
|
dashboard.section.buttons.val = {
|
|
-- leader = "SPC",
|
|
dashboard.button('p', ' 查找项目', ':Telescope projects<CR>'),
|
|
dashboard.button('h', ' 历史文件', ':Telescope oldfiles<CR>'),
|
|
dashboard.button('l', ' 加载会话', ':SessionSearch<CR>'),
|
|
dashboard.button('c', ' 转到设置', ':Telescope find_files cwd=~/.config/nvim<CR>'),
|
|
dashboard.button('SPC q', ' 退出', ':qa<CR>'),
|
|
}
|
|
dashboard.section.footer.val = "今日 " .. os.date("%Y-%m-%d %A") .. " "
|
|
|
|
dashboard.config.opts.noautocmd = true
|
|
|
|
-- vim.cmd[[autocmd User AlphaReady echo 'Alpha ready!']]
|
|
|
|
alpha.setup(dashboard.config)
|
|
end
|
|
};
|
|
}
|