diff --git a/.gitmodules b/.gitmodules index aa28f010..dba876be 100644 --- a/.gitmodules +++ b/.gitmodules @@ -31,3 +31,6 @@ [submodule "pack/plugins/start/vim-tmux-navigator"] path = pack/plugins/start/vim-tmux-navigator url = https://github.com/christoomey/vim-tmux-navigator.git +[submodule "pack/plugins/start/jedi-vim"] + path = pack/plugins/start/jedi-vim + url = https://github.com/davidhalter/jedi-vim.git diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 6f530401..259676c3 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim @@ -1,2 +1,5 @@ setlocal shiftwidth=4 setlocal softtabstop=4 + +let b:ale_linters = ['pylint', 'jedils'] +let b:ale_fixers = ['black'] diff --git a/pack/plugins/start/jedi-vim b/pack/plugins/start/jedi-vim new file mode 160000 index 00000000..5d461570 --- /dev/null +++ b/pack/plugins/start/jedi-vim @@ -0,0 +1 @@ +Subproject commit 5d4615707fc7bce8a4f1fdaa5f7f07c11637bc30 diff --git a/vimrc b/vimrc index 1d90df77..6b8aa6f6 100644 --- a/vimrc +++ b/vimrc @@ -3,6 +3,7 @@ source $VIMRUNTIME/defaults.vim colorscheme slate set laststatus=2 +let mapleader="," set number set listchars=trail:.,tab:>_ @@ -34,9 +35,6 @@ let g:netrw_list_hide= '\(^\|\s\s\)\zs\.\S\+' let g:python_highlight_all = 1 -let g:ale_completion_enabled = 1 -set omnifunc=ale#completion#OmniFunc - let g:lightline = {} let g:lightline.component_expand = {