format: stylua
This commit is contained in:
parent
502d5d4f28
commit
ee5fb7b42b
|
@ -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
|
||||
|
|
|
@ -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" },
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue