summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorlouie <louie@example.com>2022-06-26 10:22:20 -0700
committerlouie <louie@example.com>2022-06-26 10:22:20 -0700
commitd61e2baf302e1e2226b6fb48216baaace0596335 (patch)
tree3a3bab754b92dff115027cbbaab9604a8b636f5c /lua
parent6b06898e35d9557ca83e1d4ff4aa048296ca5120 (diff)
Turn off autoselect completion
Diffstat (limited to 'lua')
-rw-r--r--lua/user/cmp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua
index 51135e0..4f91759 100644
--- a/lua/user/cmp.lua
+++ b/lua/user/cmp.lua
@@ -70,7 +70,7 @@ cmp.setup {
},
-- Accept currently selected item. If none selected, `select` first item.
-- Set `select` to `false` to only confirm explicitly selected items.
- ["<CR>"] = cmp.mapping.confirm { select = true },
+ ["<CR>"] = cmp.mapping.confirm { select = false },
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item()