-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomma_whichkey.vim
18 lines (16 loc) · 1.11 KB
/
comma_whichkey.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" Quicky mappings
nnoremap <silent> , :<c-u>WhichKey ','<CR>
vnoremap <silent> , :<c-u>WhichKeyVisual ','<CR>
let g:comma_which_key_map = {
\ ']': ['<Plug>(coc-diagnostic-next)' , 'previous diagnostic (,])'],
\ '[': ['<Plug>(coc-diagnostic-prev)' , 'next diagnostic (,[)'],
\ 'o': ['<c-o>' , 'go to prev jump <C-O>'],
\ 'n': ['<c-i>' , 'go to next jump <C-I>'],
\ 'k': ["CocAction('jumpDefinition', v:false)" , 'peek definition'],
\ 'i': ["CocAction('jumpImplementation', v:false)" , 'peek implementation'],
\ 'd': ['<Plug>(coc-definition)' , 'go to definition (,d)'],
\ 'y': ['<Plug>(coc-type-definition)' , 'go to t[Y]pe definition (,y)'],
\ 'm': ['<Plug>(coc-implementation)' , 'go to i[M]plementation (,m)'],
\ 'r': ['<Plug>(coc-references)' , 'go to references (,r)'],
\ }
call which_key#register(',', "g:comma_which_key_map")