fix(lsp): set 'linebreak' in floating windows (#36275)

Set linebreak to avoid splitting words.

Fix #36268
This commit is contained in:
Fredrik Lanker
2025-10-22 19:38:47 +02:00
committed by GitHub
parent c94b7b93c0
commit 323d5527ee

View File

@@ -1760,6 +1760,7 @@ function M.open_floating_preview(contents, syntax, opts)
vim.wo[floating_winnr].foldenable = false -- Disable folding.
vim.wo[floating_winnr].wrap = opts.wrap -- Soft wrapping.
vim.wo[floating_winnr].linebreak = true -- Break lines a bit nicer
vim.wo[floating_winnr].breakindent = true -- Slightly better list presentation.
vim.wo[floating_winnr].smoothscroll = true -- Scroll by screen-line instead of buffer-line.