disable lsp preselect

Wed, 08 Mar 2023 23:06:39 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 08 Mar 2023 23:06:39 -0600
changeset 1070
72b613de1102
parent 1069
0e871a1b59e3
child 1071
e76020af023d

disable lsp preselect

.config/nvim/lua/plugins/completion.lua file | annotate | diff | comparison | revisions
--- 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