mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
vim-patch:9.1.1284: not possible to configure pum truncation char
Problem: not possible to configure the completion menu truncation
character
Solution: add the "trunc" suboption to the 'fillchars' setting to
configure the truncation indicator (glepnir).
closes: vim/vim#17006
b87620466c
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -3035,8 +3035,8 @@ local options = {
|
||||
defaults = '',
|
||||
deny_duplicates = true,
|
||||
desc = [=[
|
||||
Characters to fill the statuslines, vertical separators and special
|
||||
lines in the window.
|
||||
Characters to fill the statuslines, vertical separators, special
|
||||
lines in the window and truncated text in the |ins-completion-menu|.
|
||||
It is a comma-separated list of items. Each item has a name, a colon
|
||||
and the value of that item: |E1511|
|
||||
|
||||
@@ -3060,6 +3060,8 @@ local options = {
|
||||
msgsep ' ' message separator 'display'
|
||||
eob '~' empty lines at the end of a buffer
|
||||
lastline '@' 'display' contains lastline/truncate
|
||||
trunc '>' truncated text in the
|
||||
|ins-completion-menu|.
|
||||
|
||||
Any one that is omitted will fall back to the default.
|
||||
|
||||
@@ -3091,9 +3093,14 @@ local options = {
|
||||
vertright WinSeparator |hl-WinSeparator|
|
||||
verthoriz WinSeparator |hl-WinSeparator|
|
||||
fold Folded |hl-Folded|
|
||||
foldopen FoldColumn |hl-FoldColumn|
|
||||
foldclose FoldColumn |hl-FoldColumn|
|
||||
foldsep FoldColumn |hl-FoldColumn|
|
||||
diff DiffDelete |hl-DiffDelete|
|
||||
eob EndOfBuffer |hl-EndOfBuffer|
|
||||
lastline NonText |hl-NonText|
|
||||
trunc one of the many Popup menu highlighting groups like
|
||||
|hl-PmenuSel|
|
||||
]=],
|
||||
expand_cb = 'expand_set_chars_option',
|
||||
full_name = 'fillchars',
|
||||
@@ -6477,8 +6484,10 @@ local options = {
|
||||
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'.
|
||||
wider than this value. Truncated text will be indicated by "trunc"
|
||||
value of 'fillchars' option.
|
||||
|
||||
This option takes precedence over 'pumwidth'.
|
||||
]=],
|
||||
full_name = 'pummaxwidth',
|
||||
scope = { 'global' },
|
||||
|
Reference in New Issue
Block a user