tmux: Better management for nvim
This commit is contained in:
parent
38a3dedae1
commit
8b635ab835
2 changed files with 6 additions and 2 deletions
|
@ -29,7 +29,7 @@ bind -n M-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind -n M-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind -n M-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind -n M-Down select-pane -D
|
||||||
bind -n M-1 select-window -t 1
|
bind -n M-1 select-window -t nvim
|
||||||
bind -n M-2 select-window -t 2
|
bind -n M-2 select-window -t 2
|
||||||
bind -n M-3 select-window -t 3
|
bind -n M-3 select-window -t 3
|
||||||
bind -n M-4 select-window -t 4
|
bind -n M-4 select-window -t 4
|
||||||
|
|
|
@ -11,4 +11,8 @@ else
|
||||||
fre --store_name "$_store" --add "$_file"
|
fre --store_name "$_store" --add "$_file"
|
||||||
fi
|
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"
|
||||||
|
|
Loading…
Reference in a new issue