Add BufWrite for flake8
This commit is contained in:
parent
bd210172d3
commit
02a8be3987
1 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,7 @@ Plugin 'VundleVim/Vundle.vim'
|
||||||
|
|
||||||
" AUTOCOMPLETION AND LINTING
|
" AUTOCOMPLETION AND LINTING
|
||||||
Plugin 'ycm-core/YouCompleteMe' " Main autocompletion
|
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
|
Plugin 'dense-analysis/ale' " Vim integration for various linters
|
||||||
|
|
||||||
" HIGHLIGHTING
|
" HIGHLIGHTING
|
||||||
|
@ -188,6 +188,8 @@ augroup configgroup
|
||||||
|
|
||||||
" Run StripWhitespace function on write
|
" Run StripWhitespace function on write
|
||||||
autocmd BufWritePre * :StripWhitespace
|
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 c let g:ycm_extra_conf_globlist = ['~/*']
|
||||||
autocmd FileType java setlocal noexpandtab
|
autocmd FileType java setlocal noexpandtab
|
||||||
|
|
Loading…
Add table
Reference in a new issue