anuvyklack / windows.nvim

Automatically expand width of the current window. Maximizes and restore it. And all this with nice animations!
MIT License
537 stars 15 forks source link

Subtract ignored windows from autowidth #29

Open ttytm opened 1 year ago

ttytm commented 1 year ago

Using a value from 0 to 1 is currently the closest to the desired result. In addition, it would be great to have the possibility that the width of the ignored windows can be considered when calculating autowidth (e.g., subtracting it from the width of the customer window).

I could not find a proper way to accomplish this by simply importing the module functions exported from the plugin into my own configuration and working with those. (Only with a custom calculation of windows widths and ignored windows and re-calling the .setup() function on every WinEnter)

The functionality for resizing functions would need to be extended a little to allow this behavior natively. What do you think of having such an option and would you implement it?