mirror of
https://github.com/neovim/neovim.git
synced 2026-07-22 00:51:33 +00:00
feat(extmark): virt_lines_overflow "wrap" and "auto"
Problem: Extmark has support for horizontal scrolling and truncating, but not wrapping. Solution: Extend virt_lines_overflow flags to support "wrap" and "auto" based on proposed changes in #18282.
This commit is contained in:
2
runtime/lua/vim/_meta/api.gen.lua
generated
2
runtime/lua/vim/_meta/api.gen.lua
generated
@@ -696,6 +696,8 @@ function vim.api.nvim_buf_line_count(buf) end
|
||||
--- - "trunc": truncate virtual lines on the right (default).
|
||||
--- - "scroll": virtual lines can scroll horizontally with 'nowrap',
|
||||
--- otherwise the same as "trunc".
|
||||
--- - "wrap": virtual lines can wrap onto extra lines.
|
||||
--- - "auto": virtual lines wrap with 'wrap' and scroll horizontally with 'nowrap'.
|
||||
--- - virt_text : [](virtual-text) to link to this mark.
|
||||
--- A list of `[text, highlight]` tuples, each representing a
|
||||
--- text chunk with specified highlight. `highlight` element
|
||||
|
||||
2
runtime/lua/vim/_meta/api_keysets.gen.lua
generated
2
runtime/lua/vim/_meta/api_keysets.gen.lua
generated
@@ -441,7 +441,7 @@ error('Cannot require a meta file')
|
||||
--- @field virt_lines? any[]
|
||||
--- @field virt_lines_above? boolean
|
||||
--- @field virt_lines_leftcol? boolean
|
||||
--- @field virt_lines_overflow? "trunc"|"scroll"
|
||||
--- @field virt_lines_overflow? "trunc"|"scroll"|"wrap"|"auto"
|
||||
--- @field virt_text? any[]
|
||||
--- @field virt_text_hide? boolean
|
||||
--- @field virt_text_pos? "eol"|"eol_right_align"|"overlay"|"right_align"|"inline"
|
||||
|
||||
Reference in New Issue
Block a user