Commit 474b981
patch 9.1.1835: completion: not possible to style popup borders globally
Problem: not possible to style popup borders globally
Solution: Add the 'pumborder' option (Girish Palya)
This commit introduces a new global option, 'pumborder' ('pb'), that
allows users to define borders and optional decorations for the
completion popup menu.
```
Defines a border and optional decorations for the popup menu in
completion. The value is a comma-separated list of keywords.
Border styles (at most one):
"single"singleuse thin box-drawing characters
"double"doubleuse double-line box-drawing characters
"round"rounduse rounded corners
"ascii"asciiuse ASCII characters (-, |, +)
"custom:XXXXXXXX"
use eight characters given after "custom:",
in order: top, right, bottom, left,
topleft, topright, botright, botleft
Additional flags:
"margin"marginadds one-cell spacing inside the left and right border
"shadow"shadowdraws a shadow at the right and bottom edges
Highlight groups:
|hl-PmenuBorder|hl-PmenuBorderused for the border characters
|hl-PmenuShadow|hl-PmenuShadowused for the shadow
Examples: >
:set pumborder=single
:set pumborder=double,margin,shadow
:set pumborder=custom:─│─│┌┐┘└,shadow
Border styles using box-drawing characters ("single", "double",
"round") are only available when |'encoding'| is "utf-8" and
|'ambiwidth'| is "single". "margin" requires a border style.
See also: |ins-completion-menu|.
```
fixes: vim/vim#18441 (comment)
closes: #18486
closes: #17091
Signed-off-by: Girish Palya <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>1 parent 2c09368 commit 474b981
File tree
76 files changed
+1127
-95
lines changed- ci
- runtime
- doc
- syntax
- src
- po
- proto
- testdir
- dumps
- util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
76 files changed
+1127
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4683 | 4683 | | |
4684 | 4684 | | |
4685 | 4685 | | |
4686 | | - | |
| 4686 | + | |
| 4687 | + | |
4687 | 4688 | | |
4688 | 4689 | | |
4689 | 4690 | | |
| |||
4750 | 4751 | | |
4751 | 4752 | | |
4752 | 4753 | | |
| 4754 | + | |
| 4755 | + | |
4753 | 4756 | | |
4754 | 4757 | | |
4755 | 4758 | | |
| |||
6787 | 6790 | | |
6788 | 6791 | | |
6789 | 6792 | | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
| 6801 | + | |
| 6802 | + | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
| 6812 | + | |
| 6813 | + | |
| 6814 | + | |
| 6815 | + | |
| 6816 | + | |
| 6817 | + | |
| 6818 | + | |
| 6819 | + | |
| 6820 | + | |
| 6821 | + | |
| 6822 | + | |
| 6823 | + | |
| 6824 | + | |
| 6825 | + | |
| 6826 | + | |
6790 | 6827 | | |
6791 | 6828 | | |
6792 | 6829 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6024 | 6024 | | |
6025 | 6025 | | |
6026 | 6026 | | |
| 6027 | + | |
| 6028 | + | |
| 6029 | + | |
| 6030 | + | |
| 6031 | + | |
6027 | 6032 | | |
6028 | 6033 | | |
6029 | 6034 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
| 861 | + | |
861 | 862 | | |
862 | 863 | | |
863 | 864 | | |
| |||
887 | 888 | | |
888 | 889 | | |
889 | 890 | | |
| 891 | + | |
890 | 892 | | |
891 | 893 | | |
892 | 894 | | |
| |||
8384 | 8386 | | |
8385 | 8387 | | |
8386 | 8388 | | |
| 8389 | + | |
8387 | 8390 | | |
8388 | 8391 | | |
8389 | 8392 | | |
| |||
8392 | 8395 | | |
8393 | 8396 | | |
8394 | 8397 | | |
| 8398 | + | |
8395 | 8399 | | |
8396 | 8400 | | |
8397 | 8401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41838 | 41838 | | |
41839 | 41839 | | |
41840 | 41840 | | |
| 41841 | + | |
41841 | 41842 | | |
41842 | 41843 | | |
41843 | 41844 | | |
| 41845 | + | |
41844 | 41846 | | |
41845 | 41847 | | |
41846 | 41848 | | |
| |||
41880 | 41882 | | |
41881 | 41883 | | |
41882 | 41884 | | |
| 41885 | + | |
41883 | 41886 | | |
41884 | 41887 | | |
41885 | 41888 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
| 903 | + | |
| 904 | + | |
903 | 905 | | |
904 | 906 | | |
905 | 907 | | |
| |||
0 commit comments