nvim/lua/nyanko/lazy/alpha.lua

30 lines
812 B
Lua

return {
"goolord/alpha-nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
local theta = require("alpha.themes.theta")
local dashboard = require("alpha.themes.dashboard")
theta.header.val = {
" |\\ _,,,---,,_ ",
" /,`.-'`' -. ;-;;,_ ",
" |,4- ) )-,_..;\\ ( `'-'",
" '---''(_/--' `-'\\_) ",
}
theta.buttons.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("<leader>sf", "Search files"),
dashboard.button("<leader>sg", "Live grep"),
dashboard.button("q", "Quit", "<cmd>qa<CR>"),
}
theta.file_icons.enabled = false
require("alpha").setup(theta.config)
end,
}