Skip to content

Commit

Permalink
add plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyangze committed May 29, 2023
1 parent 64423de commit 5596315
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion layers/common/tool-git.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Plug 'chemzqm/vim-easygit'
"Plug 'mhinz/vim-signify'
Plug 'airblade/vim-gitgutter'
let g:easygit_enable_command = 1
let g:easygit_enable_command = 1

command! Gqf GitGutterQuickFix | copen
nmap ghp <Plug>(GitGutterPreviewHunk)
6 changes: 4 additions & 2 deletions layers/user/keymap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -551,8 +551,10 @@ let g:which_key_map.g = {
\'p': ['Gpush', 'git push'],
\'r': ['Gremove', 'git remove'],
\'s': ['Gstatus', 'git status'],
\'j': ['<plug>(signify-next-hunk)', 'Jump Next Change'],
\'k': ['<plug>(signify-prev-hunk)', 'Jump Prev Change'],
\'j': ['<plug>(GitGutterNextHunk)', 'Jump Next Change'],
\'k': ['<plug>(GitGutterPrevHunk)', 'Jump Prev Change'],
\'q': [':GitGutterQuickFix | copen', 'Quickfix'],
\'P': ['<Plug>(GitGutterPreviewHunk)', 'Preview'],
\}

let g:which_key_map.q = {
Expand Down
4 changes: 2 additions & 2 deletions layers/user/quickmap.vim
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ nnoremap ]e :<c-u>execute 'move +'. v:count1<cr>
nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
nmap [c <plug>(signify-prev-hunk)
nmap ]c <plug>(signify-next-hunk)
nmap ]c <Plug>(GitGutterNextHunk)
nmap [c <Plug>(GitGutterPrevHunk)
nnoremap [s :<c-u>ALEPrevious<cr>
nnoremap ]s :<c-u>ALENext<cr>
Expand Down

0 comments on commit 5596315

Please sign in to comment.