Merge pull request #84 from oskarrrrrrr/preview_window_size_settings

Improve preview window size calculation
This commit is contained in:
~hedy
2024-08-22 18:24:23 +08:00
committed by GitHub
4 changed files with 42 additions and 15 deletions

View File

@@ -257,6 +257,11 @@ Show defaults ~
-- screen width for preview window, ensure the result width is at least 50
-- characters wide.
relative_width = true,
height = 50, -- Percentage or integer of lines
min_height = 10, -- Minimum number of lines
-- Similar to relative_width, except the height is relative to the outline
-- window's height.
relative_height = true,
-- Border option for floating preview window.
-- Options include: single/double/rounded/solid/shadow or an array of border
-- characters.