Fork me on GitHub
#emacs
<
2020-11-13
>
eunmin07:11:58

Is there any package that shows the definition of the spot where the cursor is at like the image I attached? This is the image I just made for explanation :)

hkjels07:11:51

I’m not an lsp-mode user myself, but I do believe it has something like that. There are some functions prefixed with peek in lsp-ui-mode I believe

eunmin08:11:23

Thanks, I'll try that. 🙂

hkjels08:11:16

You’re probably already aware of Cider I guess. It will show you the relevant bits, like parameters and documentation, but not the implementation itself AFAIK

eunmin12:11:10

I wrote some code for this function. It works like the image below! But it may has some bugs because it's experimental version. 🙂 https://github.com/eunmin/cider-show-def/blob/main/cider-show-def.el

ericdallo19:11:12

Hey, lsp-mode has lsp-ui-doc that does exaclty what you want 🙂 https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/

👍 3
tianshu16:11:23

I think posframe is a good option to build a popup window.

Louis Kottmann17:11:33

I use emacs, cider and company(-box) and I would like to show the company-box popup "on demand" (i.e: while not completing) For example: without candidates, just the cursor on a name, and it would show what company-box displays when in the candidate list

Louis Kottmann17:11:38

how can I achieve that?