nix/nvim: add gitgutter plugin
This commit is contained in:
parent
f9400b825f
commit
eeb8c24099
2 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,7 @@ let
|
||||||
material-vim # modern theme with true colors support
|
material-vim # modern theme with true colors support
|
||||||
vim-nix # nix support
|
vim-nix # nix support
|
||||||
vim-easymotion # highlights keys to move quickly
|
vim-easymotion # highlights keys to move quickly
|
||||||
|
vim-gitgutter # shows git diff markers in the sign column
|
||||||
nerdtree # tree explorer
|
nerdtree # tree explorer
|
||||||
nerdtree-git-plugin # shows files git status on the NerdTree
|
nerdtree-git-plugin # shows files git status on the NerdTree
|
||||||
neoformat # formating code
|
neoformat # formating code
|
||||||
|
|
|
@ -30,3 +30,11 @@ aug fmt
|
||||||
au!
|
au!
|
||||||
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
au BufWritePre * try | undojoin | Neoformat | catch /E790/ | Neoformat | endtry
|
||||||
aug END
|
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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue