Compare commits

..

2 commits

View file

@ -36,11 +36,9 @@ return {
{ "<C-e>", function() require("cmp").mapping.abort() end }, { "<C-e>", function() require("cmp").mapping.abort() end },
{ "<CR>", function() require("cmp").mapping.confirm({ select = false }) end }, { "<CR>", function() require("cmp").mapping.confirm({ select = false }) end },
}, },
config = function(_, opts) init = function()
local cmp = require("cmp") local cmp = require("cmp")
cmp.setup(opts)
vim.api.nvim_create_autocmd("BufRead", { vim.api.nvim_create_autocmd("BufRead", {
group = vim.api.nvim_create_augroup("CmpSourceCargo", { clear = true }), group = vim.api.nvim_create_augroup("CmpSourceCargo", { clear = true }),
pattern = "Cargo.toml", pattern = "Cargo.toml",