aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-04-14 22:05:20 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:31 +0100
commitd403e4ef204485595f8866a6bf64aa2311fd0b49 (patch)
tree59a2acd7fb10770dff6bc38d0442d19dcdaedacd
parent7e8154bba4e7cdba3f182c4268fa469a3b152ffb (diff)
downloaddotnvim-d403e4ef204485595f8866a6bf64aa2311fd0b49.tar.gz
dotnvim-d403e4ef204485595f8866a6bf64aa2311fd0b49.zip
Fixes aster latest CMP update
See: https://github.com/hrsh7th/nvim-cmp/issues/231
-rw-r--r--cmp.vim20
1 files changed, 2 insertions, 18 deletions
diff --git a/cmp.vim b/cmp.vim
index e720e65..4f8db13 100644
--- a/cmp.vim
+++ b/cmp.vim
@@ -8,29 +8,13 @@ lua <<EOF
vim.fn["vsnip#anonymous"](args.body)
end,
},
- mapping = {
+ mapping = cmp.mapping.preset.insert({
['<CR>'] = cmp.mapping.confirm({ select = true }),
- },
+ }),
sources = cmp.config.sources({
{ name = 'nvim_lsp' },
{ name = 'vsnip' },
})
})
-
- -- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
- cmp.setup.cmdline('/', {
- sources = {
- { name = 'buffer' }
- }
- })
-
- -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
- cmp.setup.cmdline(':', {
- sources = cmp.config.sources({
- { name = 'path' }
- }, {
- { name = 'cmdline' }
- })
- })
EOF