tmux: pass GOFLAGS to nvim
This commit is contained in:
parent
821080a8b8
commit
58ca67e659
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -xfe -o pipefail
|
set -fe -o pipefail
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
_file=$(readlink -f "$@")
|
_file=$(readlink -f "$@")
|
||||||
|
@ -15,6 +15,7 @@ fi
|
||||||
tmux select-window -t nvim 2>/dev/null ||
|
tmux select-window -t nvim 2>/dev/null ||
|
||||||
tmux new-window -S -n nvim \
|
tmux new-window -S -n nvim \
|
||||||
-e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \
|
-e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \
|
||||||
|
-e "GOFLAGS=$GOFLAGS" \
|
||||||
nvim --listen "$XDG_RUNTIME_DIR/nvim.sock"
|
nvim --listen "$XDG_RUNTIME_DIR/nvim.sock"
|
||||||
|
|
||||||
nvim --server "$XDG_RUNTIME_DIR/nvim.sock" --remote "$_file"
|
nvim --server "$XDG_RUNTIME_DIR/nvim.sock" --remote "$_file"
|
||||||
|
|
Loading…
Reference in a new issue