Browse Source

tweaks for jedi-vim and nvim

raylu 10 years ago
parent
commit
3aefdb3098
2 changed files with 4 additions and 3 deletions
  1. 3 3
      vim/autoload/jedi.vim
  2. 1 0
      vimrc

+ 3 - 3
vim/autoload/jedi.vim

@@ -88,10 +88,10 @@ function! s:init_python()
         endif
     endif
 
-    if has('python')
-        call jedi#setup_py_version(2)
-    elseif has('python3')
+    if has('python3')
         call jedi#setup_py_version(3)
+    elseif has('python')
+        call jedi#setup_py_version(2)
     else
         throw "jedi-vim requires Vim with support for Python 2 or 3."
     endif

+ 1 - 0
vimrc

@@ -50,6 +50,7 @@ nnoremap U :GundoToggle<CR>
 
 let g:jedi#use_tabs_not_buffers = 0
 let g:jedi#use_splits_not_buffers = 'winwidth'
+let g:jedi#popup_select_first = 0
 let g:pyflakes_autostart = 0
 map <F11> :PyflakesToggle<cr>