Don't pre-select 1st cmp suggestion by default

This prevents accidentally expanding a completion when trying
to start a newline.
lazyvim
Andy Teijelo 2023-02-02 10:53:18 -05:00
parent 8befcfc23b
commit aa149d21ef
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,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()