From 2d3f86e95ea86fc52a40d74883993dbc4c43fc51 Mon Sep 17 00:00:00 2001 From: Olli Date: Sun, 22 Feb 2026 12:34:53 +0100 Subject: [PATCH] nvim: cmp: Change selection mode --- nvim/lua/plugins/cmp.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nvim/lua/plugins/cmp.lua b/nvim/lua/plugins/cmp.lua index 886e80f..0be4253 100644 --- a/nvim/lua/plugins/cmp.lua +++ b/nvim/lua/plugins/cmp.lua @@ -16,10 +16,8 @@ return { [""] = cmp.mapping.scroll_docs(4), [""] = cmp.mapping.complete(), [""] = cmp.mapping.close(), - [""] = cmp.mapping.confirm({ - behavior = cmp.ConfirmBehavior.Replace, - select = true, - }), + -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + [''] = cmp.mapping.confirm({ select = false }), }), sources = cmp.config.sources({ { name = "nvim_lsp" },