format: stylua

This commit is contained in:
Steven Arcangeli 2022-09-15 07:41:02 -07:00
parent 502d5d4f28
commit ee5fb7b42b
2 changed files with 7 additions and 3 deletions

View File

@ -229,8 +229,12 @@ 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

View File

@ -12,7 +12,7 @@ M.custom_kind = {
local function make_display(entry)
local columns = {
{ entry.idx .. ':', 'TelescopePromptPrefix' },
{ entry.idx .. ":", "TelescopePromptPrefix" },
entry.text,
{ entry.client_name, "Comment" },
}