massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-clangd / package.json
1 {
2   "name": "coc-clangd",
3   "version": "0.17.0",
4   "description": "clangd extension for coc.nvim",
5   "author": "Heyward Fann <fannheyward@gmail.com>",
6   "license": "Apache-2.0 WITH LLVM-exception",
7   "main": "lib/index.js",
8   "keywords": [
9     "coc.nvim"
10   ],
11   "engines": {
12     "coc": "^0.0.80"
13   },
14   "repository": {
15     "type": "git",
16     "url": "https://github.com/clangd/coc-clangd.git"
17   },
18   "scripts": {
19     "clean": "rimraf lib",
20     "build": "node esbuild.js",
21     "watch": "node esbuild.js --watch",
22     "lint": "eslint src --ext ts",
23     "prepare": "node esbuild.js"
24   },
25   "devDependencies": {
26     "@clangd/install": "^0.1.4",
27     "@types/node": "12.12.0",
28     "@types/which": "^2.0.0",
29     "@typescript-eslint/eslint-plugin": "^5.0.0",
30     "@typescript-eslint/parser": "^5.0.0",
31     "coc.nvim": "^0.0.81-next.7",
32     "esbuild": "^0.13.4",
33     "eslint": "^8.0.0",
34     "rimraf": "^3.0.1",
35     "typescript": "^4.4.3",
36     "vscode-languageserver-protocol": "^3.16.0"
37   },
38   "activationEvents": [
39     "onLanguage:c",
40     "onLanguage:cpp",
41     "onLanguage:cuda",
42     "onLanguage:objc",
43     "onLanguage:objcpp",
44     "onLanguage:opencl",
45     "onLanguage:objective-c",
46     "onLanguage:objective-cpp",
47     "workspaceContains:**/compile_commands.json",
48     "workspaceContains:**/compile_flags.txt"
49   ],
50   "rootPatterns": [
51     {
52       "patterns": [
53         "compile_commands.json",
54         "compile_flags.txt"
55       ]
56     }
57   ],
58   "contributes": {
59     "configuration": {
60       "type": "object",
61       "title": "coc-clangd configuration",
62       "properties": {
63         "clangd.enabled": {
64           "type": "boolean",
65           "default": true,
66           "description": "Enable coc-clangd extension"
67         },
68         "clangd.disableDiagnostics": {
69           "type": "boolean",
70           "default": false,
71           "description": "Disable diagnostics from clangd"
72         },
73         "clangd.disableCompletion": {
74           "type": "boolean",
75           "default": false,
76           "description": "Disable completion source from clangd"
77         },
78         "clangd.disableSnippetCompletion": {
79           "type": "boolean",
80           "default": false,
81           "description": "Disable completion snippet from clangd"
82         },
83         "clangd.compilationDatabasePath": {
84           "type": "string",
85           "default": "",
86           "description": "Specifies the directory containing the compilation database"
87         },
88         "clangd.path": {
89           "type": "string",
90           "default": "clangd",
91           "description": "The path to clangd executable, e.g.: /usr/bin/clangd"
92         },
93         "clangd.arguments": {
94           "type": "array",
95           "default": [],
96           "items": {
97             "type": "string"
98           },
99           "description": "Arguments for clangd server"
100         },
101         "clangd.trace.file": {
102           "type": "string",
103           "default": "",
104           "description": "Names a file that clangd should log a performance trace to, in chrome trace-viewer JSON format."
105         },
106         "clangd.trace.server": {
107           "type": "string",
108           "enum": [
109             "off",
110             "messages",
111             "verbose"
112           ],
113           "default": "off",
114           "description": "Trace requests to clangd"
115         },
116         "clangd.fallbackFlags": {
117           "type": "array",
118           "items": {
119             "type": "string"
120           },
121           "default": [],
122           "description": "Extra clang flags used to parse files when no compilation database is found."
123         },
124         "clangd.semanticHighlighting": {
125           "type": "boolean",
126           "default": false,
127           "description": "Enable semantic highlighting in clangd, requires jackguo380/vim-lsp-cxx-highlight to work"
128         },
129         "clangd.showDBChangedNotification": {
130           "type": "boolean",
131           "default": true,
132           "description": "Show notifications while DB files changed"
133         },
134         "clangd.serverCompletionRanking": {
135           "type": "boolean",
136           "default": true,
137           "description": "Always rank completion items on the server as you type. This produces more accurate results at the cost of higher latency than client-side filtering."
138         },
139         "clangd.checkUpdates": {
140           "type": "boolean",
141           "default": false,
142           "description": "Check for clangd language server updates on startup."
143         },
144         "suggest.detailMaxLength": {
145           "type": "number",
146           "description": "Max length of detail that should be shown in popup menu.",
147           "default": 50
148         },
149         "diagnostic.format": {
150           "type": "string",
151           "description": "Define the diagnostic format. Available parts: source, code, severity, message",
152           "default": "%message\n[%source:%code]"
153         }
154       }
155     },
156     "commands": [
157       {
158         "command": "clangd.ast",
159         "title": "Show AST"
160       },
161       {
162         "command": "clangd.switchSourceHeader",
163         "title": "Switch between source/header"
164       },
165       {
166         "command": "clangd.symbolInfo",
167         "title": "Resolve symbol info under the cursor"
168       },
169       {
170         "command": "clangd.memoryUsage",
171         "title": "Show memory usage"
172       },
173       {
174         "command": "clangd.projectConfig",
175         "title": "Open project configuration file"
176       },
177       {
178         "command": "clangd.userConfig",
179         "title": "Open user configuration file"
180       },
181       {
182         "command": "clangd.install",
183         "title": "Install latest clangd language server binary release"
184       },
185       {
186         "command": "clangd.update",
187         "title": "Check for updates to clangd language server"
188       }
189     ]
190   }
191 }