Added black
This commit is contained in:
parent
7c51568d3f
commit
b0c43f4da7
1 changed files with 9 additions and 3 deletions
|
@ -39,6 +39,8 @@ Plug 'Lenovsky/nuake'
|
||||||
|
|
||||||
Plug 'junegunn/vim-peekaboo'
|
Plug 'junegunn/vim-peekaboo'
|
||||||
|
|
||||||
|
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()
|
||||||
|
@ -148,7 +150,11 @@ nnoremap <F4> :Nuake<CR>
|
||||||
inoremap <F4> <C-\><C-n>:Nuake<CR>
|
inoremap <F4> <C-\><C-n>:Nuake<CR>
|
||||||
tnoremap <F4> <C-\><C-n>:Nuake<CR>
|
tnoremap <F4> <C-\><C-n>:Nuake<CR>
|
||||||
|
|
||||||
augroup cpp_settings
|
augroup color_column
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd Filetype cpp set colorcolumn=101
|
autocmd Filetype cpp,python set colorcolumn=101
|
||||||
augroup END
|
augroup end
|
||||||
|
|
||||||
|
augroup format_black
|
||||||
|
autocmd BufWritePre *.py execute ':Black'
|
||||||
|
augroup end
|
||||||
|
|
Loading…
Reference in a new issue