๐ cargo.nvim
๐ฆ A Neovim plugin that provides seamless integration with Rust's Cargo commands. Execute Cargo commands directly from Neovim with a floating window interface.

โจ Features
- ๐ง Execute Cargo commands directly from Neovim
- ๐ช Real-time output in floating windows
- ๐จ Syntax highlighting for Cargo output
- โก Asynchronous command execution
- ๐ Auto-closing windows on command completion
- โจ๏ธ Easy keyboard shortcuts for window management
contents
๐ฅ Installation
Using lazy.nvim
Using packer.nvim
use
๐ Requirements
- ๐ป Neovim >= 0.9.0
- ๐ฆ Rust and Cargo installed on your system
๐ ๏ธ Available Commands
- ๐
:CargoBench- Run benchmarks - ๐๏ธ
:CargoBuild- Build the project - ๐งน
:CargoClean- Remove generated artifacts - ๐
:CargoDoc- Generate project documentation - โจ
:CargoNew- Create a new Cargo project - โถ๏ธ
:CargoRun- Run the project - ๐งช
:CargoTest- Run tests - ๐
:CargoUpdate- Update dependencies - ๐ค
:CargoAutodd [args...]- Automatically manage dependencies
โ๏ธ Configuration
You can customize cargo.nvim by passing options to the setup function:
require.
โจ๏ธ Key Mappings
In the floating window:
qor<Esc>- Close the window<C-c>- Cancel the running command and close the window
๐ฅ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- ๐ด Fork the repository
- ๐ฟ Create a feature branch
- โ๏ธ Commit your changes
- ๐ Push to the branch
- ๐ซ Open a Pull Request
๐ License
MIT License - see the LICENSE file for details.
๐ Acknowledgements
This plugin is inspired by various Neovim plugins and the Rust community.