mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:20:05 +08:00
Update python.md (#2105)
Adding the example for automatic buffer formatting enabled on save. (This doesn't work for me)
This commit is contained in:
parent
166f13d56f
commit
4d064bd6f0
@ -56,6 +56,12 @@ pip install --user flake8
|
||||
|
||||
The default key binding for formatting buffer is `SPC b f`, and you need to install `yapf`. To enable automatic buffer formatting on save, load this layer with setting `format-on-save` to `1`.
|
||||
|
||||
```
|
||||
[[layers]]
|
||||
name = "lang#python"
|
||||
format-on-save = 1
|
||||
```
|
||||
|
||||
```sh
|
||||
pip install --user yapf
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user