summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-12-03 16:50:44 +0000
committerGitHub <noreply@github.com>2021-12-03 17:50:44 +0100
commit582dbd4da8c7e4b1137013574acd37a096c2fbf2 (patch)
treee90528c7ecd3e21f7f2aa15110bdb5991b5bfd98
parent4016ebe8e8d42b9e270574a248eaf5edfe874a4f (diff)
defaults: change `center` layout default size (#1546)
* defaults: change `center` layout default size - now matches the description and has space for a preview above the central block
-rw-r--r--doc/telescope.txt4
-rw-r--r--lua/telescope/config.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt
index 5d4dd64..50d61f9 100644
--- a/doc/telescope.txt
+++ b/doc/telescope.txt
@@ -119,10 +119,10 @@ telescope.setup({opts}) *telescope.setup()*
prompt_position = "top"
},
center = {
- height = 0.9,
+ height = 0.4,
preview_cutoff = 40,
prompt_position = "top",
- width = 0.8
+ width = 0.5
},
cursor = {
height = 0.9,
diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua
index ccce136..7bd07dc 100644
--- a/lua/telescope/config.lua
+++ b/lua/telescope/config.lua
@@ -93,8 +93,8 @@ local layout_config_defaults = {
},
center = {
- width = 0.8,
- height = 0.9,
+ width = 0.5,
+ height = 0.4,
preview_cutoff = 40,
prompt_position = "top",
},