From 1f7e73506c8b8c37d72becad5c9d8f1ab61644e1 Mon Sep 17 00:00:00 2001 From: John Meow Date: Sat, 6 Mar 2021 07:22:19 +0300 Subject: [PATCH] Add ALE (#1753) --- docs/editor_integration.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/editor_integration.md b/docs/editor_integration.md index bc7c2e7..ae24c76 100644 --- a/docs/editor_integration.md +++ b/docs/editor_integration.md @@ -111,6 +111,8 @@ $ black --help ## Vim +### Official plugin + Commands and shortcuts: - `:Black` to format the entire file (ranges not supported); @@ -233,6 +235,17 @@ If you later want to update _Black_, you should do it like this: $ pip install -U black --no-binary regex,typed-ast ``` +### With ALE + +1. Install [`ale`](https://github.com/dense-analysis/ale) +2. Install `black` +3. Add this to your vimrc: + + ```vim + let g:ale_fixers = {} + let g:ale_fixers.python = ['black'] + ``` + ## Gedit gedit is the default text editor of the GNOME, Unix like Operating Systems. Open gedit -- 2.39.5