update rust cmp

This commit is contained in:
xfy
2024-09-11 09:17:15 +08:00
parent f6452ea37b
commit e7dfe6dcb7
4 changed files with 11 additions and 26 deletions

View File

@ -1,23 +1,4 @@
return {
{
"hrsh7th/nvim-cmp",
dependencies = {
{
"Saecki/crates.nvim",
event = { "BufRead Cargo.toml" },
opts = {
completion = {
cmp = { enabled = true },
},
},
},
},
---@param opts cmp.ConfigSchema
opts = function(_, opts)
opts.sources = opts.sources or {}
table.insert(opts.sources, { name = "crates" })
end,
},
{
"Saecki/crates.nvim",
event = { "BufRead Cargo.toml" },