From 403c2d66e11fbdca4c2b2f6b362140600f341ed1 Mon Sep 17 00:00:00 2001 From: Ava Gaiety Wroten Date: Fri, 9 Apr 2021 10:22:11 -0500 Subject: [PATCH] tmux and vim play nicer --- nvim/init.vim | 6 ++++++ tmux/.tmux.conf | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 27a244e..183d65a 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -60,6 +60,9 @@ let g:ale_completion_enabled = 1 let g:ale_completion_autoimport = 1 call plug#begin('~/.config/nvim/autoload/plugged') + Plug 'ojroques/vim-oscyank' + Plug 'sjl/vitality.vim' + Plug 'dense-analysis/ale' Plug 'tpope/vim-commentary' Plug 'prettier/vim-prettier', { 'do': 'yarn install' } @@ -102,3 +105,6 @@ let g:indentLine_char_list = ['|', '¦', '┆', '┊'] " fern nnoremap ` :Fern . -reveal=% + +" oscyank +autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '+' | OSCYankReg + | endif diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 86e2866..2b13173 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,6 +1,25 @@ # status bar to top set-option -g status-position top +# enable focus events +set -g focus-events on + +# Correct numbering +set -g base-index 1 +set -g pane-base-index 1 +set -g renumber-windows on + +# Mappings +## |,- Split panes +bind-key \ split-window -h +bind-key - split-window -v +## h,j,k,l to switch pane +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'dracula/tmux'