add(nvim): zen-mode

This commit is contained in:
Léana 江 2023-05-02 21:30:15 +02:00 committed by Léana 江
parent d238bce407
commit cf098ba949
8 changed files with 92 additions and 23 deletions

View file

@ -1,14 +1,8 @@
# some sane config for tmux
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# mouse control
set -g mouse on
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# enable italics
set -g default-terminal "xterm-256color"
@ -18,32 +12,42 @@ set -g status-style bg=black,fg=white
set -g window-status-current-style bg=white,fg=black
set -g window-status-style bg=black,fg=white
# status bar
set-option -g status-left '#{?window_name,#I:#W} #{T}'
# remap prefix
bind C-a send-prefix
set-option -g prefix C-a
unbind C-b
set -g base-index 1
# organic jumping
bind h select-window -t 0
bind t select-window -t 1
bind n select-window -t 2
bind s select-window -t 3
bind -n C-h select-window -t 1
bind -n C-t select-window -t 2
bind -n C-n select-window -t 3
bind -n C-s select-window -t 4
bind -T copy-mode-vi C-h select-window -t 1
bind -T copy-mode-vi C-t select-window -t 2
bind -T copy-mode-vi C-n select-window -t 3
bind -T copy-mode-vi C-s select-window -t 4
# improve window swapping
bind C-l swap-window -t -1 \; select-window -l
bind C-r swap-window -t +1 \; select-window -l
# status bar
set-option -g status-left '#{?window_name,#I:#W} #{T}'
# escape delay
set -s escape-time 0
# auto reorder window number
set-option -g renumber-windows on
# Prime says the find window is for chumps. Don't use the find window
bind-key -n C-f run-shell "tmux neww fish -c tmux_sessionizer"
# global vi mode
set-window-option -g mode-keys vi
# who the fuck thought prefix-[ is a good idea ??!?!
bind v copy-mode
# initialize tpm (TMUX plugin manager)
run '~/.tmux/plugins/tpm/tpm'
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'