Skip to content

Commit a4cd92a

Browse files
committed
feat(install): reset only nvim lock file instead of the full git repo
1 parent b9e74ee commit a4cd92a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

install.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ nvim --headless \
103103

104104
# HACK: fix for lazy pulling the latest plugin versions at startup
105105
# instead of the ones in the lock file
106-
git reset --hard HEAD
106+
git checkout HEAD -- nvim/.config/nvim/lazy-lock.json
107107
nvim --headless "+Lazy! restore" +qa
108108

109109
# --- Programming ---
@@ -163,16 +163,13 @@ ollama create qwen3-coding -f ~/.dotfiles/ollama/modelfile
163163

164164
# install opencode
165165
curl -fsSL https://opencode.ai/install | bash
166-
# HACK: run opencode so that it creates it's files
166+
# NOTE: refresh opencode models and create it's files for faster startup
167167
~/.opencode/bin/opencode models --refresh
168168

169169
# -- Clean up ---
170170
# remove or invalidate cache data
171171
sudo dnf clean all
172172

173-
# revert any changes done by apps starting up
174-
git reset --hard HEAD
175-
176173
# --- User config ---
177174
# change shell to zsh
178175
sudo chsh -s /usr/bin/zsh "$USER"

0 commit comments

Comments
 (0)