mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
builtin modules cannot be displayed, but show the path where they are located
This commit is contained in:
@@ -137,7 +137,8 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
|||||||
echo_highlight(
|
echo_highlight(
|
||||||
"Cannot get the definition of Python keywords.")
|
"Cannot get the definition of Python keywords.")
|
||||||
else:
|
else:
|
||||||
echo_highlight("Builtin modules cannot be displayed.")
|
echo_highlight("Builtin modules cannot be displayed (%s)."
|
||||||
|
% d.module_path)
|
||||||
else:
|
else:
|
||||||
if d.module_path != vim.current.buffer.name:
|
if d.module_path != vim.current.buffer.name:
|
||||||
vim.eval('jedi#new_buffer(%s)' % \
|
vim.eval('jedi#new_buffer(%s)' % \
|
||||||
|
|||||||
Reference in New Issue
Block a user