From 6e8d8982663d277e1f18b38f5d5769ce9be6a755 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 30 Oct 2020 22:37:30 +0100 Subject: [PATCH] nvim: added fugitive and mappings for it --- .config/nvim/init.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f65dca6..dc4aa1b 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -146,6 +146,7 @@ Plug 'ryanoasis/vim-devicons' " enable icons for vim Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} " filetree Plug 'sirver/ultisnips' " snippets Plug 'tomasiser/vim-code-dark' " adding colorscheme +Plug 'tpope/vim-fugitive' " git wrapper Plug 'tpope/vim-surround' " help for quotes/parantheses Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'} " better syntax highlight for java than default call plug#end() @@ -257,6 +258,15 @@ let g:NERDTreeWinPos = "left" " sirver/ultisnips let g:UltiSnipsExpandTrigger="" +" tpope/vim-fugitive +nnoremap ga :Git add %:p +nnoremap gd :Git diff +nnoremap gc :Gcommit +nnoremap gh :diffget //3 +nnoremap gr :Gread +nnoremap gu :diffget //2 +nnoremap gs :G + " tomasiser/vim-code-dark colorscheme codedark