-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixd/hover: hover documentation for options #174
Comments
This would be great. What would be especially helpful would be the type signature; that's what I'd want to see in my single line of emacs minibuffer when hovering. |
This is already shown in the completion list, I suppose I'd rather straightforward to do this. Contributors who wants to take this should: Write a class nixd/nixd/lib/Controller/Hover.cpp Line 88 in a8d7322 This content looks like: nixd/nixd/lib/Controller/Definition.cpp Line 170 in a8d7322
The class shown above is used for "providing" locations, thus for hover request the new class should provide "Hover" information. After writing that class, invoke nixd/nixd/lib/Controller/Definition.cpp Line 241 in a8d7322
here (in nixd/nixd/lib/Controller/Hover.cpp Line 106 in a8d7322
Finally, update the tests Should be a new entry, like "hover-options.md", put it here https://github.com/nix-community/nixd/blob/main/nixd/tools/nixd/test/ The content looks like https://github.com/nix-community/nixd/blob/main/nixd/tools/nixd/test/hover-package.md, and options list can be provided like this:
|
Anyone who wants to take this please comment here, and I can give you commit access after patches merged! (Functional improvements). |
I would like to try and implement this feature. |
I've opened the PR at #526 |
Give option documentation to our user.
The text was updated successfully, but these errors were encountered: