.config/nvim/lua/plugins/completion.lua

changeset 1070
72b613de1102
parent 1064
fcfa295076a8
child 1071
e76020af023d
--- a/.config/nvim/lua/plugins/completion.lua
+++ b/.config/nvim/lua/plugins/completion.lua
@@ -12,9 +12,10 @@ return {
       "hrsh7th/cmp-path",
       "quangnguyen30192/cmp-nvim-tags",
     },
-    opts = function()
+    config = function()
       local cmp = require("cmp")
-      return {
+      cmp.setup({
+        preselect = cmp.PreselectMode.None,
         completion = {
           keyword_length = 3,
         },
@@ -54,7 +55,7 @@ return {
           { name = "tags" },
           { name = "calc" },
         }),
-      }
+      })
     end,
   },
 }

mercurial