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

fix(mux): Use `$TERM_PROGRAM` in multiplexer detection #60

Closed roginfarrer closed 1 year ago

roginfarrer commented 1 year ago

$TMUX will return a value if it's running on your system, even if it's not in the active pane/emulator. $TERM_PROGRAM will be more accurate to the instance running.

To reproduce issue:

  1. In any terminal emulator, run tmux
  2. Run WezTerm and neovim
  3. Use plugin commands. Plugin silently fails because it thinks it should be running tmux commands, not WezTerm commands.
mrjones2014 commented 1 year ago

I’ll tag this in a patch release within the next day or so. I have one other thing I want to get in.