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:
parent
8befcfc23b
commit
aa149d21ef
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ cmp.setup({
|
||||||
}),
|
}),
|
||||||
-- Accept currently selected item. If none selected, `select` first item.
|
-- Accept currently selected item. If none selected, `select` first item.
|
||||||
-- Set `select` to `false` to only confirm explicitly selected items.
|
-- 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)
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_next_item()
|
cmp.select_next_item()
|
||||||
|
|
Loading…
Reference in a new issue