[Q,FR] How do I get the documentation for an arbitrary symbol (inputted as a string)? #744
Unanswered
NightMachinery
asked this question in
Q&A
Replies: 2 comments 7 replies
-
LSP only works for the symbol at point, so I don't think you'll be easily able to make a function with that API. [By the way, did you miss the issue creating template altogether? People are creating issues when I ask to create conversations. Perhaps they are simply not seeing the template where I ask this] |
Beta Was this translation helpful? Give feedback.
7 replies
-
Narendra Joshi ***@***.***> writes:
Sorry for not being explicit. Maybe it is not related to this discussion. You are right, the problem I am facing
seems related to snippet expansion. Hopefully, this would explain
better what I mentioned earlier:
Thanks, your analysis seems useful, but please start a new discussion
for this as it is unrelated to the current topic (unless you have
complete reproduction information to start a new issue, in that case
feel free to create one).
João
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to implement some UI elements that show documentation.
![image](https://user-images.githubusercontent.com/36224762/134042304-e2755214-6c69-4396-9700-a05233d6aaf0.png)
E.g., I like to add a docstring to
ivy
. An example follows for elisp:Here is an eglot-managed Julia file, where the docstrings are shown as "not implemented":
![image](https://user-images.githubusercontent.com/36224762/134042409-873d9a75-a09c-4654-80ce-d444f1594f5a.png)
To accomplish this, I need to be able to query eglot for the docstrings of any symbol:
(eglot-imaginary-query-docstring "include")
I can't find how to do this.
Doom has a handy function for getting the documentation of the thing at point:
But this obviously only works for the symbol at point.
Beta Was this translation helpful? Give feedback.
All reactions