Vim plugin to search crates using cargo search
, list them in a floating buffer and easily add them to Cargo.toml
.
If you are using vim-plug, you can install this plugin by adding:
Plug 'martskins/vim-cargo-search'
:CargoSearch crate-name
Select the crate you want by pressing <CR>
, this will yank the crate to your default register and open Cargo.toml
for you.
Paste the crate in the correct section by pressing <p>
as you would do normally.