diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-18 22:53:17 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-04-18 22:53:17 +0200 |
commit | 8c2adae23708bc792c708b24c8ef08152b3e4ff2 (patch) | |
tree | af8c65ff676f1e95ca54504526865f8e3e83b27d | |
parent | 7a73b1352fde680b01f63ff232192b1a48ecffca (diff) |
nvim: cmp compatability update
-rw-r--r-- | .config/nvim/lua/setup/nvim-cmp.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/lua/setup/nvim-cmp.lua b/.config/nvim/lua/setup/nvim-cmp.lua index 4f08334..83b54cd 100644 --- a/.config/nvim/lua/setup/nvim-cmp.lua +++ b/.config/nvim/lua/setup/nvim-cmp.lua @@ -14,7 +14,7 @@ cmp.setup { require('luasnip').lsp_expand(args.body) end, }, - mapping = { + mapping = cmp.mapping.preset.insert({ ['<CR>'] = cmp.mapping.confirm({ select = true }), ['<C-n>'] = cmp.mapping.select_next_item(), ['<C-p>'] = cmp.mapping.select_prev_item(), @@ -42,7 +42,7 @@ cmp.setup { fallback() end end, { "i", "s" }), - }, + }), sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, |