feat(pickers): fully customizable layout (#2572)

This commit is contained in:
Munif Tanjim
2023-09-27 12:34:22 +06:00
committed by GitHub
parent 5c91b855b8
commit 84d53dfdbe
15 changed files with 648 additions and 201 deletions

View File

@@ -75,12 +75,12 @@ action_generate.refine = function(prompt_bufnr, opts)
end
-- title
if opts.prompt_title and current_picker.prompt_border then
current_picker.prompt_border:change_title(opts.prompt_title)
if opts.prompt_title and current_picker.layout.prompt.border then
current_picker.layout.prompt.border:change_title(opts.prompt_title)
end
if opts.results_title and current_picker.results_border then
current_picker.results_border:change_title(opts.results_title)
if opts.results_title and current_picker.layout.results.border then
current_picker.layout.results.border:change_title(opts.results_title)
end
local results = {}