From 94305c9284e29b42e1472c2b50cfdae5ee30d46b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 19 Jul 2026 21:59:10 -0700 Subject: [PATCH] Fix Neovim theme symlink pointing at the Omarchy 4 theme location (#6318) * Address upgrade migration review feedback * Only promote firmware during kernel transitions * Remove the dropped packages preventing installation * Fix Neovim theme symlink pointing at the Omarchy 4 theme location omarchy-nvim briefly created ~/.config/nvim/lua/plugins/theme.lua linked to ~/.local/state/omarchy/current, which doesn't exist on Omarchy 3.x, so fresh installs errored on nvim startup with "Failed to load plugins.theme" (#6309). Retarget the link to ~/.config/omarchy/current unless the user has already customized it. Co-Authored-By: Claude Fable 5 --------- Co-authored-by: Claude Fable 5 --- migrations/1784518937.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/1784518937.sh diff --git a/migrations/1784518937.sh b/migrations/1784518937.sh new file mode 100644 index 00000000..f92cc78e --- /dev/null +++ b/migrations/1784518937.sh @@ -0,0 +1,10 @@ +echo "Point the Neovim theme symlink at the Omarchy 3.x theme location" + +# omarchy-nvim briefly created ~/.config/nvim/lua/plugins/theme.lua linked to +# the Omarchy 4 theme location, which doesn't exist on Omarchy 3.x, so Neovim +# failed to load plugins.theme on startup (#6309). Retarget the link to the +# 3.x location, but leave any customized link alone. +theme_link="$HOME/.config/nvim/lua/plugins/theme.lua" +if [[ -L $theme_link && $(readlink "$theme_link") == *.local/state/omarchy/current/theme/neovim.lua ]]; then + ln -snf "../../../../.config/omarchy/current/theme/neovim.lua" "$theme_link" +fi