LanguageClient-neovim

Fangrui Song 2018-08-23 21:38:06 -07:00
parent 52bdf5a126
commit 76c71da257

@ -71,10 +71,28 @@ or any other
### Custom cross references
```vim
" one-level base
nn <silent> xB :call LanguageClient#findLocations({'method':'$ccls/base'})<cr>
" bases of up to 3 levels
nn <silent> xb :call LanguageClient#findLocations({'method':'$ccls/inheritanceHierarchy','flat':v:true,'levels':3,'derived':v:false})<cr>
" derived of up to 3 levels
nn <silent> xd :call LanguageClient#findLocations({'method':'$ccls/inheritanceHierarchy','flat':v:true,'levels':3,'derived':v:true})<cr>
nn <silent> xe :call LanguageClient#findLocations({'method':'$ccls/callers'})<cr>
nn <silent> xm :call LanguageClient#findLocations({'method':'$ccls/memberHierarchy','flat':v:true})<cr>
nn <silent> xt :call LanguageClient#textDocument_typeDefinition()<cr>
nn <silent> xv :call LanguageClient#findLocations({'method':'$ccls/vars'})<cr>
nn <silent> xV :call LanguageClient#findLocations({'method':'$ccls/vars','kind':1})<cr>
nn xx x
```
Bases: base classes/overridden methods/specialized from
![$ccls/inheritanceHierarchy flat:t derived:false](https://ptpb.pw/ph3W.jpg)
Derived
![$ccls/inheritanceHierarchy flat:t derived:true](https://ptpb.pw/sSkt.jpg)
![$ccls/callers](https://ptpb.pw/U0xJ.jpg)
![$ccls/vars](https://ptpb.pw/1mCm.jpg)
![$ccls/memberHierarchy flat:t](https://ptpb.pw/FSYc.jpg)