From e87cec15a435b89d825a2394669cf394e0df11f1 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 13 Nov 2024 13:30:33 +0100 Subject: [PATCH] feat(nvim-cmp): disable auto-select on enter --- neovim/nvim-cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neovim/nvim-cmp.lua b/neovim/nvim-cmp.lua index 6be73a3..098ce04 100644 --- a/neovim/nvim-cmp.lua +++ b/neovim/nvim-cmp.lua @@ -28,7 +28,7 @@ cmp.setup({ [""] = cmp.mapping.scroll_docs(4), [""] = cmp.mapping.complete({}), [""] = cmp.mapping.abort(), - [""] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. + [""] = cmp.mapping.confirm({ select = false }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item()