Replies: 2 comments 1 reply
-
Hey 👋 Thanks for the suggestion. Something like that should be implemented in rust-analyzer, not rustaceanvim. But if I understand correctly, what you're looking for is automatic addition of module imports when you confirm a completion suggestion? |
Beta Was this translation helpful? Give feedback.
-
That's not what I meant Here's a screenshot from RustRover When I create bar.rs, the IDE will add |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Feature description
It would be great if there was an automated way to include mod <module_name> in lib.rs (or the parent module's source file). This would reduce the need for manual edits when adding new modules to the project, improving the developer experience and preventing potential mistakes when forgetting to declare new modules.
RustRover has this function.
This text is translated by Google Translate, since I'm not a native English, I would explain more clearly if you don't understand
Beta Was this translation helpful? Give feedback.
All reactions