Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2023-07-18 11:37:44 +08:00
parent ccd57f9718
commit 74478277dd
4 changed files with 94 additions and 20 deletions

View File

@@ -29,10 +29,10 @@ cmp.setup({
['<C-e>'] = function(fallback)
fallback()
end,
['<CR>'] = cmp.mapping.confirm({
behavior = cmp.ConfirmBehavior.Replace,
select = true,
}),
-- ['<CR>'] = cmp.mapping.confirm({
-- behavior = cmp.ConfirmBehavior.Replace,
-- select = true,
-- }),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
-- ['<C-n>'] = cmp.mapping.select_next_item(),
-- ['<C-p>'] = cmp.mapping.select_prev_item(),