blob: 8e5c0c1e1805c92e5d637b0c9deac282ce718776 [file] [log] [blame]
nmap <silent> ]c :call CocAction('diagnosticNext')<cr>
nmap <silent> [c :call CocAction('diagnosticPrevious')<cr>
nmap <silent> <Leader>fs <Plug>(coc-codeaction-selected)
nmap <silent> <Leader>fg <Plug>(coc-codeaction-cursor)
nmap <silent> <Leader>ff <Plug>(coc-codeaction)
nmap <Leader>fe <Cmd>CocCommand explorer<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
nnoremap <silent> K :call <SID>show_documentation()<CR>