carlocab / tmux-nvr

A tmux plugin for using session-specific Neovim instances with neovim-remote
MIT License
45 stars 2 forks source link

Use tmux update-environment to pass environment variable to shells #4

Closed jceb closed 3 years ago

jceb commented 3 years ago

Solves #3

carlocab commented 3 years ago

I tested this locally and it doesn't work. In a newly opened shell/tmux server, echo $NVIM_LISTEN_ADDRESS returns nothing. This is the case the configuration is for, actually. See the tmux issue I linked you to previously: https://github.com/tmux/tmux/issues/2455

If you don't mind this not working for the first window you open after starting a tmux server, then you don't need the shell configuration, nor do you need to do update-environment. It will work without the shell configuration for every other window you open after that.

Thanks for looking into this anyway, though!

jceb commented 3 years ago

Okay, I see what you're saying. Well then let's stick with the current solution.