From ce988f1bedf1b5c1ea824a57fc69d190f9e533d8 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Thu, 4 Apr 2024 16:08:01 +0100 Subject: [PATCH] nvim: tidy nvim-cmp mappings --- nvim/lua/plugins/coding.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/plugins/coding.lua b/nvim/lua/plugins/coding.lua index 3dac23b..131fc4a 100644 --- a/nvim/lua/plugins/coding.lua +++ b/nvim/lua/plugins/coding.lua @@ -60,7 +60,7 @@ return { completeopt = "menu,menuone,noselect", }) -- TODO: review if I want to keep any of LazyVim's mappings - opts.mapping = cmp.mapping.preset.insert({ + opts.mapping = { -- lazyvims [""] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }), [""] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }), @@ -89,7 +89,7 @@ return { fallback() end end, { "i", "s" }), - }) + } end, }, -- 2.48.1