averak/dotfiles

定義ジャンプとimportの整列コマンドを定義する

Closed this issue · 0 comments

  "ノーマルモードで
+ "スペースbでDefinition
+ nmap <silent> <space>b <Plug>(coc-definition)
  "スペースclでCocList
  nmap <silent> <space>cl :<C-u>CocList<cr>
  "スペースrfでReferences
  nmap <silent> <space>rf <Plug>(coc-references)
  "スペースrnでRename
  nmap <silent> <space>rn <Plug>(coc-rename)
  "QでFormat
  nmap <silent> Q <Plug>(coc-format)
  command! -nargs=0 Format :call CocAction('format')
+ command! -nargs=0 OrganizeImports :call CocAction('runCommand', 'java.action.organizeImports')