fix(lsp): don't override config.title in vim.lsp.buf.signature_help() #35075

This commit is contained in:
Maria José Solano
2025-07-26 19:47:28 -07:00
committed by GitHub
parent b4ba27c238
commit afebbd0f34

View File

@@ -407,11 +407,9 @@ function M.signature_help(config)
local sfx = total > 1 local sfx = total > 1
and string.format(' (%d/%d)%s', idx, total, can_cycle and ' (<C-s> to cycle)' or '') and string.format(' (%d/%d)%s', idx, total, can_cycle and ' (<C-s> to cycle)' or '')
or '' or ''
local title = string.format('Signature Help: %s%s', client.name, sfx) config.title = config.title or string.format('Signature Help: %s%s', client.name, sfx)
if config.border then if not config.border then
config.title = title table.insert(lines, 1, '# ' .. config.title)
else
table.insert(lines, 1, '# ' .. title)
if hl then if hl then
hl[1] = hl[1] + 1 hl[1] = hl[1] + 1
hl[3] = hl[3] + 1 hl[3] = hl[3] + 1