~garritfra/dotfiles

97c85572a728bec03e400146c0b611ac3a70c614 — Garrit Franke 2 months ago 108c951 master
nvim: show git status in nerdtree
2 files changed, 4 insertions(+), 2 deletions(-)

M .config/nvim/init.vim
M .config/nvim/plug.vim
M .config/nvim/init.vim => .config/nvim/init.vim +3 -2
@@ 251,8 251,9 @@ nnoremap <leader>gc :Git commit<CR>
nnoremap <leader>ga :Git add .<CR>
nnoremap <leader>gp :Git push<CR>

nnoremap g. :GitGutterNextHunk<CR>
nnoremap g, :GitGutterPrevHunk<CR>
nnoremap <leader>g. :GitGutterNextHunk<CR>
nnoremap <leader>g, :GitGutterPrevHunk<CR>
nnoremap <leader>gx :GitGutterUndoHunk<CR>

nnoremap k gk
nnoremap j gj

M .config/nvim/plug.vim => .config/nvim/plug.vim +1 -0
@@ 2,6 2,7 @@ call plug#begin()
Plug 'gruvbox-community/gruvbox'
Plug 'itchyny/lightline.vim'
Plug 'scrooloose/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'prettier/vim-prettier'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'