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 authored and GitHub committed 2024-07-05 15:32:48 +02:00
1 parent 91aa76b483
commit aff56d0421
1 file changed
+4 -3
+4 -3
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"
}
}
}