mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-05-11 09:08:51 +08:00
fix problems with relocating plugin (did it the wrong way around
This commit is contained in:
+3
-2
@@ -51,6 +51,7 @@ endfun
|
|||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
function! jedi#show_documentation()
|
function! jedi#show_documentation()
|
||||||
Python jedi_vim.show_documentation()
|
Python jedi_vim.show_documentation()
|
||||||
|
|
||||||
if bufnr("__doc__") > 0
|
if bufnr("__doc__") > 0
|
||||||
" If the __doc__ buffer is open in the current window, jump to it
|
" If the __doc__ buffer is open in the current window, jump to it
|
||||||
silent execute "sbuffer ".bufnr("__doc__")
|
silent execute "sbuffer ".bufnr("__doc__")
|
||||||
@@ -242,13 +243,13 @@ import vim
|
|||||||
# update the system path, to include the jedi path
|
# update the system path, to include the jedi path
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
sys.path.insert(0, os.path.join(vim.eval('expand("<sfile>:p:h")'), 'jedi'))
|
sys.path.insert(0, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'jedi'))
|
||||||
|
|
||||||
# to display errors correctly
|
# to display errors correctly
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
# update the sys path to include the jedi_vim script
|
# update the sys path to include the jedi_vim script
|
||||||
sys.path.insert(1, os.path.join(vim.eval('expand("<sfile>:p:h:h")'), 'plugin'))
|
sys.path.insert(1, vim.eval('expand("<sfile>:p:h:h")'))
|
||||||
try:
|
try:
|
||||||
import jedi_vim
|
import jedi_vim
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|||||||
Reference in New Issue
Block a user