From d5bef7c52db2e2b803f87b50c8b11831ba523573 Mon Sep 17 00:00:00 2001 From: Hoang Nguyen Date: Sun, 14 May 2023 19:45:36 +0000 Subject: [PATCH] fix(pickers): display preview title at the same position as results title for bottom_pane layout (#2494) --- lua/telescope/pickers/layout_strategies.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/telescope/pickers/layout_strategies.lua b/lua/telescope/pickers/layout_strategies.lua index 98eacfd..5af7423 100644 --- a/lua/telescope/pickers/layout_strategies.lua +++ b/lua/telescope/pickers/layout_strategies.lua @@ -902,6 +902,9 @@ layout_strategies.bottom_pane = make_documented_layout( if type(results.title) == "string" then results.title = { { pos = "S", text = results.title } } end + if type(preview.title) == "string" then + preview.title = { { pos = "S", text = preview.title } } + end elseif layout_config.prompt_position == "bottom" then results.line = max_lines - results.height - (1 + bs) + 1 preview.line = results.line