summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorLuke Kershaw <35707277+l-kershaw@users.noreply.github.com>2021-09-19 19:36:54 +0100
committerGitHub <noreply@github.com>2021-09-19 20:36:54 +0200
commite53cf55225e30932237ed7bba5aa45c09eb08e87 (patch)
tree90faaff5f6a0e5f4ab4a3bdcab60c6a48d4f999e /lua
parent007b6e3061f446a6177a49115ae7bc5d7be8029a (diff)
fix: update themes after `layout_strategies` refactor (#1262)
Diffstat (limited to 'lua')
-rw-r--r--lua/telescope/themes.lua13
1 files changed, 4 insertions, 9 deletions
diff --git a/lua/telescope/themes.lua b/lua/telescope/themes.lua
index 01e303f..5b334b1 100644
--- a/lua/telescope/themes.lua
+++ b/lua/telescope/themes.lua
@@ -37,11 +37,11 @@ function themes.get_dropdown(opts)
preview_cutoff = 1, -- Preview should always show (unless previewer = false)
width = function(_, max_columns, _)
- return math.min(max_columns - 3, 80)
+ return math.min(max_columns, 80)
end,
height = function(_, _, max_lines)
- return math.min(max_lines - 4, 15)
+ return math.min(max_lines, 15)
end,
},
@@ -75,13 +75,8 @@ function themes.get_cursor(opts)
results_title = false,
layout_strategy = "cursor",
layout_config = {
- width = function(_, _, _)
- return 80
- end,
-
- height = function(_, _, _)
- return 6
- end,
+ width = 80,
+ height = 9,
},
borderchars = {
prompt = { "─", "│", " ", "│", "╭", "╮", "│", "│" },