shortcuts / no-neck-pain.nvim

☕ Dead simple yet super extensible plugin to center the currently focused buffer to the middle of the screen.
MIT License
459 stars 12 forks source link

fix(layout): broken layout with top or bottom windows #343

Closed shortcuts closed 1 month ago

shortcuts commented 2 months ago

📃 Summary

a (long awaited) attempt to fix https://github.com/shortcuts/no-neck-pain.nvim/issues/340

rely on the native winlayout fn to compute the layers/split layout state in order to determine what to do with the windows

as of now it kind of breaks the tests but it's muuuuuuuuuuuuuch more reliable than my custom logic