From: Samir Benmendil Date: Thu, 4 Apr 2024 15:08:01 +0000 (+0100) Subject: nvim: tidy nvim-cmp mappings X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ce988f1bedf1b5c1ea824a57fc69d190f9e533d8 nvim: tidy nvim-cmp mappings --- 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, },