configs/home/.zsh-distrobox/themes/spaceship-prompt/docs/sections/vlang.md

25 lines
1.3 KiB
Markdown

# V `vlang`
!!! important "This section is rendered asynchronously by default"
!!! info
[**V (vlang)**]( https://vlang.io/) is a simple, fast, safe, compiled language for developing maintainable software.
The `vlang` section displays the current version of V.
This section is displayed only when the current directory is within a V project, meaning:
* Upsearch finds a `v.mod`, `vpkg.json`, `.vpkg-lock.json` files
* Contains any other file with `.v` extension
## Options
| Variable | Default | Meaning |
| :----------------------- | :--------------------------------: | ----------------------------------- |
| `SPACESHIP_VLANG_SHOW` | `true` | Show section |
| `SPACESHIP_VLANG_ASYNC` | `true` | Render section asynchronously |
| `SPACESHIP_VLANG_PREFIX` | `$SPACESHIP_PROMPT_DEFAULT_PREFIX` | Section's prefix |
| `SPACESHIP_VLANG_SUFFIX` | `$SPACESHIP_PROMPT_DEFAULT_SUFFIX` | Section's suffix |
| `SPACESHIP_VLANG_SYMBOL` | `V ` | Symbol displayed before the section |
| `SPACESHIP_VLANG_COLOR` | `blue` | Section's color |