nvim: plugin: gitjump: Git jump integration with vim
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
5db0a2f0c2
commit
df18cc7ec4
1 changed files with 9 additions and 0 deletions
9
nvim/.config/nvim/plugin/gitjump.vim
Normal file
9
nvim/.config/nvim/plugin/gitjump.vim
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
" Taken from https://gist.github.com/romainl/a3ddb1d08764b93183260f8cdf0f524f
|
||||||
|
" The original script can be found at https://github.com/git/git/tree/master/contrib/git-jump
|
||||||
|
nnoremap <Leader>jd :GitJump diff<CR>
|
||||||
|
nnoremap <Leader>jm :GitJump merge<CR>
|
||||||
|
nnoremap <Leader>jg :GitJump grep<SPACE>
|
||||||
|
nnoremap <Leader>jc :exe ':GitJump grep ' . expand('<cword>')<CR>
|
||||||
|
nnoremap <Leader>jw :GitJump ws<CR>
|
||||||
|
|
||||||
|
command! -bar -nargs=* GitJump cexpr system('git jump ' . expand(<q-args>))
|
Loading…
Reference in a new issue