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