Closed will-lynas closed 2 days ago
Hmm, I'm not really sure what there is to do here.
The background highlight is created with the following:
vim.api.nvim_buf_set_extmark(buf, namespace, row, col, {
end_row = row + 1,
hl_group = 'RenderMarkdownCode',
hl_eol = true,
})
Setting virt_text_repeat_linebreak
does not have any impact since we're not adding any virtual text. The highlight does get wrapped, just not in the breakindent
area.
Ideally some extmark
options like hl_group
would be extended through the breakindent
area but that would need to be added to neovim and I'm not sure how feasible that would be.
Added a comment to the issue in avante.nvim
for setting breakindent
via win_options
.
There are a few workarounds for this all of which involve disabling breakindent
in some way:
ftplugin/<filetype>.vim
, disable breakindent
or set showbreak=NONE
win_options
for this plugin to disable breakindent
: win_options = { breakindent = { default = true, rendered = false } }
Have opened a feature request in neovim to see if this behavior can be supported on their side or if there's something I can do here: https://github.com/neovim/neovim/issues/30255
That's awesome, thank you
Since the solution here will require an update to Neovim I'm going to resolve this issue. Will track through the issue in core.
Neovim version (nvim -v)
0.10.0
Operating system
macOS
Terminal emulator / GUI
kitty
Describe the bug
Highlighting is broken with
breakindent
set.Expected behavior
Every line should have the code block background highlight
Healthcheck output
Plugin configuration
Plugin error log
N/A
Confirmations
Additional information
Original issue: https://github.com/yetone/avante.nvim/issues/464