From 5c806f75b48ad7a334be5f9b945560ad06cc8f53 Mon Sep 17 00:00:00 2001 From: Anton Korniychuk <11693557+korniychuk@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:10:00 +0800 Subject: [PATCH] Fix of a breaking change in the last version of vim-cmp I'm not sure is it a bug or breaking change, but this config stopped work without specifying the `max_width` & `max_height`. How to reproduce the error: 1. open a .lua file 2. print `fn` somewhere 3. pres `` twice --- lua/user/cmp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/user/cmp.lua b/lua/user/cmp.lua index c5e2d3e..51efb35 100644 --- a/lua/user/cmp.lua +++ b/lua/user/cmp.lua @@ -119,6 +119,9 @@ cmp.setup { }, documentation = { border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" }, + max_width = 50, + max_height = 80, + }, experimental = { ghost_text = false,