Skip to main content

Nx

Whatโ€‹

Display the currently active Nx version.

Sample Configurationโ€‹

{
"type": "nx",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#000000",
"background": "#1976d2",
"template": " ๎“ {{ .Full }} "
}

Propertiesโ€‹

NameTypeDescription
home_enabledbooleandisplay the segment in the HOME folder or not - defaults to false
fetch_versionbooleanfetch the active version or not; useful if all you need is an icon indicating ng
display_modestring
  • always: the segment is always displayed
  • files: the segment is only displayed when a workspace.json or nx.json file is present (default)
version_url_templatestringa go text/template template that creates the URL of the version info / release notes
extensions[]stringallows to override the default list of file extensions to validate
folders[]stringallows to override the list of folder names to validate
cache_versionbooleancache the executable's version or not - defaults to false

Template (info)โ€‹

default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}

Propertiesโ€‹

NameTypeDescription
.Fullstringthe full version
.Majorstringmajor number
.Minorstringminor number
.Patchstringpatch number
.URLstringURL of the version info / release notes
.Errorstringerror encountered when fetching the version string