aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-03-29 21:33:13 +0800
committerGitHub <noreply@github.com>2025-03-29 21:33:13 +0800
commit295ab46ea0943fe9783ad5f8f03e0dbc6958db6a (patch)
treeded0a30afacf80107771a3a673cc58ef1f05ec96 /runtime/lua/vim/_meta/options.lua
parentd6a5bc4e8b69798b3accf17651b845d078a5743b (diff)
parent52b19e012474c19601a491bf0a0ab6ba15cfae8d (diff)
downloadrneovim-295ab46ea0943fe9783ad5f8f03e0dbc6958db6a.tar.gz
rneovim-295ab46ea0943fe9783ad5f8f03e0dbc6958db6a.tar.bz2
rneovim-295ab46ea0943fe9783ad5f8f03e0dbc6958db6a.zip
Merge pull request #33114 from zeertzjq/vim-9.1.1250
vim-patch:9.1.{1250,1255,1257}: 'pummaxwidth'
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index 5f93e42c35..9ff4770e7c 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -4802,6 +4802,17 @@ vim.o.ph = vim.o.pumheight
vim.go.pumheight = vim.o.pumheight
vim.go.ph = vim.go.pumheight
+--- 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'.
+---
+--- @type integer
+vim.o.pummaxwidth = 0
+vim.o.pmw = vim.o.pummaxwidth
+vim.go.pummaxwidth = vim.o.pummaxwidth
+vim.go.pmw = vim.go.pummaxwidth
+
--- Minimum width for the popup menu (`ins-completion-menu`). If the
--- cursor column + 'pumwidth' exceeds screen width, the popup menu is
--- nudged to fit on the screen.