From 95b21f7eec1c8388320de24d30efb03f54a21bb3 Mon Sep 17 00:00:00 2001 From: Rahsheen Porter Date: Thu, 27 Oct 2022 23:16:23 -0400 Subject: [PATCH] sessionizer and init.vim --- .config/nvim/init.vim | 22 +++++++++++++++++++--- .local/bin/tmux-sessionizer | 2 +- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 788992e3..f80a94c5 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -70,6 +70,7 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'github/copilot.vim' Plug 'tpope/vim-rhubarb' Plug 'thesis/vim-solidity' +Plug 'vim-test/vim-test' " Initialize plugin system call plug#end() @@ -105,10 +106,25 @@ set completeopt=menuone,noinsert,noselect let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy'] " Git Fugitive -nmap gs :G -nmap gh :diffget //3 -nmap gu :diffget //2 +nnoremap gs :G +nnoremap gh :diffget //3 +nnoremap gu :diffget //2 nnoremap gc :GCheckout +nnoremap ga :G add %:p +nnoremap gc :G commit -v -q +nnoremap gt :G commit -v -q %:p +nnoremap gca :G commit --amend --no-edit +nnoremap gd :Gdiff +nnoremap ge :Gedit +nnoremap gr :Gread +nnoremap gw :Gwrite +nnoremap gl :silent! Glog:bot copen +nnoremap gp :Ggrep +nnoremap gm :Gmove +nnoremap gb :G branch +nnoremap go :G checkout +nnoremap gps :Dispatch! git push +nnoremap gpl :Dispatch! git pull " Copy to system clipboard vnoremap y "*y diff --git a/.local/bin/tmux-sessionizer b/.local/bin/tmux-sessionizer index 39193ed3..62cb091a 100755 --- a/.local/bin/tmux-sessionizer +++ b/.local/bin/tmux-sessionizer @@ -3,7 +3,7 @@ if [[ $# -eq 1 ]]; then selected=$1 else - selected=$(find ~/.config ~/Development ~/Development/keeps-next ~/Development/keeps-frontend -mindepth 1 -maxdepth 1 -type d | fzf) + selected=$(find ~/.config ~/Development/nurx ~/Development ~/Development/keeps-next ~/Development/keeps-frontend -mindepth 1 -maxdepth 1 -type d | fzf) fi if [[ -z $selected ]]; then