]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
Add Black code formatter to vim
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 28 Aug 2019 11:27:07 +0000 (12:27 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 28 Aug 2019 11:27:07 +0000 (12:27 +0100)
states/vim/files/vimrc

index b8cf54dede84fbca44d8208a6d2df8d22074df5a..5980b6453bacbca1feaadffd4c8ce7a862da015e 100644 (file)
@@ -38,6 +38,7 @@ Plugin 'gu-fan/riv.vim'
 Plugin 'nvie/vim-rst-tables'
 Plugin 'lepture/vim-jinja'
 Plugin 'aklt/plantuml-syntax'
+Plugin 'psf/black'
 
 " All of your Plugins must be added before the following line
 call vundle#end()            " required
@@ -126,3 +127,6 @@ set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\,
 
 " Force python3 for rst tables plugin
 let g:rst_prefer_python_version = 2
+
+" Set linelength for python
+let g:black_linelength = 80