-
Feature descriptionHi, I understand that features such as autoimport on completion are rust-analyzer features rather than something provided by this plugin; however, I'm finding it very difficult to understand how one is actually meant to set such configurations given the 3-4 different pieces of documentation that other issues point to. I haven't encountered any example of a realistic configuration that would be useful as a starting point. For example, I've been trying a few different iterations of this with no success whatsoever (no error messages, but the functionality is still not working):
If there are such examples somewhere and I've simply missed them, please point me to them! Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey 👋 You shouldn't need to configure rust-analyzer to enable that. |
Beta Was this translation helpful? Give feedback.
Hey 👋
You shouldn't need to configure rust-analyzer to enable that.
But import on completion isn't natively supported by Neovim. You need a completion plugin for that.
For example, nvim-cmp with the cmp-nvim-lsp extension.
And you need to make sure you register the plugin's capabilities with the
server.capabilities
field.