diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-04-14 22:05:20 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-05-29 22:57:31 +0100 |
commit | d403e4ef204485595f8866a6bf64aa2311fd0b49 (patch) | |
tree | 59a2acd7fb10770dff6bc38d0442d19dcdaedacd | |
parent | 7e8154bba4e7cdba3f182c4268fa469a3b152ffb (diff) | |
download | dotnvim-d403e4ef204485595f8866a6bf64aa2311fd0b49.tar.gz dotnvim-d403e4ef204485595f8866a6bf64aa2311fd0b49.zip |
Fixes aster latest CMP update
See: https://github.com/hrsh7th/nvim-cmp/issues/231
-rw-r--r-- | cmp.vim | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -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 |