mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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
88d75934c3
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
11
runtime/lua/vim/_meta/options.lua
generated
11
runtime/lua/vim/_meta/options.lua
generated
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user