Now, I just started learning rust so this is definitely a complete noob move, but I wanted to just create an issue in case someone else has the same issue and comes here to search about it, like I did.
So I was having an issue with nvim-navic when opening a rust file that would report that none of the registered servers supported documentSymbol even though I had a check that would only attach nvim-navic if the server did support it.
After a lot of messing with settings, trying to figure out which extension was broken etc., it turns out it only happens on a lone .rs file. After running cargo init my issues were gone 🤦
Now, I just started learning rust so this is definitely a complete noob move, but I wanted to just create an issue in case someone else has the same issue and comes here to search about it, like I did.
So I was having an issue with
nvim-navic
when opening a rust file that would report that none of the registered servers supporteddocumentSymbol
even though I had a check that would only attachnvim-navic
if the server did support it.After a lot of messing with settings, trying to figure out which extension was broken etc., it turns out it only happens on a lone
.rs
file. After runningcargo init
my issues were gone 🤦