neovim-dotfiles/lua/Dario48/plugins/alpha.lua
Dario48true 85d66ba396 owo
2023-12-11 09:58:16 +01:00

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
};