Closed shaojunjie0912 closed 9 months ago
Solution:
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⢁⣶⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣛⣉⣉⣙⣿⣷⣝⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣋⠴⢚⣩⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⡥⠊⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣱⣄⡙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡵⢋⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣹⣇⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣡⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠉⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣰⣿⣿⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⣀⣿⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⡋⢿⣿⣿⣿⣿⡿⣳⣿⣿⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠃⣿⣿⣿⣿⡿⣱⣿⣿⣿⢱⣿⣿⢿⡗⣿⣿⣿⣿⣿⣿⣿⣿⡟⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⡆⢸⢻⣿⣿⡿⣱⣿⣿⣿⡏⣼⣿⣿⠈⡇⢿⣿⣿⣿⣿⣿⣿⣿⡇⣿⡇⠘⡇⠹⣿⣿⣿⣿⣿⣾⣿⣿⣿⡀⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⠀⢸⢹⣿⣿⢳⣿⡿⣿⣿⢁⣿⡿⢡⡆⢧⠘⣿⣿⣿⣿⣿⣿⡿⠇⠸⠀⠷⠘⠂⠌⠻⣿⡛⢿⣧⣿⣿⣿⠇⡇⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⡀⢿⢩⠏⣾⡿⣱⣿⡏⠘⡟⣱⣿⣷⡈⠀⠈⣉⡹⣿⣧⠊⢩⠀⠀⣼⣿⣷⣌⠸⣦⠘⣇⠸⣿⢹⡏⣿⠀⡇⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⡇⠸⡸⢰⡿⢡⣿⢏⡆⠘⣰⠟⠛⢛⣛⠀⡱⡜⢌⠌⣿⡈⠀⢠⣴⡋⠁⠀⢴⣤⡙⢷⠘⠀⣿⢨⣴⠏⡄⠁⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣴⠀⠀⠇⢸⠃⡌⠅⠸⡇⠀⢠⣆⠀⠀⠉⣿⣿⣿⣦⠘⢄⡇⠀⣿⣿⣷⡔⠀⢠⣿⣷⣿⠃⠀⣿⠀⣾⠀⠐⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣜⣷⠀⢄⠘⢠⠃⢸⠀⡇⢸⣾⣿⣶⣴⣶⣿⣿⣿⣿⣷⣤⣁⣾⣿⣿⣿⣿⣿⣿⣿⣿⢃⡼⠀⡿⠀⡏⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠈⠀⢸⡄⢠⢇⠀⠨⡙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠕⠋⢀⡔⠃⡼⢠⣇⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠘⠂⡰⠘⡄⠀⠩⣑⣪⣙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⠖⣠⣴⢟⠥⡰⢁⣾⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡌⠐⢤⡉⠒⠬⣰⣈⣮⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡛⠛⠑⡚⢉⡉⠤⢂⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣨⣽⣦⡀⠠⡤⠤⣈⠡⢤⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⢁⣡⠔⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠄⢪⠇⢸⠁⠠⡐⠾⣿⣿⣿⣿⣿⣿⣿⣿⠿⡋⠐⢉⡀⢣⣶⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢋⣥⣼⡆⢠⣷⣭⣑⡀⠀⢦⣭⣛⠿⢿⠿⣋⣵⣺⡅⢰⣻⣷⣼⣿⣿⣿⣾⣽⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠟⠩⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⡏⢰⣾⣷⣿⣿⣷⡿⣻⣿⣿⣷⡄⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣬⡻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⣀⣤⣌⡙⢿⣿⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⢗⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢛⣄⡘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣻⣵⣾⣿⣿⣿⣿⣶⣬⣛⢿⣿⣿⣿⣿⣿⡜⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣾⣿⣿⣿⣿⣿⣿⣿⣿⣯⣶⣿⣿⣿⣮⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡁⢾⣿⣿⣿⣿⣿⣿⢸⣿⣿⣿⣷⣬⡛⢿⣿⣿⣿⡽⣿⣿⣿⣿⣿⣿⡿⢫⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⣬⡹⢿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣷⣬⡛⠻⣿⣟⣿⣿⣿⣿⡷⣰⣿⣿⣿⡿⠟⣫⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣋⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⢸⣿⣿⣦⡹⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣦⣙⢿⣿⣿⣿⠿⣟⣛⡍⢰⣶⣿⣿⣿⣿⣿⣿⣿⡇⣿⣿⣿⣿⣿⣾⣿⡄⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣌⠻⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⡿⠃⠈⠋⠀⠻⣿⣿⠃⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣿⣿⢟⣿⡟⣾⣿⡇⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣿⣿⣿⣿⣿⣿⣧⡘⠟⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⣼⡇⠀⠀⠈⡟⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⢸⡿⣣⣿⡿⣹⣿⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢸⣿⣿⣿⣿⣿⣿⣿⣿⣤⣿⣿⣿⣿⣿⣿⡟⡁⠀⠀⠀⣸⣿⡇⡀⠀⡄⠐⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢱⣿⣿⣵⣿⣿⣿⡿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⣿⣿⣿⣿⣿⣿⣿⣿⣿⢯⣿⣿⣿⣿⣿⣿⣆⡀⠀⠀⣰⣿⣿⡇⠁⣄⠻⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠘⢿⣿⣿⣿⣿⣿⣿⣿⢹⣿⣿⣿⣿⣿⣿⣿⡟⢀⢀⣿⣿⣿⡇⠀⣿⡇⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣻⣿⣿⣿⣿⣿⣿⡇⢠⠹⣿⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢰⣶⣾⣿⣿⣿⡿⣿⣿⡟⢺⠿⣿⣿⣿⣿⣿⣿⠃⠌⣸⣿⣿⣿⡇⠂⢿⢇⡟⣻⣿⣿⣿⣿⣿⣟⣛⠟⣏⣼⣿⣿⣿⣿⣿⣿⣿⣿⣸⣆⠘⣿⣿⣿⣿⣿⣿⣿]],
[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠙⣿⣿⣽⣿⣿⣷⡿⢿⣯⠰⣾⣿⣿⣿⣿⣿⡇⠀⠀⢿⣿⣿⣿⠃⠀⢸⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣿⣿]],
}
return dashboard.section.header.val
IMO it's a common demand and should be added in settings.lua
as the value of dashboard_header
. What do you think? @Jint-lzxy @CharlesChiuGit
return dashboard.section.header.val
Thanks a lot! 😊
IMO it's a common demand and should be added in
settings.lua
as the value ofdashboard_header
. What do you think?
yeah, agree. 2 many ppl had been asking for this lol
Version confirmation
Following prerequisites
Neovim version
NVIM v0.9.5
Branch info
main (Default/Latest)
Minimal (user) folder structure required to reproduce the issue
Minimal config with steps on how to reproduce the issue
Hi, I'm new to
nvimdots
. I want to change the startup image.The Wiki told me to modify the
dashboard.section.header.val
defined inlua/modules/configs/ui/alpha.lua
with my own ascii image directly.But I am confused that if this file being changed later, and when I try to update
nvimdots
bygit pull
, will it cause conflicts?So I tried to create a new alpha.lua instead of modifying the original one. I added the alpha.lua to user/configs, and I wrote like this:
But errors occurred like this:
Meanwhile, the startup image didn't change properly.
How should I write the code? Thanks!!!
Expected behavior
The startup image changed properly.
Additional information
No response