@@ -432,8 +432,13 @@ layout_strategies.horizontal = make_documented_layout(
432432---
433433layout_strategies .center = make_documented_layout (
434434 " center" ,
435- vim .tbl_extend (" error " , shared_options , {
435+ vim .tbl_extend (" force " , shared_options , {
436436 preview_cutoff = " When lines are less than this value, the preview will be disabled" ,
437+ height = {
438+ " Controls the height of the results window in the center layout." ,
439+ " Does not control the entire layout height — setting this too high can shrink or obscure the preview window." ,
440+ " See |resolver.resolve_height()|" ,
441+ },
437442 }),
438443 function (self , max_columns , max_lines , layout_config )
439444 local initial_options = p_window .get_initial_window_options (self )
@@ -449,6 +454,7 @@ layout_strategies.center = make_documented_layout(
449454 local width = resolve .resolve_width (width_opt )(self , max_columns , max_lines )
450455
451456 -- This sets the height for the whole layout
457+ -- Setting this too high can shrink or obscure the preview window.
452458 local height_opt = layout_config .height
453459 local height = resolve .resolve_height (height_opt )(self , max_columns , max_lines )
454460
0 commit comments