simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 100 forks source link

Rust: doesn't show function params or `let __ = ...` symbols #195

Closed ethanmsl closed 1 year ago

ethanmsl commented 1 year ago

Images below of Rust where it shows larger structures (e.g. functions and impl blocks), but a let foo = ... doesn't result in foo being listed nor are function parameters listed.
By contrast, these seem to work normally in Lua and Python.

Rust LSP: Rust-Analyzer (and your own rust-tools plugin) Lua LSP: Sumneko-Lua Python LSP: Pyright

NVIM v0.8.2 Built type: Release LuaJIT 2.1.0-beta3 Compiled by brew@HMBRW-A-001-M1-005.local

Rust (not as expected):

Rust (1) - SymbOutline Rust (2) - SymbOutline

Lua & Python (as expected)

Lua - SymbOutline Python - SymbOutline
simrat39 commented 1 year ago

Yeah this is a rust-analyzer thing, its just how they report symbols, we can't do anything about this