mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
977 stars 43 forks source link

improved(api): drastically simplify edge computation #30

Closed mrjones2014 closed 2 years ago

mrjones2014 commented 2 years ago

Fixes #25

Lol, this is so much simpler. I didn't know about winnr('h')/winnr('j')/winnr('k')/winnr('l') before.

I love deleting code!

cc @tobealive

mrjones2014 commented 2 years ago

This also takes a lot of the complexity out of detecting some edge cases from #12