forked from VimPlug/jedi-vim
update jedi notification
This commit is contained in:
@@ -13,6 +13,14 @@ import jedi.keywords
|
||||
from jedi._compatibility import unicode
|
||||
|
||||
|
||||
def echo_highlight(msg):
|
||||
vim.command('echohl WarningMsg | echom "%s" | echohl None' % msg)
|
||||
|
||||
|
||||
if not hasattr(jedi, '__version__') or jedi.__version__ < (0, 6, 0):
|
||||
echo_highlight('Please update your Jedi version, it is to old.')
|
||||
|
||||
|
||||
class PythonToVimStr(unicode):
|
||||
""" Vim has a different string implementation of single quotes """
|
||||
__slots__ = []
|
||||
@@ -26,10 +34,6 @@ class PythonToVimStr(unicode):
|
||||
return '"%s"' % s.replace('\\', '\\\\').replace('"', r'\"')
|
||||
|
||||
|
||||
def echo_highlight(msg):
|
||||
vim.command('echohl WarningMsg | echo "%s" | echohl None' % msg)
|
||||
|
||||
|
||||
def get_script(source=None, column=None):
|
||||
jedi.settings.additional_dynamic_modules = [b.name for b in vim.buffers
|
||||
if b.name is not None and b.name.endswith('.py')]
|
||||
|
||||
Reference in New Issue
Block a user