config(nvim): nvim-cmp do not insert if select nothing

main
sudo pacman -Syu 2024-05-15 10:09:18 +07:00
parent 780153e131
commit 5b1d47e327
1 changed files with 2 additions and 1 deletions

View File

@ -218,7 +218,8 @@ require("lazy").setup({
},
mapping = cmp.mapping.preset.insert({
["<C-Space>"] = cmp.mapping.complete(),
["<CR>"] = cmp.mapping.confirm({ select = true }),
["<CR>"] = cmp.mapping.confirm(),
["<C-e>"] = cmp.mapping.abort(),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },