summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers.lua
diff options
context:
space:
mode:
authorDave Lage <rockerboo@gmail.com>2020-10-04 16:22:45 -0400
committerGitHub <noreply@github.com>2020-10-04 16:22:45 -0400
commit90f6fee17d37f07a7c69d2d63016f29896e4c84d (patch)
tree15a4f4579456ab2618f273c2cc1c929a79a419c1 /lua/telescope/pickers.lua
parenta1cab377db79019c1154d9d818bbdd7a5eea0c0e (diff)
parent1821eb11f17d66e01122972cc3bb5e12b68923f3 (diff)
Merge pull request #143 from nvim-lua/dropdown-fixes
fix: Results height configurable. Properly collapse on border = false
Diffstat (limited to 'lua/telescope/pickers.lua')
-rw-r--r--lua/telescope/pickers.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua
index 8f3483d..aa18db6 100644
--- a/lua/telescope/pickers.lua
+++ b/lua/telescope/pickers.lua
@@ -87,10 +87,13 @@ function Picker:new(opts)
-- TODO: If it's a list, of length 2, then it's a range of min to max?
height = get_default(opts.height, 0.8),
width = get_default(opts.width, config.values.width),
+
get_preview_width = get_default(opts.preview_width, config.values.get_preview_width),
+
results_width = get_default(opts.results_width, 0.8),
- winblend = get_default(opts.winblend, config.values.winblend),
+ results_height = get_default(opts.results_height, 1),
+ winblend = get_default(opts.winblend, config.values.winblend),
prompt_position = get_default(opts.prompt_position, config.values.prompt_position),
-- Border config