tmux: pass GOFLAGS to nvim

This commit is contained in:
Daniel Lundin 2023-02-02 09:37:07 +01:00
parent 821080a8b8
commit 58ca67e659

View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -xfe -o pipefail
set -fe -o pipefail
if [ -n "$1" ]; then
_file=$(readlink -f "$@")
@ -15,6 +15,7 @@ fi
tmux select-window -t nvim 2>/dev/null ||
tmux new-window -S -n nvim \
-e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \
-e "GOFLAGS=$GOFLAGS" \
nvim --listen "$XDG_RUNTIME_DIR/nvim.sock"
nvim --server "$XDG_RUNTIME_DIR/nvim.sock" --remote "$_file"