fix: update themes after layout_strategies refactor (#1262)

This commit is contained in:
Luke Kershaw
2021-09-19 19:36:54 +01:00
committed by GitHub
parent 007b6e3061
commit e53cf55225

View File

@@ -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 = { "", "", " ", "", "", "", "", "" },