From 44a36387210b30a595369f278b5e91f491a3fe7f Mon Sep 17 00:00:00 2001 From: 231tr0n <56352048+231tr0n@users.noreply.github.com> Date: Sun, 14 Jan 2024 23:03:08 +0530 Subject: [PATCH] fix: add space after prompt to look nicer (#136) --- lua/dressing/select/fzf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/dressing/select/fzf.lua b/lua/dressing/select/fzf.lua index ee1839d..f7451a2 100644 --- a/lua/dressing/select/fzf.lua +++ b/lua/dressing/select/fzf.lua @@ -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 ++once lua require('dressing.select.fzf')._on_term_close()]]) end