aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CONFIG.md432
-rw-r--r--lua/lspconfig/ccls.lua1
2 files changed, 0 insertions, 433 deletions
diff --git a/CONFIG.md b/CONFIG.md
index 12e8aef6..a43f4ffd 100644
--- a/CONFIG.md
+++ b/CONFIG.md
@@ -176,438 +176,6 @@ lspconfig.ccls.setup {
```
-This server accepts configuration via the `settings` key.
-<details><summary>Available settings:</summary>
-
-- **`ccls.cache.directory`**: `string`
-
- Default: `".ccls-cache"`
-
- Absolute or relative \(from the project root\) path to the directory that the cached index will be stored in\. Try to have this directory on an SSD\. If empty\, cached indexes will not be saved on disk\.
-
- \$\{workspaceFolder\} will be replaced by the folder where \.vscode\/settings\.json resides\.
-
- Cache directories are project\-wide\, so this should be configured in the workspace settings so multiple indexes do not clash\.
-
- Example value\: \"\/work\/ccls\-cache\/chrome\/\"
-
-- **`ccls.cache.hierarchicalPath`**: `boolean`
-
- If false\, store cache files as \$directory\/\@a\@b\/c\.cc\.blob
-
- If true\, \$directory\/a\/b\/c\.cc\.blob\.
-
-- **`ccls.callHierarchy.qualified`**: `boolean`
-
- Default: `true`
-
- If true\, use qualified names in the call hiearchy
-
-- **`ccls.clang.excludeArgs`**: `array`
-
- Default: `{}`
-
- An set of command line arguments to strip before passing to clang when indexing\. Each list entry is a separate argument\.
-
-- **`ccls.clang.extraArgs`**: `array`
-
- Default: `{}`
-
- An extra set of command line arguments to give clang when indexing\. Each list entry is a separate argument\.
-
-- **`ccls.clang.pathMappings`**: `array`
-
- Default: `{}`
-
- Translate paths in compile\_commands\.json entries\, \.ccls options and cache files\. This allows to reuse cache files built otherwhere if the source paths are different\.
-
-- **`ccls.clang.resourceDir`**: `string`
-
- Default: `""`
-
- Default value to use for clang \-resource\-dir argument\. This will be automatically supplied by ccls if not provided\.
-
-- **`ccls.codeLens.enabled`**: `boolean`
-
- Default: `true`
-
- Specifies whether the references CodeLens should be shown\.
-
-- **`ccls.codeLens.localVariables`**: `boolean`
-
- Set to false to hide code lens on parameters and function local variables\.
-
-- **`ccls.codeLens.renderInline`**: `boolean`
-
- Enables a custom code lens renderer so code lens are displayed inline with code\. This removes any vertical\-space footprint at the cost of horizontal space\.
-
-- **`ccls.completion.caseSensitivity`**: `integer`
-
- Default: `2`
-
- Case sensitivity when code completion is filtered\. 0\: case\-insensitive\, 1\: case\-folded\, i\.e\. insensitive if no input character is uppercase\, 2\: case\-sensitive
-
-- **`ccls.completion.detailedLabel`**: `boolean`
-
- When this option is enabled\, the completion item label is very detailed\, it shows the full signature of the candidate\.
-
-- **`ccls.completion.duplicateOptional`**: `boolean`
-
- For functions with default arguments\, generate one more item per default argument\.
-
-- **`ccls.completion.enableSnippetInsertion`**: `boolean`
-
- If true\, parameter declarations are inserted as snippets in function\/method call arguments when completing a function\/method call
-
-- **`ccls.completion.include.blacklist`**: `array`
-
- Default: `{}`
-
- ECMAScript regex that checks absolute path\. If it partially matches\, the file is not added to include path auto\-complete\. An example is \"\/CACHE\/\"
-
-- **`ccls.completion.include.maxPathSize`**: `integer`
-
- Default: `37`
-
- Maximum length for path in \#include proposals\. If the path length goes beyond this number it will be elided\. Set to 0 to always display the full path\.
-
-- **`ccls.completion.include.suffixWhitelist`**: `array`
-
- Default: `{ ".h", ".hpp", ".hh" }`
-
- Only files ending in one of these values will be shown in include auto\-complete\. Set to the empty\-list to disable include auto\-complete\.
-
-- **`ccls.completion.include.whitelist`**: `array`
-
- Default: `{}`
-
- ECMAScript regex that checks absolute file path\. If it does not partially match\, the file is not added to include path auto\-complete\. An example is \"\/src\/\"
-
-- **`ccls.diagnostics.blacklist`**: `array`
-
- Default: `{}`
-
- Files that match these patterns won\'t be displayed in diagnostics view\.
-
-- **`ccls.diagnostics.onChange`**: `integer`
-
- Default: `1000`
-
- Time in milliseconds to wait before computing diagnostics on type\. \-1\: disable diagnostics on type\.
-
-- **`ccls.diagnostics.onOpen`**: `integer`
-
- Default: `0`
-
- Time in milliseconds to wait before computing diagnostics when a file is opened\.
-
-- **`ccls.diagnostics.onSave`**: `integer`
-
- Default: `0`
-
- Time in milliseconds to wait before computing diagnostics when a file is saved\.
-
-- **`ccls.diagnostics.spellChecking`**: `boolean`
-
- Default: `true`
-
- Whether to do spell checking on undefined symbol names when computing diagnostics\.
-
-- **`ccls.diagnostics.whitelist`**: `array`
-
- Default: `{}`
-
- Files that match these patterns will be displayed in diagnostics view\.
-
-- **`ccls.highlight.blacklist`**: `array|null`
-
- Default: `vim.NIL`
-
- Files that match these patterns won\'t have semantic highlight\.
-
-- **`ccls.highlight.enum.face`**: `array`
-
- Default: `{ "variable", "member" }`
-
- null
-
-- **`ccls.highlight.function.colors`**: `array`
-
- Default: `{ "#e5b124", "#927754", "#eb992c", "#e2bf8f", "#d67c17", "#88651e", "#e4b953", "#a36526", "#b28927", "#d69855" }`
-
- Colors to use for semantic highlight\. A good generator is http\:\/\/tools\.medialab\.sciences\-po\.fr\/iwanthue\/\. If multiple colors are specified\, semantic highlight will cycle through them for successive symbols\.
-
-- **`ccls.highlight.function.face`**: `array`
-
- Default: `{}`
-
- null
-
-- **`ccls.highlight.global.face`**: `array`
-
- Default: `{ "fontWeight: bolder" }`
-
- null
-
-- **`ccls.highlight.globalVariable.face`**: `array`
-
- Default: `{ "variable", "global" }`
-
- null
-
-- **`ccls.highlight.largeFileSize`**: `integer|null`
-
- Default: `vim.NIL`
-
- Disable semantic highlight for files larger than the size\.
-
-- **`ccls.highlight.macro.colors`**: `array`
-
- Default: `{ "#e79528", "#c5373d", "#e8a272", "#d84f2b", "#a67245", "#e27a33", "#9b4a31", "#b66a1e", "#e27a71", "#cf6d49" }`
-
- Colors to use for semantic highlight\. A good generator is http\:\/\/tools\.medialab\.sciences\-po\.fr\/iwanthue\/\. If multiple colors are specified\, semantic highlight will cycle through them for successive symbols\.
-
-- **`ccls.highlight.macro.face`**: `array`
-
- Default: `{ "variable" }`
-
- null
-
-- **`ccls.highlight.member.face`**: `array`
-
- Default: `{ "fontStyle: italic" }`
-
- null
-
-- **`ccls.highlight.memberFunction.face`**: `array`
-
- Default: `{ "function", "member" }`
-
- null
-
-- **`ccls.highlight.memberVariable.face`**: `array`
-
- Default: `{ "variable", "member" }`
-
- null
-
-- **`ccls.highlight.namespace.colors`**: `array`
-
- Default: `{ "#429921", "#58c1a4", "#5ec648", "#36815b", "#83c65d", "#417b2f", "#43cc71", "#7eb769", "#58bf89", "#3e9f4a" }`
-
- Colors to use for semantic highlight\. A good generator is http\:\/\/tools\.medialab\.sciences\-po\.fr\/iwanthue\/\. If multiple colors are specified\, semantic highlight will cycle through them for successive symbols\.
-
-- **`ccls.highlight.namespace.face`**: `array`
-
- Default: `{ "type" }`
-
- null
-
-- **`ccls.highlight.parameter.face`**: `array`
-
- Default: `{ "variable" }`
-
- null
-
-- **`ccls.highlight.static.face`**: `array`
-
- Default: `{ "fontWeight: bold" }`
-
- null
-
-- **`ccls.highlight.staticMemberFunction.face`**: `array`
-
- Default: `{ "function", "static" }`
-
- null
-
-- **`ccls.highlight.staticMemberVariable.face`**: `array`
-
- Default: `{ "variable", "static" }`
-
- null
-
-- **`ccls.highlight.staticVariable.face`**: `array`
-
- Default: `{ "variable", "static" }`
-
- null
-
-- **`ccls.highlight.type.colors`**: `array`
-
- Default: `{ "#e1afc3", "#d533bb", "#9b677f", "#e350b6", "#a04360", "#dd82bc", "#de3864", "#ad3f87", "#dd7a90", "#e0438a" }`
-
- Colors to use for semantic highlight\. A good generator is http\:\/\/tools\.medialab\.sciences\-po\.fr\/iwanthue\/\. If multiple colors are specified\, semantic highlight will cycle through them for successive symbols\.
-
-- **`ccls.highlight.type.face`**: `array`
-
- Default: `{}`
-
- null
-
-- **`ccls.highlight.typeAlias.face`**: `array`
-
- Default: `{ "type" }`
-
- null
-
-- **`ccls.highlight.variable.colors`**: `array`
-
- Default: `{ "#587d87", "#26cdca", "#397797", "#57c2cc", "#306b72", "#6cbcdf", "#368896", "#3ea0d2", "#48a5af", "#7ca6b7" }`
-
- Colors to use for semantic highlight\. A good generator is http\:\/\/tools\.medialab\.sciences\-po\.fr\/iwanthue\/\. If multiple colors are specified\, semantic highlight will cycle through them for successive symbols\.
-
-- **`ccls.highlight.variable.face`**: `array`
-
- Default: `{}`
-
- null
-
-- **`ccls.highlight.whitelist`**: `array|null`
-
- Default: `vim.NIL`
-
- Files that match these patterns will have semantic highlight\.
-
-- **`ccls.index.blacklist`**: `array`
-
- Default: `{}`
-
- A translation unit \(cc\/cpp file\) is not indexed if any of the ECMAScript regexes in this list partially matches translation unit\'s the absolute path\.
-
-- **`ccls.index.initialBlacklist`**: `array`
-
- Default: `{}`
-
- Files matched by the regexes should not be indexed on initialization\. Indexing is deferred to when they are opened\.
-
-- **`ccls.index.initialWhitelist`**: `array`
-
- Default: `{}`
-
- Files matched by the regexes should be indexed on initialization\.
-
-- **`ccls.index.maxInitializerLines`**: `integer`
-
- Default: `15`
-
- Number of lines of the initializer \/ macro definition showed in hover\.
-
-- **`ccls.index.multiVersion`**: `integer`
-
- Default: `0`
-
- If not 0\, a file will be indexed in each tranlation unit that includes it\.
-
-- **`ccls.index.onChange`**: `boolean`
-
- Allow indexing on textDocument\/didChange\. May be too slow for big projects\, so it is off by default\.
-
-- **`ccls.index.threads`**: `number`
-
- Default: `0`
-
- Number of indexer threads\. If 0\, 80\% of cores are used\.
-
-- **`ccls.index.trackDependency`**: `integer`
-
- Default: `2`
-
- Whether to reparse a file if write times of its dependencies have changed\. The file will always be reparsed if its own write time changes\.
-
- 0\: no\, 1\: only during initial load of project\, 2\: yes
-
-- **`ccls.index.whitelist`**: `array`
-
- Default: `{}`
-
- If a translation unit\'s absolute path partially matches any ECMAScript regex in this list\, it will be indexed\. The whitelist takes priority over the blacklist\. To only index files in the whitelist\, make \"ccls\.index\.blacklist\" match everything\, ie\, set it to \"\.\*\"\.
-
-- **`ccls.launch.args`**: `array`
-
- Default: `{}`
-
- Array containing extra arguments to pass to the ccls binary
-
-- **`ccls.launch.command`**: `string`
-
- Default: `"ccls"`
-
- Path to the ccls binary \(default assumes the binary is in the PATH\)
-
-- **`ccls.misc.compilationDatabaseCommand`**: `string`
-
- Default: `""`
-
- If not empty\, the compilation database command to use
-
-- **`ccls.misc.compilationDatabaseDirectory`**: `string`
-
- Default: `""`
-
- If not empty\, the compilation database directory to use instead of the project root
-
-- **`ccls.misc.showInactiveRegions`**: `boolean`
-
- Default: `true`
-
- If true\, ccls will highlight skipped ranges\.
-
-- **`ccls.statusUpdateInterval`**: `integer`
-
- Default: `2000`
-
- Interval between updating ccls status in milliseconds\. Set to 0 to disable\.
-
-- **`ccls.theme.dark.skippedRange.backgroundColor`**: `string`
-
- Default: `"rgba(18, 18, 18, 0.3)"`
-
- CSS color to apply to the background when the code region has been disabled by the preprocessor in a dark theme\.
-
-- **`ccls.theme.dark.skippedRange.textColor`**: `string`
-
- Default: `"rgb(100, 100, 100)"`
-
- CSS color to apply to text when the code region has been disabled by the preprocessor in a dark theme\.
-
-- **`ccls.theme.light.skippedRange.backgroundColor`**: `string`
-
- Default: `"rgba(220, 220, 220, 0.3)"`
-
- CSS color to apply to the background when the code region has been disabled by the preprocessor in a light theme\.
-
-- **`ccls.theme.light.skippedRange.textColor`**: `string`
-
- Default: `"rgb(100, 100, 100)"`
-
- CSS color to apply to text when the code region has been disabled by the preprocessor in a light theme\.
-
-- **`ccls.trace.websocketEndpointUrl`**: `string`
-
- Default: `""`
-
- When set\, logs all LSP messages to specified WebSocket endpoint\.
-
-- **`ccls.treeViews.doubleClickTimeoutMs`**: `number`
-
- Default: `500`
-
- If a tree view entry is double\-clicked within this timeout value\, vscode will navigate to the entry\.
-
-- **`ccls.workspaceSymbol.caseSensitivity`**: `integer`
-
- Default: `1`
-
- Case sensitivity when searching workspace symbols\. 0\: case\-insensitive\, 1\: case\-folded\, i\.e\. insensitive if no input character is uppercase\, 2\: case\-sensitive
-
-- **`ccls.workspaceSymbol.maxNum`**: `number|null`
-
- Default: `vim.NIL`
-
- The maximum number of global search \(ie\, Ctrl+P + \#foo\) search results to report\. For small search strings on large projects there can be a massive number of results \(ie\, over 1\,000\,000\) so this limit is important to avoid extremely long delays\. null means use the default value provided by the ccls language server\.
-
-</details>
```lua
require'lspconfig'.ccls.setup{}
diff --git a/lua/lspconfig/ccls.lua b/lua/lspconfig/ccls.lua
index 20415d28..190ffffc 100644
--- a/lua/lspconfig/ccls.lua
+++ b/lua/lspconfig/ccls.lua
@@ -8,7 +8,6 @@ configs.ccls = {
root_dir = util.root_pattern("compile_commands.json", "compile_flags.txt", ".git");
};
docs = {
- package_json = "https://raw.githubusercontent.com/MaskRay/vscode-ccls/master/package.json";
description = [[
https://github.com/MaskRay/ccls/wiki