-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Jump to definition #35
Comments
@rollokb I'll see how @zchee feels about adding other features provided by Jedi's API. My opinion is that I'd like to focus on asynchronous completions since the other features are already well tested in vim-jedi. You can use vim-jedi's other features in tandem with deoplete-jedi by disabling its completions: let g:jedi#completions_enabled = 0 You may also find this useful for getting rid of the autocmd BufWinEnter '__doc__' setlocal bufhidden=delete |
What i hope is that we can have a unified interface for goto definition/ declaration and reflection just like completion rather than defining map for every lamguage manually. Integration with the completion plugins like deoplete looks good to me as it may about save computing resource. |
@rollokb @tweekmonster @zhou13 I think desirable to that sources can be written in each language because seems to be difficult than the word completion. ...Oh, Sorry. It's off topic. anyway, WDYT? |
Hi zchee, I am looking forward to your new project. It is not clear to me how a Goto source looks like. Do they just define several functions such as |
@zhou13 oh, sorry late reply. |
and yes. like |
Hi zchee, |
@zhou13 oh,
I mean, e.g. go to for Python code deogoto source is Now, So, I think If and, deoplete is completion engine. But deogoto are only when a user runs the but implementation of that interface is too difficult. that's I said
Also, What difference of the Sorry long sentence! |
I make it because it is hate \o/ lol |
I just wanted to register interest for this feature. I've just switched from vim to neovim, and in doing so replaced jedi-vim with deoplete-jedi. I used jedi-vim solely for |
Add me to the list of interested users 👍 |
I'm interested too. +1 |
@vext01 @tarasmatsyk @viniciusarcanjo To be clear, I do not plan to implement GoTo in deoplete-jedi. Sorry. BTW, My current state is below. Now I am developing https://github.com/zchee/clang-server. That's for deoplete-clang completion server. It implements might overlap the deoplete completion sources, but I want to write each GoTo source with native language.(like for python's GoTo written in Python, etc) Also recently, Microsoft's langserver protocol is also active. We should consider compatibility. We still have a long way to go. but I will do my best. |
FWIW: you can still use jedi-vim for this functionality in parallel. |
@blueyed Oh, sorry, in other words? |
@zchee My jedi-vim settings (but might be missing something, my vimrc is a mess - pick what you need): let g:jedi#auto_vim_configuration = 0
let g:jedi#goto_assignments_command = '' " dynamically done for ft=python.
let g:jedi#goto_definitions_command = '' " dynamically done for ft=python.
let g:jedi#use_tabs_not_buffers = 0 " current default is 1.
let g:jedi#rename_command = '<Leader>gR'
let g:jedi#usages_command = '<Leader>gu'
let g:jedi#completions_enabled = 0
let g:jedi#smart_auto_mappings = 1
" Unite/ref and pydoc are more useful.
let g:jedi#documentation_command = '<Leader>_K'
let g:jedi#auto_close_doc = 1 |
@zchee Maybe this is not a correct place to ask but I find your clang-server very interesting. For some complex C++ source (e.g. |
I'm trying to use jedi-vim and deoplete-jedi in parallel as @blueyed describes, but the documentation command always gives me an error like
even though the scratch window that pops up from deoplete-jedi can find the documentation successfully. Is there a way to bind that to a command so that it can be opened manually? |
I have the same behaviour as @sangaline. It doesn't look for |
I think it should be implemented by LSP plugin side. |
It would be really useful if there was an option to jump to the definition of a class or function, as you can already do this in vim-jedi
The text was updated successfully, but these errors were encountered: