Merge pull request #73 from TheBlob42/master

fix(fzf-lua): pass prompt option to fzf
This commit is contained in:
Steven Arcangeli 2022-11-18 13:09:08 -08:00 committed by GitHub
commit 7894d5bc50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -11,7 +11,10 @@ M.select = function(config, items, opts, on_choice)
table.insert(labels, string.format("%d: %s", i, opts.format_item(item)))
end
local prompt = (opts.prompt or "Select one of") .. "> "
local fzf_opts = vim.tbl_deep_extend("keep", config, {
prompt = prompt,
fzf_opts = {
["--no-multi"] = "",
["--preview-window"] = "hidden:right:0",