Search code examples
vimvim-plugin

How to go to parent class in Vim coc-java


I’m using neoclide coc-java plugin in my vim config.

https://github.com/neoclide/coc-java

Let’s say I have some interface and its implementation. I have opened implementation, my cursor is on implementation of a interface’s method and I want to go to the interface method. How can I do it? There are ‘go to definition’ and so on but I still cannot find such functionality... Is this possible?

I tried:

<Plug>(coc-declaration)

calling on implemented method with no luck:

Error on notification "jumpDeclaration": declaration provider not found for current buffer, your language server don't support it.

Thanks a lot!


Solution

  • It seems like con-java does not support it (or LS). So the decision is to use ctags... I've created issue there:

    https://github.com/neoclide/coc-java/issues/153

    and will use ctags