fix coc commands
This commit is contained in:
parent
f0f20f32b6
commit
5c23c39ac3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue