Telescope.nvim extension for switching between cargo workspaces in Rust projects. Useful for navigating rust monorepos with many crates.
This plugin requires nvim-telescope and Cargo to be installed.
Using vim-plug:
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'mattcairns/telescope-cargo-workspace'
Using lazy.nvim:
{
'nvim-telescope/telescope.nvim', tag = '0.1.1',
dependencies = { 'nvim-lua/plenary.nvim' }
}
{ 'mattcairns/telescope-cargo-workspace' }
To use this extension, add the following code to your init.vim
file:
require("telescope").load_extension("telescope-cargo-workspace")
The following commands are provided:
Show all the crates in the current Cargo workspace and allows you to switch Neovims current working directory to the chosen crate.
:Telescope telescope-cargo-workspace switch
MIT License. See LICENSE file for details.