Skip to content

Commit

Permalink
doc(layout_strategies): document shared options for bottom_pane
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestrew committed Jan 23, 2024
1 parent 20efb38 commit 26e2abe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/telescope/pickers/layout_strategies.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
Expand Down

0 comments on commit 26e2abe

Please sign in to comment.