43 lines
2 KiB
Lua
43 lines
2 KiB
Lua
return {
|
|
'goolord/alpha-nvim',
|
|
config = function()
|
|
local alpha = require("alpha")
|
|
local dashboard = require("alpha.themes.startify")
|
|
|
|
-- Set header
|
|
dashboard.section.header.val = {
|
|
[[ /\\\\\ /\\\ /\\\\\\\\\\\\\\\ /\\\\\ /\\\ /\\\ /\\\\\\\\\\\ /\\\\ /\\\\ ]],
|
|
[[ \/\\\\\\ \/\\\ \/\\\/////////// /\\\///\\\ \/\\\ \/\\\ \/////\\\/// \/\\\\\\ /\\\\\\ ]],
|
|
[[ \/\\\/\\\ \/\\\ \/\\\ /\\\/ \///\\\ \//\\\ /\\\ \/\\\ \/\\\//\\\ /\\\//\\\ ]],
|
|
[[ \/\\\//\\\ \/\\\ \/\\\\\\\\\\\ /\\\ \//\\\ \//\\\ /\\\ \/\\\ \/\\\\///\\\/\\\/ \/\\\ ]],
|
|
[[ \/\\\\//\\\\/\\\ \/\\\/////// \/\\\ \/\\\ \//\\\ /\\\ \/\\\ \/\\\ \///\\\/ \/\\\ ]],
|
|
[[ \/\\\ \//\\\/\\\ \/\\\ \//\\\ /\\\ \//\\\/\\\ \/\\\ \/\\\ \/// \/\\\ ]],
|
|
[[ \/\\\ \//\\\\\\ \/\\\ \///\\\ /\\\ \//\\\\\ \/\\\ \/\\\ \/\\\ ]],
|
|
[[ \/\\\ \//\\\\\ \/\\\\\\\\\\\\\\\ \///\\\\\/ \//\\\ /\\\\\\\\\\\ \/\\\ \/\\\ ]],
|
|
[[ \/// \///// \/////////////// \///// \/// \/////////// \/// \/// ]],
|
|
}
|
|
|
|
dashboard.section.header.opts.hl = {
|
|
{'top_of_mlm', 1, 100},
|
|
}
|
|
-- Set menu
|
|
--[[ dashboard.section.buttons.val= {
|
|
type = "group",
|
|
val = {
|
|
{ type = "text", val = "Quick links", opts = { hl = "SpecialComment", position = "center" } },
|
|
{ type = "padding", val = 1 },
|
|
dashboard.button("e", " New file", "<cmd>ene<CR>"),
|
|
dashboard.button("u", " Update plugins", "<cmd>Lazy sync<CR>"),
|
|
dashboard.button("q", " Quit", "<cmd>qa<CR>"),
|
|
},
|
|
position = "center",
|
|
}]]--
|
|
-- Send config to alpha
|
|
alpha.setup(dashboard.opts)
|
|
|
|
-- Disable folding on alpha buffer
|
|
vim.cmd([[
|
|
autocmd FileType alpha setlocal nofoldenable
|
|
]])
|
|
end
|
|
};
|