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
552 stars 13 forks source link

feat(splits): leverage winlayout #375

Closed shortcuts closed 1 month ago

shortcuts commented 3 months ago

📃 Summary

the custom logic for vsplit handling has reached its limits, it's now impossible to handle every edge cases and might make the user experience clunky.

This winlayout refactoring aims at increasing consistency by considering nvim as the source of truth, as it should be. Leveraging also allows the plugin to avoid debouncing and concurrent refreshes in order to wait for the ui to be refreshed, we can now just evaluate the API instantly.

This also unlocks nnp buffers to be CONSISTENTLY on both sides, where they should always be.

supersede https://github.com/shortcuts/no-neck-pain.nvim/pull/374 closes https://github.com/shortcuts/no-neck-pain.nvim/issues/368