rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.13k stars 181 forks source link

How to open document for the symbol under the cursor? #504

Closed yhslai closed 9 months ago

yhslai commented 1 year ago

According to the changelog, Rust-Analyzer has a command openDocs. It should open the documentation for the symbol under the cursor.

How could I call this from emacs?

psibi commented 9 months ago

If you are using lsp-mode, you need to use the function lsp-rust-analyzer-open-external-docs for it.