From 582dbd4da8c7e4b1137013574acd37a096c2fbf2 Mon Sep 17 00:00:00 2001 From: Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> Date: Fri, 3 Dec 2021 16:50:44 +0000 Subject: [PATCH] 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 --- doc/telescope.txt | 4 ++-- lua/telescope/config.lua | 4 ++-- 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", },