Files
omarchy/migrations/1784518937.sh
T
David Heinemeier HanssonandClaude Fable 5 8e43c97610 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 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 21:59:10 -07:00

11 lines
603 B
Bash

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