-- 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"), dashboard.button("h", " 历史文件", ":Telescope oldfiles"), dashboard.button("l", " 加载会话", ":SessionSearch"), -- FIXME: This does not work on Windows - Make it more portable dashboard.button("c", " 转到设置", ":Telescope find_files cwd=~/.config/nvim"), dashboard.button("SPC q", "󱊷 退出", ":qa"), } 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, }, }