update
This commit is contained in:
parent
52e04cd8df
commit
8cf56f13e5
5 changed files with 7 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ return {
|
|||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
["<C-Space>"] = cmp.mapping.complete(),
|
||||
["<CR>"] = cmp.mapping.confirm({ select = true }), -- Auto-select first item
|
||||
["<CR>"] = cmp.mapping.confirm({ select = false }),
|
||||
["<C-n>"] = cmp.mapping.select_next_item(),
|
||||
["<C-p>"] = cmp.mapping.select_prev_item(),
|
||||
["<C-e>"] = cmp.mapping.abort(),
|
||||
|
|
@ -31,7 +31,8 @@ return {
|
|||
{ name = "path", group_index = 2 },
|
||||
{ name = "buffer", group_index = 2 },
|
||||
}),
|
||||
completion = { completeopt = "menu,menuone,noinsert" }, -- Auto-select first item
|
||||
preselect = cmp.PreselectMode.None,
|
||||
completion = { completeopt = "menu,menuone,noinsert,noselect" },
|
||||
window = {
|
||||
completion = cmp.config.window.bordered(),
|
||||
documentation = cmp.config.window.bordered(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue