From 69d58ba0a84c945feec9588ab6fcf4700a5e61e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 14 Nov 2023 03:48:44 +0100 Subject: cmp : fix documentation, CR do not auto select --- lua/user/core/cmp.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/user/core/cmp.lua b/lua/user/core/cmp.lua index 2266fbc..3a7a88f 100644 --- a/lua/user/core/cmp.lua +++ b/lua/user/core/cmp.lua @@ -68,7 +68,7 @@ cmp.setup { }, -- Accept currently selected item. If none selected, `select` first item. -- Set `select` to `false` to only confirm explicitly selected items. - [""] = cmp.mapping.confirm { select = true }, + [""] = cmp.mapping.confirm { select = false }, [""] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -125,7 +125,9 @@ cmp.setup { select = false, }, window = { - documentation = "native", + documentation = { + border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'}, + }, }, experimental = { ghost_text = true, -- grey autosuggestion -- cgit v1.1-2-g2b99