Open
Description
For larger windows, dedicating more lines for context may be OK, less so for smaller windows.
It would be nice if max_lines
parameter could accept something like "10%" - meaning 10% of the current window height.
Also, max_lines could accept function value, so that the user could come up with even more sophisticated logic.