From bd483482da630be50759c83e0baaa145d158c827 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 13 Sep 2018 17:15:26 -0700 Subject: [PATCH] . --- Emacs.md | 8 ++++---- FAQ.md | 8 ++++---- LanguageClient-neovim.md | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Emacs.md b/Emacs.md index d24e570..9e9f1b0 100644 --- a/Emacs.md +++ b/Emacs.md @@ -164,10 +164,10 @@ Recommended helpers: (lsp-ui-peek-find-custom 'caller "$ccls/call")) (defun ccls/vars (kind) (lsp-ui-peek-find-custom 'vars "$ccls/vars" `(:kind ,kind))) -(defun ccls/base (level) - (lsp-ui-peek-find-custom 'base "$ccls/inheritance" `(:level ,level))) -(defun ccls/derived (level) - (lsp-ui-peek-find-custom 'derived "$ccls/inheritance" `(:level ,level :derived t))) +(defun ccls/base (levels) + (lsp-ui-peek-find-custom 'base "$ccls/inheritance" `(:levels ,levels))) +(defun ccls/derived (levels) + (lsp-ui-peek-find-custom 'derived "$ccls/inheritance" `(:levels ,levels :derived t))) (defun ccls/member () (interactive) (lsp-ui-peek-find-custom 'member "$ccls/member")) diff --git a/FAQ.md b/FAQ.md index a2f72f7..fc8138a 100644 --- a/FAQ.md +++ b/FAQ.md @@ -165,7 +165,7 @@ ccls will save a file in `cacheDirectory`: * extern int a; If `ReferenceContext.includeDeclaration` is true, the definition and declarations are also listed. * If no references is found but the point is on the first line, list `#include` lines referencing current file. -### `$ccls/memberHierarchy flat:true derived:false` +### `$ccls/member derived:false` * struct A:B{void f()override;}; lists `B` or `B::f()` @@ -178,20 +178,20 @@ ccls will save a file in `cacheDirectory`: * A a; lists all instances of user-defined `A`. * int i; lists all instances of `int`. -### [`$ccls/callHierarchy`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_callHierarchy.cc) +### [`$ccls/call`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_call.cc) ```elisp (ccls-call-hierarchy nil) ; caller hierarchy (ccls-call-hierarchy t) ; callee hierarchy ``` -### [`$ccls/inheritanceHierarchy`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_inheritanceHierarchy.cc) +### [`$ccls/inheritance`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_inheritance.cc) ```elisp (ccls-inheritance-hierarchy nil) ; base hierarchy (ccls-inheritance-hierarchy t) ; derived hierarchy ``` -### [`$ccls/memberHierarchy`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_memberHierarchy.cc) +### [`$ccls/member`](https://github.com/MaskRay/ccls/blob/master/src/messages/ccls_member.cc) Recursively list members of a record type. 😂 nobody has implemented vscode-ccls UI for the feature. Help wanted! diff --git a/LanguageClient-neovim.md b/LanguageClient-neovim.md index d0fc229..d745b2d 100644 --- a/LanguageClient-neovim.md +++ b/LanguageClient-neovim.md @@ -77,7 +77,7 @@ nn xl :call LanguageClient#findLocations({'method':'$ccls/navigate','di nn xb :call LanguageClient#findLocations({'method':'$ccls/inheritance'}) " bases of up to 3 levels nn xB :call LanguageClient#findLocations({'method':'$ccls/inheritance','levels':3}) -" derived of up to 3 levels +" derived nn xd :call LanguageClient#findLocations({'method':'$ccls/inheritance','derived':v:true}) " derived of up to 3 levels nn xD :call LanguageClient#findLocations({'method':'$ccls/inheritance','derived':v:true,'levels':3})