feat: more prompt position strategies (#1280)

* feat: allow `prompt_position` for `vertical` layout strategy

* feat: allow `prompt_position` for `bottom_pane` layout strategy

* stylua

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

* refactor: switch to `string.format`

* stylua

* feat: allow `prompt_position` for `center` layout strategy

* feat: handle user defined `prompt_position` within themes

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

* fix: tweak `center` layout

- ensure `prompt` title is visible when `prompt_position="bottom"`

* fix: refactor `center` tweak

- move title to bottom of picker when `prompt_position="bottom"`

* fix: tweak `bottom_pane` layout

* stylua

Co-authored-by: Github Actions <actions@github>
This commit is contained in:
Luke Kershaw
2021-10-04 20:16:58 +01:00
committed by GitHub
parent e39ed31f17
commit be600b5421
4 changed files with 79 additions and 19 deletions

View File

@@ -87,6 +87,7 @@ local layout_config_defaults = {
vertical = {
width = 0.8,
height = 0.9,
prompt_position = "bottom",
preview_cutoff = 40,
},
@@ -94,6 +95,7 @@ local layout_config_defaults = {
width = 0.8,
height = 0.9,
preview_cutoff = 40,
prompt_position = "top",
},
cursor = {
@@ -104,6 +106,7 @@ local layout_config_defaults = {
bottom_pane = {
height = 25,
prompt_position = "top",
},
}