diff --git a/LanguageClient-neovim.md b/LanguageClient-neovim.md index ee51cb4..10e5894 100644 --- a/LanguageClient-neovim.md +++ b/LanguageClient-neovim.md @@ -72,26 +72,10 @@ augroup LanguageClient_config augroup END ``` -### `$ccls/navigate` - -Semantic navigation. Roughly, - -"D" => first child declaration -"L" => previous declaration -"R" => next declaration -"U" => parent declaration - -```vim -nn xh :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'L'}) -nn xj :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'D'}) -nn xk :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'U'}) -nn xl :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'R'}) -``` - -![](https://ptpb.pw/89Y2.gif) - ### Cross reference extensions +See [[LSP Extensions]] for the description of these extensions. + ```vim " bases nn xb :call LanguageClient#findLocations({'method':'$ccls/inheritance'}) @@ -120,26 +104,27 @@ nn xx x `$ccls/inheritance derived:false`: base classes/overridden methods/specialized from -![$ccls/inheritanceHierarchy derived:false](https://ptpb.pw/pEDL.jpg) - `$ccls/inheritance derived:true` -![$ccls/inheritanceHierarchy derived:true](https://ptpb.pw/QgCd.jpg) - `$ccls/call`: callers/callees of a function -![$ccls/callers](https://ptpb.pw/2RDi.jpg) - `$ccls/vars`: instances of a type -![$ccls/vars](https://ptpb.pw/peyX.jpg) - `$ccls/member`: fields of a struct/class/union/... -![$ccls/member](https://ptpb.pw/V8WR.jpg) - There are also hierarchical views of `$ccls/call` `$ccls/inheritance` `$ccls/member` (see the Emacs page) but they have not been implemented by a Vim plugin. +### `$ccls/navigate` + +See [[$ccls/navigate|LSP-Extensions#cclsnavigate]] + +```vim +nn xh :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'L'}) +nn xj :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'D'}) +nn xk :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'U'}) +nn xl :call LanguageClient#findLocations({'method':'$ccls/navigate','direction':'R'}) +``` + ### Formatting ```vim