andrewferrier / wrapping.nvim

Plugin to make it easier to switch between 'soft' and 'hard' line wrapping in NeoVim
MIT License
123 stars 4 forks source link

Is it possible to set custom max width? #37

Closed Demianeen closed 5 months ago

Demianeen commented 8 months ago

I usually have a nvim on full screen, and when I open Markdown, my line rarely wraps because of this. Is it possible to set the max width before wrap to 100 for example instead of the window length?

andrewferrier commented 8 months ago

Not easily, I believe. wrapping.nvim relies on inbuilt NeoVim capability to do soft wrapping, and I don't think it's possible to set a different margin for that than window width. I'll keep this issue open to take a more detailed look sometime. Thanks for your interest!

andrewferrier commented 5 months ago

I had a look at this. I don't think such an option exists. You can use wrapmargin when textwidth=0 to force where hard wrapping should occur relative to the right-edge of the window, but that's not quite what you were asking for, I think.

I think this probably needs an issue on NeoVim itself. For now, I'll close this issue.

Demianeen commented 5 months ago

Thanks for pointing, just did it