mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(lsp): don't override config.title
in vim.lsp.buf.signature_help()
#35075
(cherry picked from commit afebbd0f34
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
990b320592
commit
6b820258cd
@@ -389,11 +389,9 @@ function M.signature_help(config)
|
||||
local sfx = total > 1
|
||||
and string.format(' (%d/%d)%s', idx, total, can_cycle and ' (<C-s> to cycle)' or '')
|
||||
or ''
|
||||
local title = string.format('Signature Help: %s%s', client.name, sfx)
|
||||
if config.border then
|
||||
config.title = title
|
||||
else
|
||||
table.insert(lines, 1, '# ' .. title)
|
||||
config.title = config.title or string.format('Signature Help: %s%s', client.name, sfx)
|
||||
if not config.border then
|
||||
table.insert(lines, 1, '# ' .. config.title)
|
||||
if hl then
|
||||
hl[1] = hl[1] + 1
|
||||
hl[3] = hl[3] + 1
|
||||
|
Reference in New Issue
Block a user