mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +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:
@@ -6425,6 +6425,21 @@ local options = {
|
||||
type = 'number',
|
||||
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,
|
||||
|
Reference in New Issue
Block a user