diff --git a/Neovim.md b/Neovim.md index 55c6f0e..5479e27 100644 --- a/Neovim.md +++ b/Neovim.md @@ -71,10 +71,28 @@ or any other ### Custom cross references ```vim +" one-level base +nn xB :call LanguageClient#findLocations({'method':'$ccls/base'}) +" bases of up to 3 levels nn xb :call LanguageClient#findLocations({'method':'$ccls/inheritanceHierarchy','flat':v:true,'levels':3,'derived':v:false}) +" derived of up to 3 levels nn xd :call LanguageClient#findLocations({'method':'$ccls/inheritanceHierarchy','flat':v:true,'levels':3,'derived':v:true}) nn xe :call LanguageClient#findLocations({'method':'$ccls/callers'}) +nn xm :call LanguageClient#findLocations({'method':'$ccls/memberHierarchy','flat':v:true}) +nn xt :call LanguageClient#textDocument_typeDefinition() nn xv :call LanguageClient#findLocations({'method':'$ccls/vars'}) nn xV :call LanguageClient#findLocations({'method':'$ccls/vars','kind':1}) 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)