resdet config tmux ajout plugins, on va repartir sur neovim

main
Gil Portenseigne 2024-09-25 12:15:09 +02:00
parent 9adae124eb
commit 63bcfb5ff5
1 changed files with 18 additions and 4 deletions

View File

@ -1,16 +1,30 @@
## Use vim keybindings in copy mode ## Use vim keybindings in copy mode
set-option -g mouse off setw -g mouse on
bind C-p previous-window
bind C-n next-window
# Source .tmux.conf as suggested in `man tmux`
bind R source-file ~/.config/tmux/tmux.conf
bind-key v copy-mode bind-key v copy-mode
set-option -g default-shell /bin/bash
setw -g mode-keys vi setw -g mode-keys vi
set-option -s set-clipboard off
bind P paste-buffer bind P paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X rectangle-toggle bind-key -T copy-mode-vi y send-keys -X rectangle-toggle
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i' bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
unbind -T copy-mode-vi Enter
#bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i' #bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'xclip -se c -i'
set-option -g history-limit 100000 set-option -g history-limit 100000
# pane navigation avec ctrl+hjkl
set -g @plugin 'christoomey/vim-tmux-navigator'
# theme nord
set -g @plugin "nordtheme/tmux"
run '~/.config/tmux/plugins/tpm/tpm'