From 1ba531aecd868767fb6642323ab6edc6744f0519 Mon Sep 17 00:00:00 2001 From: sfja Date: Tue, 22 Oct 2024 00:14:41 +0200 Subject: [PATCH] enter confirm cmp --- init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fbf9dde..c98b852 100644 --- a/init.lua +++ b/init.lua @@ -567,7 +567,10 @@ require("lazy").setup({ -- Accept ([y]es) the completion. -- This will auto-import if your LSP supports it. -- This will expand snippets if the LSP sent a snippet. - [""] = cmp.mapping.confirm({ select = true }), + [""] = cmp.mapping.confirm({ + select = true, + behavior = cmp.ConfirmBehavior.Insert, + }), -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines