ZVM
Whatโ
Display the active Zig version reported by ZVM (Zig Version Manager).
The segment is only enabled when the zvm command is available and a version is currently in use.
Sample Configurationโ
- json
- yaml
- toml
{
"type": "zvm",
"style": "powerline",
"powerline_symbol": "๎ฐ",
"foreground": "#F7A41D",
"background": "#193549",
"template": " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} ",
"options": {
"zigicon": "ZVM - "
}
}
type: zvm
style: powerline
powerline_symbol: ๎ฐ
foreground: "#F7A41D"
background: "#193549"
template: " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} "
options:
zigicon: "ZVM - "
type = "zvm"
style = "powerline"
powerline_symbol = "๎ฐ"
foreground = "#F7A41D"
background = "#193549"
template = " {{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }} "
[options]
zigicon = "ZVM - "
Optionsโ
| Name | Type | Default | Description |
|---|---|---|---|
zigicon | string | ZVM | the icon to display before the version |
Template (info)โ
default template
{{ if .ZigIcon }}{{ .ZigIcon }} {{ end }}{{ .Version }}
Propertiesโ
| Name | Type | Description |
|---|---|---|
.Version | string | the active Zig version used by zvm |
.ZigIcon | string | the configured zigicon |