Install Zig
zvm install <version># Orzvm i <version>Use install or i to download a specific version of Zig. To install the
latest version, use “master”.
# Examplezvm i masterForce Install
Section titled “Force Install”As of v0.7.6 ZVM will now skip downloading a version if it is already
installed. You can always force an install with the --force or -f flag.
zvm i --force masterYou can also enable the old behavior by setting the new alwaysForceInstall
field to true in ~/.zvm/settings.json.
Install ZLS with ZVM
Section titled “Install ZLS with ZVM”You can now install ZLS with your Zig download! To install ZLS with ZVM, simply
pass the --zls flag with zvm i. For example:
zvm i --zls masterSelect ZLS compatibility mode
Section titled “Select ZLS compatibility mode”By default, ZVM will install a ZLS build, which can be used with the given Zig
version, but may not be able to build ZLS from source. If you want to use a ZLS
build, which can be built using the selected Zig version, pass the --full flag
with zvm i --zls. For example:
zvm i --zls --full masterThis does not apply to tagged releases, e.g.: 0.13.0