Add BufWrite for flake8

This commit is contained in:
flyingscorpio@arch-desktop 2020-04-28 11:23:34 +02:00
parent bd210172d3
commit 02a8be3987

View file

@ -49,7 +49,7 @@ Plugin 'VundleVim/Vundle.vim'
" AUTOCOMPLETION AND LINTING
Plugin 'ycm-core/YouCompleteMe' " Main autocompletion
Plugin 'nvie/vim-flake8' " Pep8 linting for Python
Plugin 'nvie/vim-flake8' " PEP8 linting for Python
Plugin 'dense-analysis/ale' " Vim integration for various linters
" HIGHLIGHTING
@ -188,6 +188,8 @@ augroup configgroup
" Run StripWhitespace function on write
autocmd BufWritePre * :StripWhitespace
" Run Flake8 on write in python files
autocmd BufWritePost *.py :call flake8#Flake8()
autocmd FileType c let g:ycm_extra_conf_globlist = ['~/*']
autocmd FileType java setlocal noexpandtab