Allow window.documentation.max_{width, height} to be set to 0 (#1394)

To allow for using all available screen space, as we can omit a
max_height/max_width when creating a documentation popup). I've found this
to be useful with neovim-gtk's native GUI completion menus.
This commit is contained in:
Lyude
2024-03-22 03:38:43 -04:00
committed by GitHub
parent 43b460a2bd
commit b356f2c80c
2 changed files with 20 additions and 9 deletions

View File

@@ -728,12 +728,14 @@ window.completion.scrollbar~
*cmp-config.window.documentation.max_width*
window.documentation.max_width~
`number`
The documentation window's max width.
The documentation window's max width, can be set to 0 to use all available
space.
*cmp-config.window.documentation.max_height*
window.documentation.max_height~
`number`
The documentation window's max height.
The documentation window's max height, can be set to 0 to use all available
space.
*cmp-config.experimental.ghost_text*
experimental.ghost_text~