ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.82k stars 451 forks source link

`<CR>` triggers autocompl instead of line break #1262

Closed johnnytim closed 1 month ago

johnnytim commented 1 month ago

Feature description

在编写C语言程序时,输入了一些字符后,会触发自动补全功能,此时按回车会触发自动补全而无法按回车换行,我想要按下回车是换行而不是补全,如何解决?

When writing a C language program, after typing some characters, the auto-completion function is triggered. At this point, pressing Enter triggers the auto-completion and I can't use Enter to create a new line. I want to press Enter to create a new line instead of auto-completing. How can I solve this issue?

Additional information

No response

ayamir commented 1 month ago

We don't auto select any completion candidate by default unless you press <Tab>/<C-n> or <S-Tab>/<C-p>. Make sure you are using latest config. Additionally, you can press <C-w> to close completion window.