From 982b6b968c8e3288c24acd04bd55dfa1e7bc8a59 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 25 Mar 2024 17:26:02 +0100 Subject: [PATCH] tmux-edit-helper: pass on nix-set environment vars to neovim --- bin/tmux-edit-helper | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/tmux-edit-helper b/bin/tmux-edit-helper index 95b1e65..c912ee7 100755 --- a/bin/tmux-edit-helper +++ b/bin/tmux-edit-helper @@ -22,7 +22,23 @@ _nvim_socket="$XDG_RUNTIME_DIR/nvim-persistent.sock" # nvim is not running/listening on remote socket, so start it. tmux new-window -S -n nvim \ + -e "AR=$AR" \ + -e "AS=$AS" \ -e "BUILD_COMMAND=$BUILD_COMMAND" \ - -e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \ + -e "CC=$CC" \ + -e "CXX=$CXX" \ -e "GOFLAGS=$GOFLAGS" \ + -e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \ + -e "LC_ALL=$LC_ALL" \ + -e "LD=$LD" \ + -e "NM=$NM" \ + -e "NM=$NM" \ + -e "OBJCOPY=$OBJCOPY" \ + -e "OBJDUMP=$OBJDUMP" \ + -e "PATH=$PATH" \ + -e "RANLIB=$RANLIB" \ + -e "READELF=$READELF" \ + -e "RUST_SRC_PATH=$RUST_SRC_PATH" \ + -e "SIZE=$SIZE" \ + -e "STRIP=$STRIP" \ nvim --listen "$_nvim_socket" "$_file"