diff --git a/nvim/.config/nvim/after/plugin/fugitive.vim b/nvim/.config/nvim/after/plugin/fugitive.vim new file mode 100644 index 0000000..0ec4001 --- /dev/null +++ b/nvim/.config/nvim/after/plugin/fugitive.vim @@ -0,0 +1,17 @@ +nnoremap gl :0Gclog! +nnoremap gL :Gclog! +nnoremap gd :Ghdiffsplit! +nnoremap gD :Gvdiffsplit! +nnoremap gs :Git +nnoremap gc :Git commit -v -q --signoff +nnoremap gt :Git commit -v -q --signoff %:p +nnoremap gp :Git push +nnoremap gu :Git push -u +nnoremap gr :Git remote -v +nnoremap gb :Git branch -a +nnoremap gB :Git branch +nnoremap go :Git checkout +nnoremap g- :Git stash:e +nnoremap g+ :Git stash pop:e +nnoremap gw :Gwrite +nnoremap gG :Git diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 433351c..ba16daf 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -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'