How to avoid pressing enter twice to create a new line

It seems like I have to create some special config on my nvim-cmp so I can create a new line just by pressing enter (avoiding suggestions)

It seems like changing complettopt solved the problem:

--vim.opt.completeopt = "menu,menuone,noselect"
vim.opt.completeopt = { "menuone", "noselect"},

I have also updated this line:

["<CR>"] = cmp.mapping.confirm { select = false },