patch 9.1.1250: cannot set the maximum popup menu width
Problem: cannot set the maximum popup menu width
(Lucas Mior)
Solution: add the new global option value 'pummaxwidth'
(glepnir)
fixes: #10901
closes: #16943
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
index 035f6f7..0b7ba91 100644
--- a/runtime/doc/options.txt
+++ b/runtime/doc/options.txt
@@ -1,4 +1,4 @@
-*options.txt* For Vim version 9.1. Last change: 2025 Mar 26
+*options.txt* For Vim version 9.1. Last change: 2025 Mar 27
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6478,6 +6478,15 @@
Insert mode completion. When zero as much space as available is used.
|ins-completion-menu|.
+ *'pummaxwidth'* *'pmw'*
+'pummaxwidth' 'pmw' number (default 0)
+ global
+ Determines the maximum width to use for the popup menu for completion.
+ When zero, there is no maximum width limit, otherwise the popup menu
+ will never be wider than this value. Truncated text will be indicated
+ by "..." at the end. Takes precedence over 'pumwidth'.
+ |ins-completion-menu|.
+
*'pumwidth'* *'pw'*
'pumwidth' 'pw' number (default 15)
global