diff --git a/lua/astrocommunity/pack/rust/init.lua b/lua/astrocommunity/pack/rust/init.lua index 44b1a320c..cf00b1db5 100644 --- a/lua/astrocommunity/pack/rust/init.lua +++ b/lua/astrocommunity/pack/rust/init.lua @@ -50,6 +50,7 @@ return { }, { "Saecki/crates.nvim", + event = { "BufRead Cargo.toml" }, init = function() vim.api.nvim_create_autocmd("BufRead", { group = vim.api.nvim_create_augroup("CmpSourceCargo", { clear = true }),