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

This prevents accidentally expanding a completion when trying
to start a newline.
This commit is contained in:
Andy Teijelo 2023-02-02 10:53:18 -05:00
parent 8befcfc23b
commit aa149d21ef

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()