Closed Niverton closed 11 months ago
You need to add your theme to the config file, if you look at config.lua you will see where you need to add it, astrotheme will fail to load any new theme that has not been added to the config.
Hello, Yes I know I need to add it to the config, the bug report is more of a "why", or at least "why isn't the error message clearer".
Well it's not clearer because i was not expecting people use astrotheme like that, the reason it's like that is for me so if i get that error i know i haven't added the config layout and maintaining the config layout is for consistency sake, I currently have a new branch that has changes to this area here ill look at making it modifiable i guess.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
Checklist
Neovim version (nvim -v)
n/a
Operating system/version
n/a
Terminal/GUI
n/a
Describe the bug
I'm trying to write a plugin to add a palette to astrotheme. I have a
lua/astrotheme/paletes/astrobox.lua
file in my plugin directory. Runningrequire("astrotheme").load("astrobox")
crashes duringutil.set_palettes
when trying to extend my palette withastrotheme.config.palettes.astrobox
isnil
. Adding an empty table to the config fixes the issue, but requires a user to change their astrotheme's config when adding a palette plugin.Steps to Reproduce
:lua require("astrotheme").load("astronew")
Expected behavior
The palette is loaded and the theme changes.
Screenshots
No response
Additional Context
The following changes to util.lua fix the issue (I can create a PR):
Thanks a lot for your time on astronvim!