Skip to content

Aityz/cratesearch.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Cratesearch.nvim

Cratesearch.nvim is a plugin for Rustaceans to search crates.io directly from their Neovim.
Cratesearch Example

🔥 Features

  • Easily configurable, just pass the table of options to the setup function.
  • Easy to use, call :CrateSearch [query] and you can search.

🚀 Usage

To use cratesearch, you can use the command :CrateSearch [QUERY]. This will make a HTTP request to crates.io's API (endpoint is https://crates.io/api/v1), and use that data to create a window where you can view the search results. To make this easier to use, in my personal configuration I remapped cs to :CrateSearch, to allow for easier searching. This is recommended if you don't have anything bound to cs yet.

📚 Dependencies

  • Neovim >=0.9 (compiled with Lua JIT)
  • Cargo (get it from here)
  • Curl (should already be installed on most systems)

🛠️ Installation

Lazy.nvim
{
  'Aityz/cratesearch.nvim',
  config = function()
      require("cratesearch").setup()
  end
}
Packer.nvim
use {
    'Aityz/cratesearch.nvim',
}

Note

You must call require("cratesearch").setup() for Cratesearch to work, lazy.nvim can do this automatically in the snippet above.

⚙️ Configuration

cratesearch.nvim does not support configuration as of yet.

About

Search crates.io from Neovim!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages