X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/84e22b75c6baeb231dee52b7bd086f547063e0e4..03766f515b908b76a488da40fec3eeffb9369af7:/README.md diff --git a/README.md b/README.md index 0d14b68..3ef758f 100644 --- a/README.md +++ b/README.md @@ -725,7 +725,7 @@ Configuration: * `g:black_fast` (defaults to `0`) * `g:black_linelength` (defaults to `88`) * `g:black_skip_string_normalization` (defaults to `0`) -* `g:black_virtualenv` (defaults to `~/.vim/black`) +* `g:black_virtualenv` (defaults to `~/.vim/black` or `~/.local/share/nvim/black`) To install with [vim-plug](https://github.com/junegunn/vim-plug): @@ -810,6 +810,14 @@ the [Python Language Server](https://github.com/palantir/python-language-server) Use [python-black](https://atom.io/packages/python-black). +### Kakoune + +Add the following hook to your kakrc, then run black with `:format`. +``` +hook global WinSetOption filetype=python %{ + set-option window formatcmd 'black -q -' +} +``` ### Other editors