From ce0b40897624e5d5c86b072b36a50f9854bac255 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 3 Sep 2024 18:56:18 -0400 Subject: [PATCH] add completion list keymapping to close the list --- lua/plugins/nvim-cmp.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 0f5e79e..a17cf5b 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -69,6 +69,8 @@ return { -- This will expand snippets if the LSP sent a snippet. [''] = cmp.mapping.confirm { select = true }, + [''] = cmp.mapping.close(), + -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines --[''] = cmp.mapping.confirm { select = true },