Minimaze nvim config, update git config, clean configs

This commit is contained in:
Smirnov Olexandr 2021-02-14 18:06:43 +02:00
parent 9b2871dd65
commit 1f5249ea78
25 changed files with 183 additions and 663 deletions

View file

@ -1,32 +1,50 @@
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides ",*:Tc"
set -g history-limit 1000
###== General
set -sg escape-time 0
## Set prefix
set -g prefix C-a
## Set base index
set -g base-index 1
set -g pane-base-index 1
## History
set -g history-limit 1000
## Mouse support
set -g mouse on
setw -g mouse on
# Keybindongs
set -g xterm-keys no
set -g prefix C-a
bind -n End send-key C-e
bind -n Home send-key C-a
###== Keybindongs
## HOME/END key support
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
bind -n End send-key C-e
bind -n Home send-key C-a
## Reload config
bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'
bind - split-window -v
bind _ split-window -h
bind Tab last-window
## Vim keys for change/resize window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# Status bar
## Alternative keys for create window
bind _ split-window -h
bind - split-window -v
## Change focus on last panel
bind Tab last-window
###== Status bar
set -g status-bg black
set -g status-fg white
set -g status-left ' '
@ -35,11 +53,3 @@ set -g status-style fg=colour110
set -g pane-border-style fg=colour240
set -g pane-active-border-style fg=colour39
set-window-option -g window-status-current-style fg=colour39
# VIM tmux navigation
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"