Fix theme hot-reload when old and new theme share the same colorscheme plugin

lazy.nvim caches a plugin's resolved opts in plugin._.cache and carries
that state over on a spec reload, and Loader.colorscheme() no-ops for
already-loaded plugins. So switching between two themes driven by the
same colorscheme plugin (e.g. generic themes on aether.nvim) never
pushed the new palette into setup(), leaving stale colors until nvim
was restarted. Fully reload the theme plugin instead, which clears the
cached opts and reruns config with the new theme's colors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier HanssonandClaude Fable 5 committed 2026-07-19 20:34:27 -07:00
1 parent 2f0a498b43
commit 94ee311b25
2 files changed
+12 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
# Maintainer: Ryan Hughes <ryan@omarchy.org>
pkgname=omarchy-nvim
pkgver=2026.7.15
pkgver=2026.7.16
pkgrel=1
pkgdesc="Pre-built LazyVim configuration with cached plugins"
arch=('any')