abzcoding / lvim

🧑‍🚀 Bloated LunarVim 🚀
MIT License
469 stars 65 forks source link

Question around hover with jdtls #129

Closed crisidev closed 1 year ago

crisidev commented 1 year ago

I took a lot of inspiration from your repo and I am facing an issue with jdtls that I am unable to debug.

If you have the time, would you mind to open a java file and try to get the hover of any class using K and tell me if it works for you?

For me it tries relentlessly to open a man page with the name of the class 😂

crisidev commented 1 year ago

Any other LSP works as expected..

abzcoding commented 1 year ago

Appreciate the kind words, mate,


This code is responsible for K . You can change it as you wish: https://github.com/abzcoding/lvim/blob/be2a4ad3b60ba9f1cbd1d3e3a78c880c1f72d0ec/lua/user/builtin.lua#L743-L761

Mine seems to be working fine:

Screenshot 2023-04-22 at 18 00 01
crisidev commented 1 year ago

Yeah I have a very similar function, but it is not called in Java. It is in any other language.. I'll dig more into this. Thanks for the confirmation that this works for you.