Hi there, is there a way to navigate to symbols in the std lib using xref? So I'm happily coding and I think "remind me what the Array methods are" so I want to type "M-x xref-somethingArray" and up pops Array. What magic do I replace ref-something with?
This works perfectly if I type Array in a .rs file in the main buffer, put my point on it, and navigate to it that way (C-h . or M-.), but I don't want to have to type the code first.
Is there a way of navigating the std lib from the command line?
With the LSP workspace symbol search, you can type Whatever* and it will search in all dependencies. With lsp-mode, that would be the lsp-ido-workspace-symbol or lsp-ivy-workspace-symbol command. I don't use eglot, so I don't know how it exposes this functionality (but the * thing is a rust-analyzer function and should work with every client).