1
0
Fork 0

nvim: cmp: Change selection mode

This commit is contained in:
Olli 2026-02-22 12:34:53 +01:00
commit 2d3f86e95e

View file

@ -16,10 +16,8 @@ return {
["<C-f>"] = cmp.mapping.scroll_docs(4), ["<C-f>"] = cmp.mapping.scroll_docs(4),
["<C-Space>"] = cmp.mapping.complete(), ["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(), ["<C-e>"] = cmp.mapping.close(),
["<CR>"] = cmp.mapping.confirm({ -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
behavior = cmp.ConfirmBehavior.Replace, ['<CR>'] = cmp.mapping.confirm({ select = false }),
select = true,
}),
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = "nvim_lsp" }, { name = "nvim_lsp" },