Zig
mise
can be used to install and manage multiple versions of zig on the same system.
The following are instructions for using the zig mise core plugin.
The code for this is inside the mise repository at ./src/plugins/core/zig.rs
.
Usage
The following installs zig and makes it the global default:
sh
mise use -g [email protected] # install zig 0.13.x
mise use -g zig@latest # install latest zig release
mise use -g zig@ref:master # install latest nightly from master
mise use -g zig@ref:mach-latest # install latest nominated zig
mise use -g [email protected]+271452d22 # install dev version
See available stable versions with mise ls-remote zig
.
zig Language Server
The zig
language server (zls) needs to be installed separately. You can install it with mise
:
sh
mise use -g [email protected]
Note that a tagged release of Zig
should be used with the same tagged release of ZLS
.