fix: add space after prompt to look nicer (#136)

This commit is contained in:
231tr0n 2024-01-14 23:03:08 +05:30 committed by GitHub
parent d7dde6afff
commit 44a3638721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ M.select = function(config, items, opts, on_choice)
local item = items[lnum]
on_choice(item, lnum)
end
vim.fn["dressing#fzf_run"](labels, string.format('--prompt="%s"', opts.prompt), config.window)
vim.fn["dressing#fzf_run"](labels, string.format('--prompt="%s "', opts.prompt), config.window)
-- fzf doesn't have a cancel callback, so we have to make one.
vim.cmd([[autocmd TermClose <buffer> ++once lua require('dressing.select.fzf')._on_term_close()]])
end