mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +08:00
fixed find related names
This commit is contained in:
42
.gitignore
vendored
42
.gitignore
vendored
@@ -1,2 +1,40 @@
|
|||||||
*.swp
|
test
|
||||||
*.pyc
|
*~
|
||||||
|
*.sw?
|
||||||
|
*.py[cod]
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
*.egg
|
||||||
|
*.egg-info
|
||||||
|
dist
|
||||||
|
build
|
||||||
|
eggs
|
||||||
|
parts
|
||||||
|
bin
|
||||||
|
var
|
||||||
|
sdist
|
||||||
|
develop-eggs
|
||||||
|
.installed.cfg
|
||||||
|
lib
|
||||||
|
lib64
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
.coverage
|
||||||
|
.tox
|
||||||
|
nosetests.xml
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
|
||||||
|
# Mr Developer
|
||||||
|
.mr.developer.cfg
|
||||||
|
.project
|
||||||
|
.pydevproject
|
||||||
|
.ropeproject
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ function! jedi#new_buffer(path)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:add_goto_window()
|
function! jedi#add_goto_window()
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
cclose
|
cclose
|
||||||
execute 'belowright copen 3'
|
execute 'belowright copen 3'
|
||||||
@@ -117,7 +117,7 @@ function! jedi#goto_window_on_enter()
|
|||||||
if l:data.bufnr
|
if l:data.bufnr
|
||||||
" close goto_window buffer
|
" close goto_window buffer
|
||||||
normal ZQ
|
normal ZQ
|
||||||
jedi#new_buffer(bufname(l:data.bufnr))
|
call jedi#new_buffer(bufname(l:data.bufnr))
|
||||||
call cursor(l:data.lnum, l:data.col)
|
call cursor(l:data.lnum, l:data.col)
|
||||||
else
|
else
|
||||||
echohl WarningMsg | echo "Builtin module cannot be opened." | echohl None
|
echohl WarningMsg | echo "Builtin module cannot be opened." | echohl None
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
|||||||
lnum=d.line_nr, col=d.column + 1,
|
lnum=d.line_nr, col=d.column + 1,
|
||||||
text=PythonToVimStr(d.description)))
|
text=PythonToVimStr(d.description)))
|
||||||
vim.eval('setqflist(%s)' % repr(lst))
|
vim.eval('setqflist(%s)' % repr(lst))
|
||||||
vim.eval('<sid>add_goto_window()')
|
vim.eval('jedi#add_goto_window()')
|
||||||
return definitions
|
return definitions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user