Skip to content

Commit

Permalink
Add black vim plugin
Browse files Browse the repository at this point in the history
To help format python files.

Note some fiddling is required to install this correctly because

> This is the error resulting from incompatible versions of black.vim
> (the Vim plugin) and black.py (the Python library) we were previously
> discussing in #1293 -- you have the master version of black.vim, which
> however installs the latest release (i.e. code that's older than master)
> of black.py. Since the latest release of black.vim doesn't work with
> recent versions of Vim, your only option is to update black.py (so that
> both black.vim and black.py are the same bleeding edge -- master --
> version). As per the instructions you provided in the OP:

```
cd ~/.vim
black/bin/pip install --upgrade git+https://github.com/psf/black.git
```

From psf/black#1379 (comment)
  • Loading branch information
mocoso committed Sep 22, 2020
1 parent f202f98 commit 4242c53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions home/.vimrc
Expand Up @@ -15,6 +15,7 @@ call minpac#add('junegunn/fzf')
call minpac#add('junegunn/fzf.vim')
call minpac#add('leafgarland/typescript-vim')
call minpac#add('mustache/vim-mustache-handlebars')
call minpac#add('psf/black')
call minpac#add('rhysd/vim-crystal')
call minpac#add('scrooloose/syntastic')
call minpac#add('tpope/vim-commentary')
Expand Down

0 comments on commit 4242c53

Please sign in to comment.