From 1bd585186a14a10011133c0f22f794f83d83ac73 Mon Sep 17 00:00:00 2001 From: Zhangfan Date: Fri, 5 Jul 2024 06:32:48 -0700 Subject: [PATCH] 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. --- docs/src/languages/python.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/src/languages/python.md b/docs/src/languages/python.md index 0af9c5b35f54c0a968fac7cf0120c63f7031a4b5..9bd670b6d410b08582f52c91454fedbea6bf3aa1 100644 --- a/docs/src/languages/python.md +++ b/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" } } }