fix coc commands

This commit is contained in:
Christoph J. Scherr 2023-07-11 13:44:47 +02:00
parent f0f20f32b6
commit 5c23c39ac3
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 10 additions and 8 deletions

View File

@ -156,18 +156,20 @@ command! -nargs=0 OR :call CocActionAsync('runCommand', 'editor.action.org
" Mappings for CoCList
" Show all diagnostics
nnoremap <silent><nowait> <leader>CA :<C-u>CocList diagnostics<cr>
nnoremap <silent><nowait> <leader>ca :<C-u>CocList diagnostics<cr>
" Manage extensions
nnoremap <silent><nowait> <leader>CE :<C-u>CocList extensions<cr>
nnoremap <silent><nowait> <leader>ce :<C-u>CocList extensions<cr>
" Show commands
nnoremap <silent><nowait> <leader>CC :<C-u>CocList commands<cr>
nnoremap <silent><nowait> <leader>cc :<C-u>CocList commands<cr>
" Find symbol of current document
nnoremap <silent><nowait> <leader>CO :<C-u>CocList outline<cr>
nnoremap <silent><nowait> <leader>co :<C-u>CocList outline<cr>
" Search workspace symbols
nnoremap <silent><nowait> <leader>CS :<C-u>CocList -I symbols<cr>
nnoremap <silent><nowait> <leader>cs :<C-u>CocList -I symbols<cr>
" Do default action for next item
nnoremap <silent><nowait> <leader>CJ :<C-u>CocNext<CR>
nnoremap <silent><nowait> <leader>cj :<C-u>CocNext<CR>
" Do default action for previous item
nnoremap <silent><nowait> <leader>CK :<C-u>CocPrev<CR>
nnoremap <silent><nowait> <leader>ck :<C-u>CocPrev<CR>
" Resume latest coc list
nnoremap <silent><nowait> <leader>CP :<C-u>CocListResume<CR>
nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
" reload rust language server
nnoremap <silent><nowait> <leader>crr :CocCommand rust-analyzer.reload<CR>