forked from samnang/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
46 lines (35 loc) · 1.19 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
gray_color="#3b3f4c"
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'aserowy/tmux.nvim'
set -g @plugin 'odedlaz/tmux-onedark-theme'
# Ctrl-a instead of Ctrl-b
set -g prefix C-a
bind C-a send-prefix
set -g mouse on
# Copy mode
setw -g mode-keys vi
bind Escape copy-mode
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
# layout
bind o select-layout "active-only"
bind M-- select-layout "even-vertical"
bind M-| select-layout "even-horizontal"
bind M-r rotate-window
# re-number windows when one is closed
set -g renumber-windows on
# Edit tmux pane buffer in Neovim!
bind-key e send-keys "tmux capture-pane -p -S - | nvim -c 'set buftype=nofile' +" Enter
set -g @tmux-nvim-resize-step-x 5
set -g @tmux-nvim-resize-step-y 5
# Customize status line
set -g @onedark_time_format " %R"
set -g @onedark_date_format " %d/%m/%Y"
set -wg pane-border-status bottom
set -wg pane-border-format ''
set -g pane-border-style "fg=${gray_color}"
set -g pane-active-border-style "fg=${gray_color}"
run '~/.tmux/plugins/tpm/tpm'