Nvim Cargo Add
Description
A Neovim plugin written in Rust that provides commands for managing Cargo dependencies directly from your editor.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
nvim-cargo-add
A Neovim plugin for managing Cargo dependencies with auto-completion and floating window preview. This plugin provides a seamless interface for adding, removing, and managing Rust dependencies directly from Neovim.
Features
- Add dependencies with auto-completion from crates.io
- Add development dependencies
- Remove dependencies with auto-completion from current project
- List current dependencies in a floating window
- Auto-format Cargo.toml after changes
- Floating window preview for crate information
- Tab completion for crate names and versions
Prerequisites
- Neovim >= 0.9.0
- Rust toolchain
- Cargo
- lazy.nvim
Installation
Using [lazy.nvim](https://github.com/folke/lazy.nvim):
{
"nwiizo/nvim-cargo-add",
dependencies = { "saecki/crates.nvim" },
build = function()
vim.notify("Building nvim-cargo-add...", vim.log.levels.INFO)
local result = vim.fn.system("cargo build --release")
vim.notify("Build result: " .. result, vim.log.levels.INFO)
end,
config = function()
require("nvim_cargo_add").setup({
auto_format = true, -- Enable automatic formatting
float_preview = true, -- Enable floating window preview
})
end,
ft = { "toml" }, -- Load when editing Cargo.toml
cmd = {
"CargoAdd",
"CargoAddDev",
"CargoRemove",
"CargoDeps"
}
}
Usage
Commands
`:CargoAdd
[version]` - Add a new dependency - Example:
:CargoAdd serde 1.0 - Use Tab for auto-completion and preview
- Example:
`:CargoAddDev
[version]` - Add a new development dependency - Example:
:CargoAddDev pretty_assertions - Use Tab for auto-completion and preview
- Example:
`:CargoRemove
` - Remove a dependency - Example:
:CargoRemove serde - Auto-completes with current project dependencies
- Example:
`:CargoDeps` - List all current dependencies in a floating win
Related Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development