tmux: nvim edit helper selects first pane in first window
This commit is contained in:
parent
5f2a658772
commit
2fb69d78a9
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ fi
|
||||||
|
|
||||||
_nvim_socket="$XDG_RUNTIME_DIR/nvim-persistent.sock"
|
_nvim_socket="$XDG_RUNTIME_DIR/nvim-persistent.sock"
|
||||||
|
|
||||||
tmux select-window -t nvim 2>/dev/null && exec nvim --server "$_nvim_socket" --remote "$_file"
|
(tmux select-window -t nvim 2>/dev/null && tmux select-pane -t 0) && exec nvim --server "$_nvim_socket" --remote "$_file"
|
||||||
|
|
||||||
# nvim is not running/listening on remote socket, so start it.
|
# nvim is not running/listening on remote socket, so start it.
|
||||||
tmux new-window -S -n nvim \
|
tmux new-window -S -n nvim \
|
||||||
|
|
Loading…
Reference in a new issue