mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
fix(lsp): show title when global winborder is set (#35181)
Problem: make_floating_popup_options only shows when opts.border is explicitly set, ignoring global winborder setting
Solution: check both opts.border and vim.o.winborder when determining whether to show title
(cherry picked from commit 5b1b46ea5a)
This commit is contained in:
committed by
github-actions[bot]
parent
09b0003d38
commit
8f2d6f7ce2
@@ -861,7 +861,7 @@ function M.make_floating_popup_options(width, height, opts)
|
||||
col = 1
|
||||
end
|
||||
|
||||
local title = (opts.border and opts.title) and opts.title or nil
|
||||
local title = ((opts.border or vim.o.winborder ~= '') and opts.title) and opts.title or nil
|
||||
local title_pos --- @type 'left'|'center'|'right'?
|
||||
|
||||
if title then
|
||||
|
||||
Reference in New Issue
Block a user