Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame] | 1 | nmap <silent> ]c :call CocAction('diagnosticNext')<cr> |
| 2 | nmap <silent> [c :call CocAction('diagnosticPrevious')<cr> |
| 3 | nmap <silent> <Leader>fs <Plug>(coc-codeaction-selected) |
| 4 | nmap <silent> <Leader>fg <Plug>(coc-codeaction-cursor) |
| 5 | nmap <silent> <Leader>ff <Plug>(coc-codeaction) |
| 6 | nmap <Leader>fe <Cmd>CocCommand explorer<CR> |
| 7 | |
| 8 | function! s:show_documentation() |
| 9 | if (index(['vim','help'], &filetype) >= 0) |
| 10 | execute 'h '.expand('<cword>') |
| 11 | else |
| 12 | call CocAction('doHover') |
| 13 | endif |
| 14 | endfunction |
| 15 | |
| 16 | nnoremap <silent> K :call <SID>show_documentation()<CR> |