artur-shaik / jc.nvim

Java autocompletion for neovim
49 stars 5 forks source link

Can not jump to definition of classes in JDK or jars. #3

Closed qianwch closed 2 years ago

qianwch commented 2 years ago

For example, pressing gd can not go to SpringApplication source. No response...

package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
artur-shaik commented 2 years ago

Can you check it now?

qianwch commented 2 years ago

It worked charmly! Now I am switching back from nvim-jdtls.

qianwch commented 2 years ago

Problem again, call "lua vim.lsp.buf.definition()" on library classes:

截屏2022-06-27 23 10 44
qianwch commented 2 years ago

Not a problem...