From 4b042c6ed6a802b8f48b78d9ddd138b3c6416973 Mon Sep 17 00:00:00 2001 From: Adam 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/lua/setup') 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