fix crates.nvim breaking cmp

This commit is contained in:
krolyxon 2023-01-25 23:51:22 +05:30
parent 4a06eafe98
commit 1d777e68c7
1 changed files with 2 additions and 5 deletions

View File

@ -99,11 +99,8 @@ local plugins = {
event = { "BufRead Cargo.toml" },
config = function()
require("plugins.configs.others").crates()
end,
-- Add crates.nvim to the cmp sources as soon as we load the plugin
init = function()
local cmp = require("cmp");
cmp.setup.buffer({ sources = { { name = "crates" } } })
-- Add crates.nvim to the cmp sources as soon as we load the plugin
require("cmp").setup.buffer({ sources = { { name = "crates" } } })
end,
},