How to format Python files on save with SpaceVim
In order to format Python files automatically on save with Neovim, you can add the following command in your bootstrap_before
function:
autocmd BufWritePost *.py Neoformat autoflake
Neoformat is indeed used under the hood by SpaceVim.
The same can be done for the ‘Neoformat isort’ command.