Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/modprog/cargo.nvim
https://github.com/modprog/cargo.nvim
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/modprog/cargo.nvim
- Owner: ModProg
- License: mit
- Created: 2022-05-29T04:01:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T16:20:49.000Z (over 2 years ago)
- Last Synced: 2024-10-28T12:36:33.931Z (2 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cargo.nvim
## Installation
### `packer.nvim`
depends on `cargo-make`:```lua
use {
'ModProg/cargo.nvim',
run = 'makers release',
config = function()
require"cargo".setup()
end
}
```### Manually
1. Compile the code with `cargo build --release`
2. Copy `target/release/libcargo_nvim.so` to your nvim directory `lua/cargo.so`
3. Add `require"cargo".setup()` to your nvim initialization (i.e. `init.lua`)## Commands
- `:Cargo add ...` adds a dependency + reloads workspace (depends on `cargo-edit`)
- `:Cargo rm dep` removes a dependency + reloads workspace (depends on `cargo-edit`)
- `:Cargo reload` reloads workspace
- `:Cargo ...` runs any other cargo command in a terminal