-
Notifications
You must be signed in to change notification settings - Fork 13
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
Follow textwidth (tw) #155
Comments
Hey! Thanks for opening the issue :D This seems pretty feasible, I just need to find a correct API to expose. Would you mind explaining how you use this option?
|
#156 should cover this issue, waiting for some more insights from you on the two questions above before merging |
Hi! thanks for working on this. Usually I have textwidth defined in
Because it needs to be different for different kinds of buffers, I'm not sure if this option can be set in the Regarding whether |
## 📃 Summary Kind of provides an escape hatch for things like #155 This PR provides a new `NoNeckPainResize` command, that updates the width of the main buffer and triggers a resize of the windows. This can be useful when switching context and the user don't want to update the `setup` method.
Thanks for giving more details! I guess this will need a bit of investigation of what to do for a full support. I've exposed a resize command that should suit your need for the short term, however there should be a better solution! |
## 📃 Summary closes #155 This PR provides additional accepted values to the `width` option, in order to let the user default the width of the main focused window based on vim options.
I still added support for I'll now work on providing an option the user can enable to resize when the filetype changes, so the plugin would adapt to the two options |
Describe the problem
Currently the
width
of no-neck-pain has to be specified globally. However, I use several different languages and projects, each with different width standards. For example, Lean projects usually like to have a maximum text width of 100 characters. C projects usually stick to 80 characters, and so does my personal writing.I keep track of all of these with the
'texwidth'
variable.Describe the solution
There should be an option for
no-neck-pain.nvim
to follow the texwidth variable instead of simply following a global width.The text was updated successfully, but these errors were encountered: