From 8c2adae23708bc792c708b24c8ef08152b3e4ff2 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Mon, 18 Apr 2022 22:53:17 +0200 Subject: nvim: cmp compatability update --- .config/nvim/lua/setup/nvim-cmp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/nvim') 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({ [''] = cmp.mapping.confirm({ select = true }), [''] = cmp.mapping.select_next_item(), [''] = cmp.mapping.select_prev_item(), @@ -42,7 +42,7 @@ cmp.setup { fallback() end end, { "i", "s" }), - }, + }), sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, -- cgit v1.2.3-70-g09d2