nix/nvim: add gitgutter plugin

This commit is contained in:
Dmitriy Pleshevskiy 2022-06-23 14:49:13 +03:00
parent f9400b825f
commit eeb8c24099
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 9 additions and 0 deletions

View file

@ -21,6 +21,7 @@ let
material-vim # modern theme with true colors support
vim-nix # nix support
vim-easymotion # highlights keys to move quickly
vim-gitgutter # shows git diff markers in the sign column
nerdtree # tree explorer
nerdtree-git-plugin # shows files git status on the NerdTree
neoformat # formating code

View file

@ -30,3 +30,11 @@ aug fmt
au!
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
aug END
" GitGutter
let g:gitgutter_sign_priority = 1
let g:gitgutter_set_sign_backgrounds = 0
let g:gitgutter_map_keys = 0
nnoremap <leader>ghp :GitGutterPreviewHunk<CR>