From 539f8c3c43cc2113241bbe33d0271ec6f1134109 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 2 Sep 2020 12:06:47 +0200 Subject: [PATCH] Switched from black to LSC for format-on-save --- nvim/init.vim | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index c5c3478..471447d 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -3,7 +3,6 @@ call plug#begin(stdpath('data') . '/plugged') Plug 'altercation/vim-colors-solarized' Plug 'itchyny/lightline.vim' -Plug 'Shougo/vimproc.vim', {'do': 'make'} Plug 'rhysd/vim-clang-format' Plug 'derekwyatt/vim-fswitch' @@ -41,8 +40,6 @@ Plug 'junegunn/vim-peekaboo' Plug 'alfredodeza/pytest.vim' -Plug 'psf/black', { 'branch': 'stable' } - Plug 'git@gitlab.softwareparadies.de:IDE/swp-vim.git' call plug#end() @@ -169,6 +166,6 @@ augroup color_column autocmd Filetype cpp,python set colorcolumn=101 augroup end -augroup format_black - autocmd BufWritePre *.py execute ':Black' +augroup auto_format + autocmd BufWritePre *.py :call LanguageClient#textDocument_formatting_sync() augroup end