From d5490493aff268221697b095ee82227ec6ff5040 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Thu, 11 Oct 2018 14:54:47 +0800 Subject: [PATCH] More python stuff --- after/ftplugin/python.vim | 14 ++++++++++++++ vimrc | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 after/ftplugin/python.vim diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim new file mode 100644 index 0000000..60affea --- /dev/null +++ b/after/ftplugin/python.vim @@ -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 diff --git a/vimrc b/vimrc index 07aede9..36ca04b 100644 --- a/vimrc +++ b/vimrc @@ -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' }