Skip to content

How can I change the startup image by adding a new alpha.lua to user/configs? #1122

@bitorangej

Description

@bitorangej

Version confirmation

  • Confirm

Following prerequisites

  • Confirm

Neovim version

NVIM v0.9.5

Branch info

main (Default/Latest)

Minimal (user) folder structure required to reproduce the issue

nvim/lua/user/configs/alpha.lua

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 in lua/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 by git 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:

local dashboard = require("alpha.themes.dashboard")
return{
	dashboard.section.header.val = {
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠋⢁⣶⡿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣛⣉⣉⣙⣿⣷⣝⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣋⠴⢚⣩⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⡥⠊⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣱⣄⡙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡵⢋⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣹⣇⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣡⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠉⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣰⣿⣿⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⣀⣿⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⡋⢿⣿⣿⣿⣿⡿⣳⣿⣿⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠃⣿⣿⣿⣿⡿⣱⣿⣿⣿⢱⣿⣿⢿⡗⣿⣿⣿⣿⣿⣿⣿⣿⡟⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⡇⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⡆⢸⢻⣿⣿⡿⣱⣿⣿⣿⡏⣼⣿⣿⠈⡇⢿⣿⣿⣿⣿⣿⣿⣿⡇⣿⡇⠘⡇⠹⣿⣿⣿⣿⣿⣾⣿⣿⣿⡀⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⠀⢸⢹⣿⣿⢳⣿⡿⣿⣿⢁⣿⡿⢡⡆⢧⠘⣿⣿⣿⣿⣿⣿⡿⠇⠸⠀⠷⠘⠂⠌⠻⣿⡛⢿⣧⣿⣿⣿⠇⡇⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⡀⢿⢩⠏⣾⡿⣱⣿⡏⠘⡟⣱⣿⣷⡈⠀⠈⣉⡹⣿⣧⠊⢩⠀⠀⣼⣿⣷⣌⠸⣦⠘⣇⠸⣿⢹⡏⣿⠀⡇⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⡇⠸⡸⢰⡿⢡⣿⢏⡆⠘⣰⠟⠛⢛⣛⠀⡱⡜⢌⠌⣿⡈⠀⢠⣴⡋⠁⠀⢴⣤⡙⢷⠘⠀⣿⢨⣴⠏⡄⠁⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣴⠀⠀⠇⢸⠃⡌⠅⠸⡇⠀⢠⣆⠀⠀⠉⣿⣿⣿⣦⠘⢄⡇⠀⣿⣿⣷⡔⠀⢠⣿⣷⣿⠃⠀⣿⠀⣾⠀⠐⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣜⣷⠀⢄⠘⢠⠃⢸⠀⡇⢸⣾⣿⣶⣴⣶⣿⣿⣿⣿⣷⣤⣁⣾⣿⣿⣿⣿⣿⣿⣿⣿⢃⡼⠀⡿⠀⡏⠀⢠⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡆⠈⠀⢸⡄⢠⢇⠀⠨⡙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠕⠋⢀⡔⠃⡼⢠⣇⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⠘⠂⡰⠘⡄⠀⠩⣑⣪⣙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⠖⣠⣴⢟⠥⡰⢁⣾⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡌⠐⢤⡉⠒⠬⣰⣈⣮⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡛⠛⠑⡚⢉⡉⠤⢂⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⣨⣽⣦⡀⠠⡤⠤⣈⠡⢤⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⢁⣡⠔⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠄⢪⠇⢸⠁⠠⡐⠾⣿⣿⣿⣿⣿⣿⣿⣿⠿⡋⠐⢉⡀⢣⣶⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢋⣥⣼⡆⢠⣷⣭⣑⡀⠀⢦⣭⣛⠿⢿⠿⣋⣵⣺⡅⢰⣻⣷⣼⣿⣿⣿⣾⣽⣿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠟⠩⣵⣾⣿⣿⣿⣿⣿⣿⣿⣿⡏⢰⣾⣷⣿⣿⣷⡿⣻⣿⣿⣷⡄⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣬⡻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⣀⣤⣌⡙⢿⣿⣿⣿⣿⣿⣿⣿⡇⢸⣿⣿⣯⣿⣿⣿⣿⣿⣿⣿⢗⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢛⣄⡘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣻⣵⣾⣿⣿⣿⣿⣶⣬⣛⢿⣿⣿⣿⣿⣿⡜⣿⣿⣿⣿⣿⣿⣿⣿⣿⢟⣾⣿⣿⣿⣿⣿⣿⣿⣿⣯⣶⣿⣿⣿⣮⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡁⢾⣿⣿⣿⣿⣿⣿⢸⣿⣿⣿⣷⣬⡛⢿⣿⣿⣿⡽⣿⣿⣿⣿⣿⣿⡿⢫⣿⣿⣿⣿⣿⣿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣌⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⣬⡹⢿⣿⣿⣿⣾⣿⣿⣿⣿⣿⣿⣷⣬⡛⠻⣿⣟⣿⣿⣿⣿⡷⣰⣿⣿⣿⡿⠟⣫⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣋⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⢸⣿⣿⣦⡹⣿⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣦⣙⢿⣿⣿⣿⠿⣟⣛⡍⢰⣶⣿⣿⣿⣿⣿⣿⣿⡇⣿⣿⣿⣿⣿⣾⣿⡄⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣌⠻⣷⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⡿⠃⠈⠋⠀⠻⣿⣿⠃⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣿⣿⢟⣿⡟⣾⣿⡇⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣿⣿⣿⣿⣿⣿⣧⡘⠟⣿⣿⣿⣿⣿⣿⣿⣿⠟⠁⠀⠀⣼⡇⠀⠀⠈⡟⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⢸⡿⣣⣿⡿⣹⣿⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢸⣿⣿⣿⣿⣿⣿⣿⣿⣤⣿⣿⣿⣿⣿⣿⡟⡁⠀⠀⠀⣸⣿⡇⡀⠀⡄⠐⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢱⣿⣿⣵⣿⣿⣿⡿⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⣿⣿⣿⣿⣿⣿⣿⣿⣿⢯⣿⣿⣿⣿⣿⣿⣆⡀⠀⠀⣰⣿⣿⡇⠁⣄⠻⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠘⢿⣿⣿⣿⣿⣿⣿⣿⢹⣿⣿⣿⣿⣿⣿⣿⡟⢀⢀⣿⣿⣿⡇⠀⣿⡇⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢰⣻⣿⣿⣿⣿⣿⣿⡇⢠⠹⣿⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢰⣶⣾⣿⣿⣿⡿⣿⣿⡟⢺⠿⣿⣿⣿⣿⣿⣿⠃⠌⣸⣿⣿⣿⡇⠂⢿⢇⡟⣻⣿⣿⣿⣿⣿⣟⣛⠟⣏⣼⣿⣿⣿⣿⣿⣿⣿⣿⣸⣆⠘⣿⣿⣿⣿⣿⣿⣿]],
		[[⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠙⣿⣿⣽⣿⣿⣷⡿⢿⣯⠰⣾⣿⣿⣿⣿⣿⡇⠀⠀⢿⣿⣿⣿⠃⠀⢸⠈⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⣿⣿⣿⣿⣿⣿⣿]],
	}
}

But errors occurred like this:
Snipaste_2024-01-02_22-33-02

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood-first-issueGood for newcomersuiGeneral user interface related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions