format: new version of stylua

This commit is contained in:
Steven Arcangeli 2022-09-15 07:43:30 -07:00
parent ee5fb7b42b
commit fbc798c34c
1 changed files with 2 additions and 6 deletions

View File

@ -229,12 +229,8 @@ local function create_or_update_win(config, prompt, opts)
}
end
-- First calculate the desired base width of the modal
local prefer_width = util.calculate_width(
config.relative,
config.prefer_width,
config,
parent_win
)
local prefer_width =
util.calculate_width(config.relative, config.prefer_width, config, parent_win)
-- Then expand the width to fit the prompt and default value
prefer_width = math.max(prefer_width, 4 + vim.api.nvim_strwidth(prompt))
if opts.default then