More python stuff

This commit is contained in:
Julian Ospald 2018-10-11 14:54:47 +08:00
parent 2fa24865db
commit d5490493af
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 16 additions and 0 deletions

14
after/ftplugin/python.vim Normal file
View File

@ -0,0 +1,14 @@
let g:ale_linters = {'python':['mypy']}
let g:ale_python_mypy_options = '--no-warn-incomplete-stub --ignore-missing-imports'
let g:ale_python_pycodestyle_options = '--ignore=W391'
let g:neoformat_enabled_python = ['autopep8']
augroup fmt
autocmd!
autocmd BufWritePre * undojoin | Neoformat
augroup END
let g:jedi#completions_enabled = 0

2
vimrc
View File

@ -129,6 +129,8 @@ Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
" python
Plug 'icedwater/vimpython', { 'for': 'python' }
Plug 'zchee/deoplete-jedi', { 'for': 'python' }
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
" scala
Plug 'derekwyatt/vim-scala', { 'for': 'scala' }