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
895 stars 37 forks source link

feat(mux): Improved tmux integration performance #155

Closed mrjones2014 closed 6 months ago

mrjones2014 commented 6 months ago

This PR also adds a hook system for multiplexer integrations to run initialization and cleanup functions. mux.on_init() is called on startup and VimResume while mux.on_exit() is called on VimSuspend and VimLeave.

@b0o would you mind giving this a test for me? It has been a long time since I've used tmux and I don't have a configuration for it at the moment.

To Test:

  1. Use the modified tmux configuration in the README.md changes of this PR
  2. Use tmux
  3. Ensure smart-splits.nvim either auto-detects or is set to use tmux
  4. Create multiple tmux splits
  5. Open Neovim in one of them and ensure smart-splits.nvim is loaded

For me:

mrjones2014 commented 6 months ago

Added a tmux config to test with via a flake.nix.

Something isn't working properly :thinking:

mrjones2014 commented 6 months ago

Fixed, a typo will do it :joy: