docs: Update the example to set up black formatter in Python (#13839)

As titled. The new example is consistent with the instructions in
"Configuring Zed". I verified that the example works as expected.

Release Notes:

- Update the instructions to set up external formatter for Python.
This commit is contained in:
Zhangfan 2024-07-05 06:32:48 -07:00 committed by GitHub
parent e69f9d6cf9
commit 1bd585186a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,12 +58,13 @@ A common tool for formatting python code is [Black](https://black.readthedocs.io
{
"languages": {
"Python": {
"format_on_save": {
"external": {
"formatter": {
"external": {
"command": "black",
"arguments": ["-"]
}
}
},
"format_on_save": "on"
}
}
}