Jasha10 / crates.nvim

A neovim plugin that helps managing crates.io dependencies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crates.nvim

CI LOC

A neovim plugin that helps managing crates.io dependencies.

Feel free to open issues.

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

Setup

Installation

To use a stable release.

vim-plug

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

lua require('crates').setup()

lazy.nvim

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

vim-plug

Plug 'nvim-lua/plenary.nvim'
Plug 'saecki/crates.nvim'

lua require('crates').setup()

lazy.nvim

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

Related projects

About

A neovim plugin that helps managing crates.io dependencies

License:MIT License


Languages

Language:Lua 99.0%Language:Vim Script 0.9%Language:Makefile 0.1%