This commit is contained in:
Ray Elliott 2025-12-21 14:05:13 +00:00
commit 8cf56f13e5
5 changed files with 7 additions and 2 deletions

View file

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