From c1fa202120dba12f8d0fade3fae5f1eb5700bf9d Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 7 Sep 2018 14:57:34 -0700 Subject: [PATCH] Remove $ccls/base --- Emacs.md | 4 +--- FAQ.md | 2 +- Initialization-options.md | 7 +++++++ LanguageClient-neovim.md | 2 -- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Emacs.md b/Emacs.md index 7e28075..f012ac9 100644 --- a/Emacs.md +++ b/Emacs.md @@ -133,13 +133,11 @@ For a symbol named `Name::FooBar`, all of `FooBar`, `foo bar`, `nafoba` find the Aside from definitions/references/workspace symbol, ccls provides some LSP extensions that find base/derived classes/methods, vars of a type, callers of a function. You may call: ```elisp -(lsp-find-custom "$ccls/base") (lsp-find-custom "$ccls/callers") -; Use lsp-goto-implementation or lsp-ui-peek-find-implementation for derived types/functions (lsp-find-custom "$ccls/vars") +; Use lsp-goto-implementation or lsp-ui-peek-find-implementation for derived types/functions ;; Alternatively, use lsp-ui-peek interface -(lsp-ui-peek-find-custom 'base "$ccls/base") (lsp-ui-peek-find-custom 'callers "$ccls/callers") (defun ccls/vars (kind) (lsp-ui-peek-find-custom 'vars "$ccls/vars" (plist-put (lsp--text-document-position-params) :kind kind))) diff --git a/FAQ.md b/FAQ.md index 8cc3dc6..a2f72f7 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/base` +### `$ccls/memberHierarchy flat:true derived:false` * struct A:B{void f()override;}; lists `B` or `B::f()` diff --git a/Initialization-options.md b/Initialization-options.md index 74812b2..51ac618 100644 --- a/Initialization-options.md +++ b/Initialization-options.md @@ -51,6 +51,13 @@ You usually want to use `index.multiVersionBlacklist` to exclude system headers. } ``` +## `index.onChange`: re-index for every change + +It is `false` by default which means to re-index when a document is saved. +Set it to `true` to re-index for every change to a document. + +The performance will suffer a lot. + ## `cacheFormat`: serialization format of cache files Two cache serialization formats are supported. diff --git a/LanguageClient-neovim.md b/LanguageClient-neovim.md index 19c4e3f..163c29c 100644 --- a/LanguageClient-neovim.md +++ b/LanguageClient-neovim.md @@ -73,8 +73,6 @@ nn xl :call LanguageClient#findLocations({'method':'$ccls/navigate','di ### 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