make alpha.nvim options structure match to all other plugin config options

this was creating confusion among people those who override alpha-nvim config
This commit is contained in:
siduck 2022-07-30 08:42:18 +05:30
parent 4a2d344de4
commit 27f01cbb10

View File

@ -34,9 +34,11 @@ local function button(sc, txt, keybind)
} }
end end
local options = {} local options = {
local ascii = { header = {
type = "text",
val = {
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ", " ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ", " ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ", " ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
@ -48,18 +50,14 @@ local ascii = {
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ", " ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ", " ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ", " ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
} },
options.header = {
type = "text",
val = ascii,
opts = { opts = {
position = "center", position = "center",
hl = "AlphaHeader", hl = "AlphaHeader",
}, },
} },
options.buttons = { buttons = {
type = "group", type = "group",
val = { val = {
button("SPC f f", " Find File ", ":Telescope find_files<CR>"), button("SPC f f", " Find File ", ":Telescope find_files<CR>"),
@ -72,6 +70,7 @@ options.buttons = {
opts = { opts = {
spacing = 1, spacing = 1,
}, },
},
} }
options = require("core.utils").load_override(options, "goolord/alpha-nvim") options = require("core.utils").load_override(options, "goolord/alpha-nvim")