]> git.rmz.io Git - dotfiles.git/commitdiff
nvim: tidy nvim-cmp mappings
authorSamir Benmendil <me@rmz.io>
Thu, 4 Apr 2024 15:08:01 +0000 (16:08 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 4 Apr 2024 15:08:01 +0000 (16:08 +0100)
nvim/lua/plugins/coding.lua

index 3dac23b32d3fc6f575f5c168bdd649d184ed5196..131fc4acd874948c4d19f94aeeaa5948e7c7f66b 100644 (file)
@@ -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
         ["<C-n>"] = cmp.mapping.select_next_item({ behavior = cmp.SelectBehavior.Insert }),
         ["<C-p>"] = cmp.mapping.select_prev_item({ behavior = cmp.SelectBehavior.Insert }),
@@ -89,7 +89,7 @@ return {
             fallback()
           end
         end, { "i", "s" }),
-      })
+      }
     end,
   },