Switched from black to LSC for format-on-save
This commit is contained in:
parent
f359aaa6a2
commit
539f8c3c43
1 changed files with 2 additions and 5 deletions
|
@ -3,7 +3,6 @@ call plug#begin(stdpath('data') . '/plugged')
|
||||||
Plug 'altercation/vim-colors-solarized'
|
Plug 'altercation/vim-colors-solarized'
|
||||||
Plug 'itchyny/lightline.vim'
|
Plug 'itchyny/lightline.vim'
|
||||||
|
|
||||||
Plug 'Shougo/vimproc.vim', {'do': 'make'}
|
|
||||||
Plug 'rhysd/vim-clang-format'
|
Plug 'rhysd/vim-clang-format'
|
||||||
|
|
||||||
Plug 'derekwyatt/vim-fswitch'
|
Plug 'derekwyatt/vim-fswitch'
|
||||||
|
@ -41,8 +40,6 @@ Plug 'junegunn/vim-peekaboo'
|
||||||
|
|
||||||
Plug 'alfredodeza/pytest.vim'
|
Plug 'alfredodeza/pytest.vim'
|
||||||
|
|
||||||
Plug 'psf/black', { 'branch': 'stable' }
|
|
||||||
|
|
||||||
Plug 'git@gitlab.softwareparadies.de:IDE/swp-vim.git'
|
Plug 'git@gitlab.softwareparadies.de:IDE/swp-vim.git'
|
||||||
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
@ -169,6 +166,6 @@ augroup color_column
|
||||||
autocmd Filetype cpp,python set colorcolumn=101
|
autocmd Filetype cpp,python set colorcolumn=101
|
||||||
augroup end
|
augroup end
|
||||||
|
|
||||||
augroup format_black
|
augroup auto_format
|
||||||
autocmd BufWritePre *.py execute ':Black'
|
autocmd BufWritePre *.py :call LanguageClient#textDocument_formatting_sync()
|
||||||
augroup end
|
augroup end
|
||||||
|
|
Loading…
Reference in a new issue