Skip to content

Missing crates #166

@samueljoli

Description

@samueljoli

Description

Image Image

Neovim version

NVIM v0.12.0-nightly+3a140dd

Health check

============================================================================== crates: ✅ Checking plugins ~ - null-ls.nvim not found - neoconf.nvim not found - nvim-cmp not found - coq_nvim not found Checking external dependencies ~ - ✅ OK curl installed

Operating system and version

MacOS 15.1

Expected behavior

I would have expected that it would show valid crates found in crates.io

Actual behavior

No autocomplete for expected crate

Minimal config

require("crates").setup({
	lsp = {
		enabled = true,
		actions = true,
		completion = true,
		hover = true,
	},
	completion = {
		blink = {
			enabled = true,
			use_custom_kind = true,
			kind_text = {
				version = "Version",
				feature = "Feature",
			},
			kind_highlight = {
				version = "BlinkCmpKindVersion",
				feature = "BlinkCmpKindFeature",
			},
			kind_icon = {
				version = "",
				feature = "",
			},
		},
		crates = {
			enabled = true,
			max_results = 8,
			min_chars = 3,
		},
	},
})

Cargo.toml

[package]
name = "user_context"
version = "0.1.0"
edition = "2024"

[dependencies]
anyhow
typeshare = "1.0.4"
regex = "1.11.1"
lazy_static = "1.5.0"
thiserror = "2.0.12"

Steps to reproduce

  1. nvim --clean -u minimal.lua
  2. ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions