feat: installer boots nvim once and restores the lazy-lock pins
A first nvim start cloned the later-round plugins (claudecode, mini.*, nvim-lint, friendly-snippets, ...) at branch tip and rewrote the seeded lazy-lock.json with the tips. The install pipeline now ends with a headless first boot, puts the seeded lockfile back, and runs `Lazy! restore`. It runs only where lazy has never installed a plugin, so a lockfile the user has moved on is never touched, and a second run does nothing.
This commit is contained in:
1 parent
4e2452e994
commit
e0c78a3ffa
5 files changed
+121
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# what: nvim's first boot no longer puts the seeded lazy-lock.json back
|
||||
# why: restore then pins to the tips the boot just wrote, and the pins are lost
|
||||
# kills: …against the SEEDED lockfile, not the one the boot rewrote
|
||||
# run: unit
|
||||
<<<OLD
|
||||
run_sh "cp '$nb_seed' '$nb_lock'" || { warn "could not put the seeded lazy-lock.json back"; return 0; }
|
||||
<<<NEW
|
||||
<<<END
|
||||
@@ -0,0 +1,8 @@
|
||||
# what: the nvim first-boot step runs even where lazy already manages plugins
|
||||
# why: it would overwrite a lockfile the user moved on with :Lazy update
|
||||
# kills: …and nvim is not started
|
||||
# run: unit
|
||||
<<<OLD
|
||||
[ ! -e "$nb_lazy" ] || return 0
|
||||
<<<NEW
|
||||
<<<END
|
||||
Reference in new issue
Block a user