irongit

A readme explaining how to make neovim work fast

hygo-vim/tmux.conf
77 lines2.9 KB
1# Settings
2set -g mouse on
3set -g status on # Enable the status line
4set -g pane-border-status top # Show titles at the top of each pane
5set -g pane-border-format "#{pane_index} #{pane_title}" # Customize the title format
6setw -g mode-keys vi # Use vi keybindings in copy mode
7set -g focus-events on
8set -g status-right '#{ip_address} | #H'
9setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
10set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_init.lua'
11set -g @continuum-restore 'on'
12set -g xterm-keys on
13set -g set-clipboard on
14set -g automatic-rename on
15set -g automatic-rename-format "#{b:pane_current_path##*/} → #{pane_current_command}"
16set -g default-terminal "tmux-256color"
17set -ag terminal-overrides ",xterm-256color:Tc,smcup@:rmcup@"
18TMUX_FZF_MENU=\
19"foo\necho 'Hello!'\n"\
20"bar\nls ~\n"\
21"sh\nsh ~/test.sh\n"
22TMUX_FZF_LAUNCH_KEY="C-f"
23
24
25# Prefix keybindings
26bind r source-file ~/.tmux.conf \; display "Reloaded the config"
27bind c new-window -c "#{pane_current_path}" \; display "Opened new window in #{pane_current_path}"
28bind a attach-session -c "#{pane_current_path}" \; display "Attached current session to #{pane_current_path}"
29bind e show-environment
30bind g display-popup -E -w 90% -h 90% -d "#{pane_current_path}" 'lazygit'
31
32
33# Repeatable
34set -s repeat-time 500 # Slow down repeat time
35bind -r C-h resize-pane -L 5
36bind -r C-j resize-pane -D 5
37bind -r C-k resize-pane -U 5
38bind -r C-l resize-pane -R 5
39
40
41# Keybindings
42bind -n MouseDown3Pane resize-pane -Z
43bind -n M-h select-pane -L # Move left a pane
44bind -n M-j select-pane -D # Move down a pane
45bind -n M-k select-pane -U # Move up a pane
46bind -n M-l select-pane -R # Move right a pane
47bind -n M-m resize-pane -Z # Maximize/minimize current pane
48bind -n M-i previous-window # Move to previous window
49bind -n M-o next-window # Move to next window
50bind -n M-, switch-client -p # Switch to previous session
51bind -n M-. switch-client -n # Switch to next session
52
53
54# Display
55# Inactive pane border
56set -g pane-border-style "fg=default"
57set -g pane-active-border-style "fg=orange"
58
59
60# List of plugins
61set -g @plugin 'erikw/tmux-powerline'
62set -g @plugin 'tmux-plugins/tpm'
63set -g @plugin 'tmux-plugins/tmux-sensible'
64set -g @plugin 'tmux-plugins/tmux-resurrect'
65set -g @plugin 'tmux-plugins/tmux-continuum'
66set -g @plugin 'anghootys/tmux-ip-address'
67set -g @plugin 'alexwforsythe/tmux-which-key'
68set -g @plugin 'kiyoon/treemux'
69set -g @plugin 'sainnhe/tmux-fzf'
70set -g @plugin 'imomaliev/tmux-keyboard-layout'
71set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
72set -g @plugin 'huncholane/tmux-fzf-keys'
73set -g @plugin 'huncholane/tmux-env-menu'
74
75
76# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
77run '~/.tmux/plugins/tpm/tpm'