You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.8 KiB

return {
'goolord/alpha-nvim',
dependencies = {
'echasnovski/mini.icons',
},
config = function ()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
local neovim_lean = {
[[ ]],
[[ _/ _/ _/ _/ _/ ]],
[[ _/_/ _/ _/_/ _/_/ _/ _/ _/_/_/ _/_/ ]],
[[ _/ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/ _/ _/ _/ ]],
[[ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ ]],
[[ _/ _/ _/_/_/ _/_/ _/ _/ _/ _/ _/ ]],
[[ ]],
}
local neovim_decimal = {
[[ ]],
[[ 78 101 111 86 105 109 ]],
[[ ]],
}
-- Set the ASCII art
dashboard.section.header.val = neovim_lean
-- Remove other sections (buttons, footer, etc.) to show only the ASCII art
dashboard.section.buttons.val = {}
dashboard.section.footer.val = {}
local function get_center_padding()
local total_lines = vim.fn.winheight(0)
local art_lines = #dashboard.section.header.val
return math.floor((total_lines - art_lines) / 2)
end
-- Center the header
dashboard.opts.layout = {
{ type = "padding", val = get_center_padding() }, -- Add some vertical padding
dashboard.section.header,
}
-- Set up alpha with the modified dashboard
alpha.setup(dashboard.opts)
end
}