CopilotC-Nvim / CopilotChat.nvim

Chat with GitHub Copilot in Neovim
https://copilotc-nvim.github.io/CopilotChat.nvim/
GNU General Public License v3.0
1.5k stars 69 forks source link

Text should not wrap when panel width is less than wrap length #292

Closed bendavis78 closed 4 months ago

bendavis78 commented 4 months ago

This screenshot explains it. Line 4 is wrapped by vim, but then some kind of auto-wrapping kicks in. I'm fine with auto-wrapping at a certain width, but the wrapping length should be determined by the width of the buffer if it's below the default auto-wrapping width.

image

deathbeam commented 4 months ago

Made a PR with a fix, now it will never force wrap to new line instead as because of word wrapping it was still confusing even when set at buffer width, so now it will only visually wrap and you have to wrap to new line by yourself, I think that is the most intuitive approach for chat window