From 0a73bd4259498a4b295bef74210a0c9b251ceb78 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Fri, 18 Oct 2024 17:07:22 +0200 Subject: [PATCH] feat!(cmp): change autocomplete behaviour - BREAKING CHANGE: no more automatic popping droplist - BREAKING CHANGE: to complete instead of --- lua/complete.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/complete.lua b/lua/complete.lua index 9b08675..9f4b608 100644 --- a/lua/complete.lua +++ b/lua/complete.lua @@ -17,6 +17,7 @@ cmp.setup { }, completion = { completeopt = 'menu,menuone,noinsert', + autocomplete = false, }, mapping = cmp.mapping.preset.insert { [''] = cmp.mapping.select_next_item(), @@ -24,7 +25,7 @@ cmp.setup { [''] = cmp.mapping.scroll_docs(-4), [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete {}, - [''] = cmp.mapping.confirm { + [''] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, },