From cee8aa959efe3a1f6f7f0646e65b8944427441b5 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 29 Sep 2023 16:18:24 +0700 Subject: [PATCH] chore(nvim): nvim-cmp insert not replace --- data/nvim/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 7d388fb..157299b 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -333,7 +333,10 @@ require("lazy").setup({ mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.complete(), [""] = cmp.mapping.abort(), - [""] = cmp.mapping.confirm({ select = false }), + [""] = cmp.mapping.confirm({ + select = false, + behavior = cmp.ConfirmBehavior.Insert, + }), }), completion = { autocomplete = false,