From 4549f10038be0973088819b6e49894513ace8580 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 5 Dec 2019 11:04:23 +0530 Subject: [PATCH] nvim: init.vim: Add more gitgutter settings --- nvim/init.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 5122724..ffd7c30 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -15,7 +15,6 @@ Plug 'Yggdroot/LeaderF', { 'do': './install.sh' } Plug 'thirtythreeforty/lessspace.vim' " Status bar mods Plug 'vim-airline/vim-airline' -Plug 'airblade/vim-gitgutter' " Manage Project sessions Plug 'thaerkh/vim-workspace' " Commenter @@ -28,6 +27,7 @@ Plug 'wellle/tmux-complete.vim' " For LaTeX support Plug 'lervag/vimtex' " For git support +Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-fugitive' Plug 'junegunn/gv.vim' Plug 'rhysd/git-messenger.vim' @@ -461,6 +461,15 @@ let g:airline#extensions#tabline#buffer_nr_show = 1 " Let vim-gitgutter do its thing on large files let g:gitgutter_max_signs=1000 +let g:gitgutter_map_keys = 0 +let g:gitgutter_highlight_linenrs = 1 +let g:gitgutter_preview_win_floating = 1 +let g:gitgutter_use_location_list = 1 +let g:gitgutter_sign_added = '+a' +let g:gitgutter_sign_modified = '+m' +let g:gitgutter_sign_removed = '-r' +let g:gitgutter_sign_removed_first_line = '^^' +let g:gitgutter_sign_modified_removed = 'mr' " Neomake " compile when I open a file, change text, leave insert mode, etc ...