You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aerial Info
-----------
Filetype: c
Configured backends:
lsp (supported)
treesitter (supported)
markdown (not supported) [Filetype is not markdown]
man (not supported) [Filetype is not man]
Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct
Describe the bug
When opening a C file buffer with clangd LSP running, the first invocation of Telescope aerial or AerialNavOpen shows a significantly reduced list of symbols. Subsequent invocations of the same commands show the complete list of symbols as expected.
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
nvim -u repro.lua
Open a C source file
Wait for clangd LSP to attach
Run :Telescope aerial or :AerialNavOpen
Observe the limited number of symbols
Run the same command again
Observe that now much more symbols are properly displayed
Expected Behavior
The first invocation of Telescope aerial or AerialNavOpen should show the complete list of symbols immediately, without requiring a second invocation.
Aerial lazily attaches to the buffer, so even if the LSP is already attached, we don't fetch symbols until you do something with aerial. Fetching LSP symbols requires a RPC request, so there's a bit of a time delay while waiting for it. Since LSP symbols on first attach aren't immediate, we display the treesitter symbols first because those are available nearly immediately. When opening the normal aerial buffer, it will display the treesitter symbols first, then update to the LSP symbols. When using AerialNav or the telescope extension, there is no live-update when the LSP symbols come in.
As a workaround, I'd recommend disabling the treesitter backend for C.
Neovim version (nvim -v)
NVIM v0.10.2
Operating system/version
Windows 11 Pro 23H2
Output of :AerialInfo
Describe the bug
When opening a C file buffer with clangd LSP running, the first invocation of
Telescope aerial
orAerialNavOpen
shows a significantly reduced list of symbols. Subsequent invocations of the same commands show the complete list of symbols as expected.What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
:Telescope aerial
or:AerialNavOpen
Expected Behavior
The first invocation of
Telescope aerial
orAerialNavOpen
should show the complete list of symbols immediately, without requiring a second invocation.Minimal example file
test.c
:Minimal init.lua
Additional context
AerialOpen
properly shows the full symbol list even at the first command execution.The text was updated successfully, but these errors were encountered: