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:
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user