-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature request: Option to fix window width of pads #216
Comments
hey, thanks for the suggestion! I wonder if this is applicable as (IIRC) there's no events to listen to for a window resize, but definitely worth investigating! |
I'm not sure what the code is like under the hood but is there a need to listen for a window resize event? If I move to the buffers created by the plugin and manually type |
That is interesting, I assume providing the require("no-neck-pain").setup({
width = 70,
buffers = {
wo = {
winfixwidth = true,
},
},
}) but IIRC it gets overridden if you open a vsplit. Could you share the full set of command you'd apply and the expect behavior? So that I can both see if it's doable, and provide a test suite :) |
Looks like you're right, I didn't think about this. I'd have to use
If that's the case that should be good right?
In my case I only have the left pad open so
|
Hey @shortcuts I completely forgot about this, I was wondering if you have the time to look at this again? |
Describe the problem
When the two pads show up (or one) to center the content on the screen, I would be nice if the user could optionally configure it to have fixed widths.
The reason I think this is nice is because when I open up a horizontal split and would either maximize the top or bottom split. I sometimes want to look at both of them at the same time again, I would use
<C-w>=
. But that also resizes width of the pads.Describe the solution
In the setup function there could be
fixwidth = true
inbuffers
.Or it could be for left and right as well. Having this set would just set the
winfixedwidth
option for the left and right buffers.The text was updated successfully, but these errors were encountered: