docs(config, preset): fix Buf module config docs and No Empty Icons preset (#6200)

* docs(config): Buf module is shown even if `buf` CLI is not installed

* docs(preset): make Buf format string consistent with other modules
This commit is contained in:
Justin Su 2024-08-21 03:22:23 -04:00 committed by GitHub
parent 558b28b604
commit c5fde1734d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -579,10 +579,7 @@ discharging_symbol = '💦 '
## Buf
The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if all of the following conditions are met:
- The [`buf`](https://github.com/bufbuild/buf) CLI is installed.
- The current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
The `buf` module shows the currently installed version of [Buf](https://buf.build). By default, the module is shown if the current directory contains a [`buf.yaml`](https://docs.buf.build/configuration/v1/buf-yaml), [`buf.gen.yaml`](https://docs.buf.build/configuration/v1/buf-gen-yaml), or [`buf.work.yaml`](https://docs.buf.build/configuration/v1/buf-work-yaml) configuration file.
### Options

View File

@ -1,5 +1,5 @@
[buf]
format = '(with [$symbol$version ]($style))'
format = '(with [$symbol($version )]($style))'
[bun]
format = '(via [$symbol($version )]($style))'