mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] bring back the diff jump motions
This commit is contained in:
parent
4895f06c02
commit
e0df40d97c
1 changed files with 16 additions and 12 deletions
|
@ -1,17 +1,21 @@
|
||||||
" mappings {{{
|
" mappings {{{
|
||||||
let g:gitgutter_map_keys = 0
|
let g:gitgutter_map_keys = 0
|
||||||
nnoremap <leader>gg :G
|
nnoremap <leader>gg :<C-u>G
|
||||||
nnoremap <leader>g :Git<space>
|
nnoremap <leader>g :<C-u>Git<space>
|
||||||
nnoremap <leader>gs :vertical Git<CR>
|
nnoremap <leader>gs :<C-u>vertical Git<CR>
|
||||||
nnoremap <leader>gd :Gdiffsplit
|
nnoremap <leader>gd :<C-u>Gdiffsplit
|
||||||
nnoremap <leader>gb :Git blame<CR>
|
nnoremap <leader>gb :<C-u>Git blame<CR>
|
||||||
nnoremap <leader>gw :GBrowse<CR>
|
nnoremap <leader>gw :<C-u>GBrowse<CR>
|
||||||
nnoremap <leader>gW :.GBrowse<CR>
|
nnoremap <leader>gW :<C-u>.GBrowse<CR>
|
||||||
nnoremap <leader>gc :Git commit %
|
nnoremap <leader>gc :<C-u>Git commit %
|
||||||
nnoremap <leader>gC :Git commit --amend
|
nnoremap <leader>gC :<C-u>Git commit --amend
|
||||||
nnoremap <leader>gl :Gclog<CR>
|
nnoremap <leader>gl :<C-u>Gclog<CR>
|
||||||
nnoremap <leader>gp :Git push
|
nnoremap <leader>gp :<C-u>Git push
|
||||||
nnoremap <leader>gP :Git push --force-with-lease
|
nnoremap <leader>gP :<C-u>Git push --force-with-lease
|
||||||
|
" Jump to the next/previous change in the diff mode because I replace the
|
||||||
|
" built-in mappings with coc.nvim's for jumping through diagnostics.
|
||||||
|
nnoremap [g [c
|
||||||
|
nnoremap ]g ]c
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Fugitive.vim handlers {{{
|
" Fugitive.vim handlers {{{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue