fix crates.nvim breaking cmp
This commit is contained in:
parent
4a06eafe98
commit
1d777e68c7
|
|
@ -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" } } })
|
||||
require("cmp").setup.buffer({ sources = { { name = "crates" } } })
|
||||
end,
|
||||
},
|
||||
|
||||
|
|
|
|||
Reference in New Issue