diff --git a/lua/dressing/config.lua b/lua/dressing/config.lua index a1a5c11..0937677 100644 --- a/lua/dressing/config.lua +++ b/lua/dressing/config.lua @@ -6,6 +6,9 @@ local default_config = { -- Default prompt string default_prompt = "➤ ", + -- Can be 'left', 'right', or 'center' + prompt_align = "left", + -- When true, will close the modal insert_only = true, diff --git a/lua/dressing/input.lua b/lua/dressing/input.lua index eb4bd6d..b1b503c 100644 --- a/lua/dressing/input.lua +++ b/lua/dressing/input.lua @@ -293,7 +293,11 @@ setmetatable(M, { if ok then cmp.setup.buffer({ enabled = false }) end - util.add_title_to_win(winid, string.gsub(prompt, "^%s*(.-)%s*$", "%1"), { align = "left" }) + util.add_title_to_win( + winid, + string.gsub(prompt, "^%s*(.-)%s*$", "%1"), + { align = config.prompt_align } + ) vim.cmd([[ aug DressingHighlight