nvim: Add vim-fugitive for git back

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-27 19:48:35 +05:30
parent c42e841e3e
commit 19d00c7ac5
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,17 @@
nnoremap <Leader>gl :0Gclog!<CR>
nnoremap <Leader>gL :Gclog!<CR>
nnoremap <Leader>gd :Ghdiffsplit!<CR>
nnoremap <Leader>gD :Gvdiffsplit!<CR>
nnoremap <Leader>gs :Git<CR>
nnoremap <Leader>gc :Git commit -v -q --signoff<CR>
nnoremap <Leader>gt :Git commit -v -q --signoff %:p<CR>
nnoremap <Leader>gp :Git push<CR>
nnoremap <Leader>gu :Git push -u<SPACE>
nnoremap <Leader>gr :Git remote -v<CR>
nnoremap <Leader>gb :Git branch -a<CR>
nnoremap <Leader>gB :Git branch<SPACE>
nnoremap <Leader>go :Git checkout<SPACE>
nnoremap <Leader>g- :Git stash<CR>:e<CR>
nnoremap <Leader>g+ :Git stash pop<CR>:e<CR>
nnoremap <Leader>gw :Gwrite<CR>
nnoremap <Leader>gG :Git<SPACE>

View file

@ -17,6 +17,7 @@ Plug 'haorenW1025/completion-nvim'
Plug 'tmux-plugins/vim-tmux-focus-events'
Plug 'wellle/tmux-complete.vim'
" Git support
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'rhysd/git-messenger.vim', { 'on': 'GitMessenger' }
Plug 'rhysd/conflict-marker.vim'