From 6009d69749cc5256b96bd7297f5e81f6698c5012 Mon Sep 17 00:00:00 2001 From: Luca Pattocchio Date: Mon, 5 May 2025 21:07:43 +0200 Subject: [PATCH 1/2] fix: remove nvim desktop after update --- install/terminal/app-neovim.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/terminal/app-neovim.sh b/install/terminal/app-neovim.sh index b0a28c69e..2b8724b13 100644 --- a/install/terminal/app-neovim.sh +++ b/install/terminal/app-neovim.sh @@ -34,5 +34,6 @@ fi # Replace desktop launcher with one running inside Alacritty if [[ -d ~/.local/share/applications ]]; then sudo rm -rf /usr/share/applications/nvim.desktop + sudo rm -rf /usr/local/share/applications/nvim.desktop source ~/.local/share/omakub/applications/Neovim.sh fi From 86e0f0fe2b6168d62590b0f07e7e9b02b15c4440 Mon Sep 17 00:00:00 2001 From: Luca Pattocchio Date: Mon, 5 May 2025 21:14:45 +0200 Subject: [PATCH 2/2] fix: update nvim theme only if it s installed --- bin/omakub-sub/theme.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omakub-sub/theme.sh b/bin/omakub-sub/theme.sh index 6a2036ee6..d7d2b06b1 100644 --- a/bin/omakub-sub/theme.sh +++ b/bin/omakub-sub/theme.sh @@ -5,7 +5,9 @@ if [ -n "$THEME" ] && [ "$THEME" != "<<-back" ]; then cp $OMAKUB_PATH/themes/$THEME/alacritty.toml ~/.config/alacritty/theme.toml cp $OMAKUB_PATH/themes/$THEME/zellij.kdl ~/.config/zellij/themes/$THEME.kdl sed -i "s/theme \".*\"/theme \"$THEME\"/g" ~/.config/zellij/config.kdl - cp $OMAKUB_PATH/themes/$THEME/neovim.lua ~/.config/nvim/lua/plugins/theme.lua + if [ -d "$HOME/.config/nvim" ]; then + cp $OMAKUB_PATH/themes/$THEME/neovim.lua ~/.config/nvim/lua/plugins/theme.lua + fi source $OMAKUB_PATH/themes/$THEME/gnome.sh source $OMAKUB_PATH/themes/$THEME/tophat.sh