Home

Awesome

vim-crates

When maintaining Rust projects, this plugin helps with updating the dependencies in Cargo.toml files. It uses the crates.io API to get all available versions of a crate and caches them.

curl needs to be installed.

Inspired by serayuzgur/crates.

Happy 🦀 everyone!

Configuration

Automatically run :CratesToggle when opening a Cargo.toml file:

if has('nvim')
  autocmd BufRead Cargo.toml call crates#toggle()
endif

Demo