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

Zhangfan created

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.

Change summary

docs/src/languages/python.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

Detailed changes

docs/src/languages/python.md 🔗

@@ -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"
     }
   }
 }