-
Notifications
You must be signed in to change notification settings - Fork 41
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
header align bug #126
Comments
You don't happen to use a file-tree plugin, do you? The plugin gets the width of the current window(as it's impossible to get the width of the window containing the buffer since multiple windows with various sizes can have the same buffer). So, if you opened it via some other plugin it will look like that. |
Yes, i use the neo-tree plugin. I understand, thank you |
Current window width is used as a fallback. Ref: #126
@hyawara, It should work now. Can you check again? |
Give me a second. I'll try. I'll get back to you |
20240825_233903.mp4I need to move it to make it work. But it worked out. You were very efficient, thanks. |
Does it work now? |
I'll try it tomorrow morning. 😁 |
There are still some problems @OXY2DEV 1724633973607-20240826_085758.mp4 |
It should be fixed now. |
Do you know how to listen for buffer window size changes? I think it should be the problem. 1724646370747-20240826_122523.mp4 |
For example, you have a file opened in a window and hit Now, you have 2 windows containing the same buffer. Now if you resize one of them that window will have the correct alignment but the other window will have an incorrect alignment.
Also, someone famous once said, "If you always have your file browser open, I have a lot of questions and the only important one is, 'Why?'" So, there's no point in adding something for every niche case. |
Could you provide me with a copy of your nvim configuration for my reference? thank you |
First open file, header like this:
and after the buffer is switched again, the buffer becomes normal
header config:
The text was updated successfully, but these errors were encountered: