tmux: Better management for nvim

This commit is contained in:
Daniel Lundin 2022-12-03 14:06:37 +01:00
parent 38a3dedae1
commit 8b635ab835
2 changed files with 6 additions and 2 deletions

View file

@ -11,4 +11,8 @@ else
fre --store_name "$_store" --add "$_file"
fi
nvim --server "$XDG_RUNTIME_DIR/nvim.sock" --remote "$_file" && tmux select-window -t1
tmux new-window -S -n nvim \
-e "GOPACKAGESDRIVER=$GOPACKAGESDRIVER" \
nvim --listen "$XDG_RUNTIME_DIR/nvim.sock"
nvim --server "$XDG_RUNTIME_DIR/nvim.sock" --remote "$_file"