From 3b09dcae3ca77c7a3a24f2705d358ac95ddab7a3 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 17 Mar 2024 14:35:15 +0100 Subject: [PATCH] abort complete using for [n]o --- lua/kickstart/plugins/cmp.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/cmp.lua b/lua/kickstart/plugins/cmp.lua index 4cada52..6cda6ac 100644 --- a/lua/kickstart/plugins/cmp.lua +++ b/lua/kickstart/plugins/cmp.lua @@ -54,10 +54,11 @@ return { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), - -- Accept ([y]es) the completion. + -- Accept ([y]es/[n]o) 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.abort(), [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4),