Skip to content

saecki/crates.nvim

Repository files navigation

crates.nvim

CI LOC

A neovim plugin that helps managing crates.io dependencies.

Screencast.from.2023-03-11.05-29-22.webm

Setup

Installation

To use a stable release.

vim-plug

Plug 'saecki/crates.nvim', { 'tag': 'stable' }

lua require('crates').setup()

lazy.nvim

{
    'saecki/crates.nvim',
    tag = 'stable',
    config = function()
        require('crates').setup()
    end,
}
If you're feeling adventurous and want to use the newest features.

vim-plug

Plug 'saecki/crates.nvim'

lua require('crates').setup()

lazy.nvim

{
    'saecki/crates.nvim',
    config = function()
        require('crates').setup()
    end,
}
For lazy loading.
{
    'saecki/crates.nvim',
    event = { "BufRead Cargo.toml" },
    config = function()
        require('crates').setup()
    end,
}

Related projects