1
1
Fork 0

tmux and vim play nicer

This commit is contained in:
Ava Gaiety Wroten 2021-04-09 10:22:11 -05:00
parent 7f111ade31
commit 403c2d66e1
2 changed files with 25 additions and 0 deletions

View file

@ -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 <Leader>` :Fern . -reveal=%<CR>
" oscyank
autocmd TextYankPost * if v:event.operator is 'y' && v:event.regname is '+' | OSCYankReg + | endif

View file

@ -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
## <Leader> |,- Split panes
bind-key \ split-window -h
bind-key - split-window -v
## <Leader> 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'