Difference between sync
and update
?
#326
-
Found myself getting a bit confused about the difference between the two... Could someone please explain? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey there! As said in the usage section of the README, That means, running |
Beta Was this translation helpful? Give feedback.
-
Ok, that makes things clearer for me. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Hey there!
As said in the usage section of the README,
update
will attempt to update every available rock if it's not pinned to a certain version, whilesync
will synchronize the current Neovim configuration with therocks.toml
contents.That means, running
:Rocks sync
will attempt to install missing rocks, uninstall unneeded rocks and make sure every installed rock has the correct version as ourrocks.toml
file also works as a "lockfile" on itself.