blob: d3cf097f404f817b39f223307bea7aeef4a4120b [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)
Skyler Grey97efa1a2022-10-30 23:10:37 +00004nmap <silent> <Leader>fb <Plug>(coc-codeaction)
5nmap <silent> <Leader>ff <Plug>(coc-codeaction-cursor)
6nmap <silent> <Leader>fc <Plug>(coc-codeaction-cursor)
7nmap <silent> <Leader>fr <Plug>(coc-rename)
8nmap <silent> <Leader>fi <Plug>(coc-fix-current)
Skyler Greya7feb6e2022-08-26 06:51:55 +01009nmap <Leader>fe <Cmd>CocCommand explorer<CR>
10
11function! s:show_documentation()
12if (index(['vim','help'], &filetype) >= 0)
13execute 'h '.expand('<cword>')
14else
15call CocAction('doHover')
16endif
17endfunction
18
19nnoremap <silent> K :call <SID>show_documentation()<CR>