rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.1k stars 176 forks source link

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

Closed yhslai closed 4 months ago

yhslai commented 9 months 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 4 months ago

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