Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrapped Line virtural text consistency #136

Open
jas0xf opened this issue Sep 19, 2024 · 1 comment
Open

Wrapped Line virtural text consistency #136

jas0xf opened this issue Sep 19, 2024 · 1 comment

Comments

@jas0xf
Copy link

jas0xf commented Sep 19, 2024

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Before:
20240919_21h04m39s_grim
After:
20240919_21h14m05s_grim

this issue is discussed at
neovim/neovim#23108
and the core dev solved this via adding virt_text_repeat_linebreak flag into api.nvim_buf_set_extmark
neovim/neovim#26625

Describe the solution you'd like
A clear and concise description of what you want to happen.
just set virt_text_repeat_linebreak = true when calling api.nvim_buf_set_extmark
ex.
lua/hlchunk/mods/chunk/init.lua
line 159

row_opts.virt_text_repeat_linebreak = true

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@itepechi
Copy link
Contributor

Note that virt_text_repeat_linebreak will break the rendering on the first and last line if they are softwrapped. We need some special treatment for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants