From e468321a31ae1f5cabe8404f56bccede1c132a7e Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 28 Aug 2019 12:27:07 +0100 Subject: [PATCH] Add Black code formatter to vim --- states/vim/files/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/states/vim/files/vimrc b/states/vim/files/vimrc index b8cf54d..5980b64 100644 --- a/states/vim/files/vimrc +++ b/states/vim/files/vimrc @@ -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 -- 2.46.2