mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-09 20:15:01 +08:00
12
.gitignore
vendored
12
.gitignore
vendored
@@ -1,2 +1,10 @@
|
|||||||
*.swp
|
*~
|
||||||
*.pyc
|
*.sw?
|
||||||
|
*.py[cod]
|
||||||
|
.coverage
|
||||||
|
.tox
|
||||||
|
.mr.developer.cfg
|
||||||
|
.project
|
||||||
|
.pydevproject
|
||||||
|
.ropeproject
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ function! jedi#new_buffer(path)
|
|||||||
set filetype=python
|
set filetype=python
|
||||||
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'
|
||||||
@@ -120,7 +120,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
|
||||||
|
|||||||
@@ -148,7 +148,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