nvim: cancel completion with ← and →

This commit is contained in:
tastytea 2022-08-13 03:02:22 +02:00
parent ea3a117963
commit 13cb23e418
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -37,7 +37,8 @@ packer.use {
['<S-PageDown>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(),
['<End>'] = cmp.mapping.abort(),
['<Left>'] = cmp.mapping.abort(),
['<Right>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = false }),
['<Tab>'] = cmp.mapping(function(fallback)
if cmp.visible() then