Closed willhansen closed 1 month ago
Hey :wave:
The "suspected cause" you listed is correct.
That request is made only by the :RustLsp workspaceSymbol
command.
:Telescope lsp_document_symbols
uses Neovim's built-in request, which, as you've correctly discovered, needs to be configured in the rust-analyzer settings.
Have you read the docs and searched existing issues?
Neovim version (nvim -v)
v0.10
Operating system/version
Operating System: Linux Mint 21.3, Nixpkgs 23.11
Output of :checkhealth rustaceanvim
How to reproduce the issue
Expected behaviour
see all symbols (like functions)
Actual behaviour
see only types
Suspected cause:
https://github.com/rust-lang/rust-analyzer/blob/a55e8bf09cdfc25066b77823cc98976a51af8a8b/crates/rust-analyzer/src/config.rs#L2758
all_symbols
https://github.com/mrcjkb/rustaceanvim/blob/90bfbc588fef7e44d82e5aba8dfc787e8d3f5d1a/lua/rustaceanvim/commands/workspace_symbol.lua#L14
allSymbols
The minimal config used to reproduce this issue.
Using lazy.nvim
Has issue:
This seems to fix it: