simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Issue with `rust-tools` and `nvim-navic` #272

Closed Rolv-Apneseth closed 1 year ago

Rolv-Apneseth commented 1 year ago

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 🤦