mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 03:48:02 +10:00
fix(lsp): set 'linebreak' in floating windows (#36275)
Set linebreak to avoid splitting words. Fix #36268
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user