diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-07 10:54:36 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-09-07 10:54:36 -0400 |
| commit | c98c4917be3c9298872ed6a067a9aab31bdbfd54 (patch) | |
| tree | 367ccda726c66ee1b01bf0a7ce5bde13ac092ec3 /lua/telescope/pickers.lua | |
| parent | dffcef9470e0fff88d10a1e5b6d195980b977f4c (diff) | |
feat: no longer need to set minheight in window_options
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 075d40b..a3cfca9 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -186,6 +186,13 @@ function Picker:find() -- 3. Preview window local popup_opts = self:get_window_options(vim.o.columns, vim.o.lines, prompt_string) + -- `popup.nvim` massaging so people don't have to remember minheight shenanigans + popup_opts.results.minheight = popup_opts.results.height + popup_opts.prompt.minheight = popup_opts.prompt.height + if popup_opts.preview then + popup_opts.preview.minheight = popup_opts.preview.height + end + -- TODO: Add back the borders after fixing some stuff in popup.nvim local results_win, results_opts = popup.create('', popup_opts.results) local results_bufnr = a.nvim_win_get_buf(results_win) |
