From 4f759f7d9973510a86b02212d2d25641951bb1a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Fri, 8 Sep 2023 16:47:01 +0200 Subject: [PATCH] Only confirm explicitly selected snippets --- nvim/lua/lsp_config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/lsp_config.lua b/nvim/lua/lsp_config.lua index 1bfa56f..2b8ba85 100644 --- a/nvim/lua/lsp_config.lua +++ b/nvim/lua/lsp_config.lua @@ -47,7 +47,7 @@ cmp.setup({ documentation = cmp.config.window.bordered(), }, mapping = cmp.mapping.preset.insert({ - [''] = 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(select_next, { "i", "s" }), [""] = cmp.mapping(select_next, { "i", "s" }), [""] = cmp.mapping(select_previous, { "i", "s" }),