From 905efed6687db9da80c9ad65f042306feb43d84d Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 8 Sep 2024 10:59:28 -0400 Subject: [PATCH] switch completion list abort keymap to Ctrl+C so as to not overload Esc, which has been a little frustrating to me. sometimes i find myself with a completion list open, and realizing i want to switch to normal mode to do something. so i hit Esc only once thinking that will switch me to normal mode ... but because a completion list was open, that single Esc key press only aborted/closed the completion list and left me in insert mode ... which i then don't realize and end up accidentally typing a bunch of gibberish in to the buffer instead. --- lua/plugins/nvim-cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/nvim-cmp.lua b/lua/plugins/nvim-cmp.lua index 57ab2d5..33768cf 100644 --- a/lua/plugins/nvim-cmp.lua +++ b/lua/plugins/nvim-cmp.lua @@ -80,7 +80,7 @@ return { [''] = cmp.mapping.confirm { select = true }, -- Cancel/abort any selected/partial completion and close the completion list. - [''] = cmp.mapping.abort(), + [''] = cmp.mapping.abort(), -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines