neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 323d5527eed6a7c75e795570431a3292b92c1148
parent c94b7b93c0d9f843be6b68db9dee0a0297060af4
Author: Fredrik Lanker <fredrik@lanker.se>
Date:   Wed, 22 Oct 2025 19:38:47 +0200

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

Set linebreak to avoid splitting words.

Fix #36268
Diffstat:
Mruntime/lua/vim/lsp/util.lua | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua @@ -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.