mirror of
https://github.com/neovim/neovim.git
synced 2026-10-26 15:40:20 -05:00
fix(lsp): set 'linebreak' in floating windows (#36275)
Set linebreak to avoid splitting words. Fix #36268
This commit is contained in:
1 parent
c94b7b93c0
commit
323d5527ee
1 file changed
+1
@@ -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