diff options
| author | johnybx <johnybx@users.noreply.github.com> | 2021-11-08 18:20:17 +0100 |
|---|---|---|
| committer | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2021-11-18 19:44:12 +0000 |
| commit | b952c2f852de1ec5ce7306ccd9262c97e27902d2 (patch) | |
| tree | 0ab0d8ec8efa9ab0ff4398665183bc7ad189ead2 /lua/telescope/config.lua | |
| parent | e9743620ce89cde7540df50d3181ea3a65a9759c (diff) | |
feat: add hide / unhide preview (#1305)
* feat: add hide / unhide preview or results and prompt
* fix edit actions while only preview window is active
* add option to start telescope without previewer -> "disable_previewer_at_startup"
* remove hide / unhide prompt and resutls, improve hide / unhide preview
* fix tests - check if popup window should be created with borders - popup.create does not support setting borderhighlight and border=false
* allow toggle preview even if preview is set to false
* reuse recalculate_layout in hide / unhide preview
* add docs to toggle preview
* check if preview window is valid window
* remove unnecessary changes
* cleanup, remove unnecessary changes
* close all previewers, refactor toggle preview code
[docgen] Update doc/telescope.txt
skip-checks: true
Diffstat (limited to 'lua/telescope/config.lua')
| -rw-r--r-- | lua/telescope/config.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 8e5b682..127307b 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -431,6 +431,7 @@ append( timeout = 250, treesitter = true, msg_bg_fillchar = "╱", + hide_on_startup = false, }, [[ This field handles the global configuration for previewers. @@ -511,6 +512,9 @@ append( Default: true - msg_bg_fillchar: Character to fill background of unpreviewable buffers with Default: "╱" + - hide_on_startup: Hide previewer when picker starts. Previewer can be toggled + with actions.toggle_preview. + Default: false ]] ) |
