doc(layout_strategies): document shared options for bottom_pane (#2887)

* doc(layout_strategies): document shared options for `bottom_pane`

* [docgen] Update doc/telescope.txt
skip-checks: true

---------

Co-authored-by: Github Actions <actions@github>
This commit is contained in:
James Trew
2024-01-22 22:13:22 -05:00
committed by GitHub
parent 20efb38649
commit 36dce6261a
2 changed files with 22 additions and 1 deletions

View File

@@ -847,9 +847,15 @@ end)
--- Bottom pane can be used to create layouts similar to "ivy".
---
--- For an easy ivy configuration, see |themes.get_ivy()|
---@eval { ["description"] = require("telescope.pickers.layout_strategies")._format("bottom_pane") }
layout_strategies.bottom_pane = make_documented_layout(
"bottom_pane",
vim.tbl_extend("error", shared_options, {
vim.tbl_extend("error", {
height = shared_options.height,
mirror = shared_options.mirror,
scroll_speed = shared_options.scroll_speed,
prompt_position = shared_options.prompt_position,
}, {
preview_width = { "Change the width of Telescope's preview window", "See |resolver.resolve_width()|" },
preview_cutoff = "When columns are less than this value, the preview will be disabled",
}),