mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 09:05:10 +00:00
Add client.snippetSupport
parent
be692178aa
commit
5b6351c2d2
@ -45,6 +45,10 @@ rsync -a /tmp/ccls/@@tmp@container/ /tmp/ccls/@@tmp@host/ # files outside of pro
|
||||
|
||||
Open `/tmp/host/a.cc`, the cache file `/tmp/ccls/@tmp@host/a.cc.blob` will be reused. When `a.cc` is saved (re-indexed), the newly generated `a.cc.blob` will not contain `/tmp/container` paths any more.
|
||||
|
||||
## `client.snippetSupport`
|
||||
|
||||
LSP snippets in completion items are enabled if this option is true and the client announces that it supports it (`capabilities.textDocument.completionItem.snippetSupport`). If your client supports LSP snippets but you don't like them, set the option to false.
|
||||
|
||||
## `diagnostics.onOpen: 0` `diagnostics.onChange: 1000` `diagnostics.onSave: 0`
|
||||
|
||||
Time to wait before computing diagnostics for `textDocument/{didOpen,didChange,didSave}`.
|
||||
@ -131,6 +135,15 @@ If `a.h` has been changed, when you open `a.cc` which includes `a.h`, an index r
|
||||
* 2: the index of `a.cc` is considered stale and it should be re-indexed.
|
||||
* 1: before the initial load, the behavior of 2 is used, otherwise the behavior of 0 is used.
|
||||
|
||||
## `completion.detailedLabel`
|
||||
|
||||
Default: true
|
||||
|
||||
When this option is enabled, `label` `detailed` are repurposed:
|
||||
|
||||
* `label`: detailed function signature, e.g. `foo(int a, int b) -> bool`
|
||||
* `detailed`: the name of the parent context, e.g. in `S s; s.<complete>`, the parent context is `S`.
|
||||
|
||||
## `completion.filterAndSort`: completion filtering and sorting
|
||||
|
||||
ccls filters and sorts completions to try to be nicer to clients that can't handle big numbers of completion candidates. This behaviour can be disabled by specifying `false` for the option.
|
||||
|
Loading…
Reference in New Issue
Block a user