From 125668823788b15039f148ffc3c833559e228a19 Mon Sep 17 00:00:00 2001 From: Gabe Venberg Date: Thu, 22 Sep 2022 15:01:33 -0500 Subject: [PATCH] fixed autocomplete behavior. Previously, when you didnt want to do any completion and tried to put a newline directly after, nvim would intrepret the enter as choosing the first completion entry. --- neovim/.config/nvim/lua/cmp-lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neovim/.config/nvim/lua/cmp-lsp.lua b/neovim/.config/nvim/lua/cmp-lsp.lua index dd54cbd..e38c180 100644 --- a/neovim/.config/nvim/lua/cmp-lsp.lua +++ b/neovim/.config/nvim/lua/cmp-lsp.lua @@ -22,7 +22,7 @@ cmp.setup { [''] = cmp.mapping.close(), [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Insert, - select = true, + select = false, -- behavior = cmp.ConfirmBehavior.Replace, -- select = false, },