Add default mapping as the same as native mapping.

This commit is contained in:
hrsh7th
2021-10-23 00:19:43 +09:00
parent e699962a49
commit 921ee264fd

View File

@@ -85,6 +85,8 @@ return function()
['<Up>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Select }), { 'i' }),
['<C-n>'] = mapping(mapping.select_next_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i' }),
['<C-p>'] = mapping(mapping.select_prev_item({ behavior = types.cmp.SelectBehavior.Insert }), { 'i' }),
['<C-y>'] = mapping(mapping.confirm({ select = false }), { 'i' }),
['<C-e>'] = mapping(mapping.abort(), { 'i' }),
},
formatting = {