format: apply new stylua formatting
This commit is contained in:
parent
fb4637995e
commit
1e60c07ae9
|
@ -184,12 +184,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
|
||||
|
|
Loading…
Reference in New Issue