aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-28 15:37:49 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-03-29 21:12:32 +0800
commit62da4e2949cc906102bd768cdd40b274623822b6 (patch)
treef81120d9e4b80abd16b3ceb6c46149b550b5be18 /src/nvim/options.lua
parent89bc9455543abbd98bba752367ab5f2b83943931 (diff)
downloadrneovim-62da4e2949cc906102bd768cdd40b274623822b6.tar.gz
rneovim-62da4e2949cc906102bd768cdd40b274623822b6.tar.bz2
rneovim-62da4e2949cc906102bd768cdd40b274623822b6.zip
vim-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: vim/vim#10901 closes: vim/vim#16943 https://github.com/vim/vim/commit/88d75934c3d5bc4c406343f106e1a61638abd3a7 Co-authored-by: glepnir <glephunter@gmail.com>
Diffstat (limited to 'src/nvim/options.lua')
-rw-r--r--src/nvim/options.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
index 2f77d0ebb7..f261abf30e 100644
--- a/src/nvim/options.lua
+++ b/src/nvim/options.lua
@@ -6426,6 +6426,21 @@ local options = {
varname = 'p_ph',
},
{
+ abbreviation = 'pmw',
+ defaults = 0,
+ desc = [=[
+ Maximum width for the popup menu (|ins-completion-menu|). 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'.
+ ]=],
+ full_name = 'pummaxwidth',
+ scope = { 'global' },
+ short_desc = N_('maximum width of the popup menu'),
+ type = 'number',
+ varname = 'p_pmw',
+ },
+ {
abbreviation = 'pw',
defaults = 15,
desc = [=[