Add cmp.config.disable for opt-out default setting

This commit is contained in:
hrsh7th
2021-10-25 22:50:38 +09:00
parent 5f5e8442f1
commit f1da3adddc
4 changed files with 19 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ lua <<EOF
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.close(),
['<C-y>'] = cmp.config.disable, -- If you want to remove the default `<C-y>` mapping, You can specify `cmp.config.disable` value.
['<CR>'] = cmp.mapping.confirm({ select = true }),
},
sources = cmp.config.sources({