Only confirm explicitly selected snippets
This commit is contained in:
parent
3186006e19
commit
4f759f7d99
|
@ -47,7 +47,7 @@ cmp.setup({
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
mapping = cmp.mapping.preset.insert({
|
mapping = cmp.mapping.preset.insert({
|
||||||
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
['<CR>'] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
|
||||||
["<Tab>"] = cmp.mapping(select_next, { "i", "s" }),
|
["<Tab>"] = cmp.mapping(select_next, { "i", "s" }),
|
||||||
["<C-J>"] = cmp.mapping(select_next, { "i", "s" }),
|
["<C-J>"] = cmp.mapping(select_next, { "i", "s" }),
|
||||||
["<S-Tab>"] = cmp.mapping(select_previous, { "i", "s" }),
|
["<S-Tab>"] = cmp.mapping(select_previous, { "i", "s" }),
|
||||||
|
|
Loading…
Reference in New Issue