remote-nvim.nvim icon indicating copy to clipboard operation
remote-nvim.nvim copied to clipboard

Ability to add an extra environment variable when connecting

Open Steinhagen opened this issue 4 months ago • 0 comments

Is your feature request related to a problem? Please describe. Sometimes, you might want Neovim to behave in a specific way based on the environment variables.

Command: XDG_CONFIG_HOME=/home/user/.remote-nvim/workspaces/qzjECTTQ2h/.config XDG_DATA_HOME=/home/user/.remote-nvim/workspaces/qzjECTTQ2h/.local/share XDG_STATE_HOME=/home/user/.remote-nvim/workspaces/qzjECTTQ2h/.local/state XDG_CACHE_HOME=/home/user/.remote-nvim/workspaces/qzjECTTQ2h/.cache NVIM_APPNAME=nvim /home/user/.remote-nvim/nvim-downloads/nightly/bin/nvim --listen 0.0.0.0:42937 --headless

At the present time, there isn't a method to add 'DEMO_VAR=test' to Neovim on top of the defaults ones when it connects.

Describe the solution you'd like Being able to add a list of extra variables that are set to nvim.

Describe alternatives you've considered Changing the environment on the system before we are connecting to it. This might be a lot more problematic since that user (faceless account) might be used by different people and the use cases might be different.

Additional context N/A

Steinhagen avatar Aug 22 '25 23:08 Steinhagen