emacs-lsp / lsp-treemacs

lsp-mode :heart: treemacs
GNU General Public License v3.0
403 stars 48 forks source link

jump to definition #124

Open windrg opened 2 years ago

windrg commented 2 years ago

Hi, Thanks for your great work. By the way, I’m looking for a method which jumps to its definition by pressing Enter on a certain function or a certain member in lsp-treemacs window. Is there a way? Please let me know.

yyoncho commented 2 years ago

You may check link-lint package, it integrates well with lsp-treemacs and treemacs in general.

windrg commented 2 years ago

Thanks for your prompt response. But I couldn’t find it for that. Most of things from googling doesn’t seem to indicate the one you’re pointing at. Could you give me URL for that, please?

yyoncho commented 2 years ago

https://github.com/noctuid/link-hint.el

windrg commented 2 years ago

Thanks a lot. Could you do me a favor once more, please? It would be nice for you to give me an example how to combine this packages with link-hint. I’m a very newbie in Emacs and also programming stuff.

yyoncho commented 2 years ago

link-hint is integrated with lsp-treemacs.

windrg commented 2 years ago

I figured out by myself. It is to invoke 'link-hint--action-at-point'. But unfotunately it doesn't go to the line in the lsp-treemacs. Could I get some advice from you, please?