Open charlesxsh opened 2 years ago
It looks from the error that the Cargo.toml file wasn't in the correct place. Are you sure the project structure was correct with the Cargo.toml file in the same directory as the src/ directory?
If you've verified that that is correct I would recommend just starting with a basic rust-rools setup as outlined in this project's README. Also make sure that you have the latest version of the plugin and Rust Analyzer installed.
I followed the tutorial at https://sharksforarms.dev/posts/neovim-rust/ to set up a nvim environment for rust However, when I try to open an rust file in a directory contains Cargo.toml, it has following error:
The command I used is
nvim <project dir>/src/main.rs
. Does anyone know what is going on here? thanks!