Skip to content

Commit

Permalink
fix(cmp): don't auto select the first completion candidate (ayamir#1118)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir authored and husheng committed Jan 3, 2024
1 parent a7a7153 commit 3f70459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ return function()
},
-- You can set mappings if you want
mapping = cmp.mapping.preset.insert({
["<CR>"] = cmp.mapping.confirm({ select = true, behavior = cmp.ConfirmBehavior.Replace }),
["<CR>"] = cmp.mapping.confirm({ select = false, behavior = cmp.ConfirmBehavior.Replace }),
["<C-p>"] = cmp.mapping.select_prev_item(),
["<C-n>"] = cmp.mapping.select_next_item(),
["<C-d>"] = cmp.mapping.scroll_docs(-4),
Expand Down

0 comments on commit 3f70459

Please # to comment.