~patrickpichler/dotfiles

5da22194ac9e836c9516e749c4050c7ea672eee3 — Patrick Pichler a month ago 40c63d0
[nvim] Improve GitGutter setup

GitGutter now uses a color better suited for light theme for the changed
line symbol.

Also there are new text objects for selecting hunks.
1 files changed, 9 insertions(+), 2 deletions(-)

M .config/nvim/init.vim
M .config/nvim/init.vim => .config/nvim/init.vim +9 -2
@@ 553,10 553,17 @@ autocmd BufNewFile,BufRead *.boot set filetype=clojure
" }}}

" GitGutter {{{
nmap ]h <Plug>(GitGutterNextHunk)

nmap [h <Plug>(GitGutterPrevHunk)
nmap ]h <Plug>(GitGutterNextHunk)

highlight SignColumn guibg=#ECECEC
highlight GitGutterChange guifg=#FF8000 ctermfg=3

hi SignColumn guibg=#ECECEC
omap ic <Plug>(GitGutterTextObjectInnerPending)
omap ac <Plug>(GitGutterTextObjectOuterPending)
xmap ic <Plug>(GitGutterTextObjectInnerVisual)
xmap ac <Plug>(GitGutterTextObjectOuterVisual)

" }}}