chore(nvim): nvim-cmp insert not replace

main
sudo pacman -Syu 2023-09-29 16:18:24 +07:00
parent bc2bbacf7f
commit cee8aa959e
1 changed files with 4 additions and 1 deletions

View File

@ -333,7 +333,10 @@ require("lazy").setup({
mapping = cmp.mapping.preset.insert({
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.abort(),
["<CR>"] = cmp.mapping.confirm({ select = false }),
["<CR>"] = cmp.mapping.confirm({
select = false,
behavior = cmp.ConfirmBehavior.Insert,
}),
}),
completion = {
autocomplete = false,