p-search provides a mechanism for customizing the search result preview (i.e. the lines that show you what was matched).
The default amount of lines to show in the preview section. This value can be changed on a session basis.
The preview function to use to display a search results preview
section. The current built in preview functions are
p-search-preview-from-hints-best-section
which finds the single
contiguous section with the best sore,
p-search-preview-from-hints-top-score'
which picks individual
lines resulting in the top score, and
p-search-preview-from-hints-first-n'
which just displays the
document’s beginning.
There are also commands available to you to change the size of the preview window if you find it too limiting.