166 lines
5 KiB
JSON
166 lines
5 KiB
JSON
{
|
|
"name": "coc-clangd",
|
|
"version": "0.9.0",
|
|
"description": "clangd extension for coc.nvim",
|
|
"author": "Heyward Fann <fannheyward@gmail.com>",
|
|
"license": "Apache-2.0 WITH LLVM-exception",
|
|
"main": "lib/index.js",
|
|
"keywords": [
|
|
"coc.nvim"
|
|
],
|
|
"engines": {
|
|
"coc": "^0.0.80"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/clangd/coc-clangd.git"
|
|
},
|
|
"scripts": {
|
|
"clean": "rimraf lib",
|
|
"build": "node esbuild.js",
|
|
"lint": "eslint src --ext ts",
|
|
"prepare": "node esbuild.js"
|
|
},
|
|
"devDependencies": {
|
|
"@clangd/install": "^0.1.3",
|
|
"@types/node": "10.12.0",
|
|
"@types/which": "^2.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^4.5.0",
|
|
"@typescript-eslint/parser": "^4.5.0",
|
|
"coc.nvim": "^0.0.81-next.2",
|
|
"esbuild": "^0.8.42",
|
|
"eslint": "^7.11.0",
|
|
"eslint-config-prettier": "^7.0.0",
|
|
"eslint-plugin-prettier": "^3.1.4",
|
|
"prettier": "^2.1.2",
|
|
"rimraf": "^3.0.1",
|
|
"typescript": "^4.0.3",
|
|
"vscode-languageserver-protocol": "^3.15.3"
|
|
},
|
|
"activationEvents": [
|
|
"onLanguage:c",
|
|
"onLanguage:cpp",
|
|
"onLanguage:cuda",
|
|
"onLanguage:objc",
|
|
"onLanguage:objcpp",
|
|
"onLanguage:arduino",
|
|
"onLanguage:objective-c",
|
|
"onLanguage:objective-cpp",
|
|
"workspaceContains:**/compile_commands.json",
|
|
"workspaceContains:**/compile_flags.txt"
|
|
],
|
|
"rootPatterns": [
|
|
{
|
|
"patterns": [
|
|
"compile_commands.json",
|
|
"compile_flags.txt"
|
|
]
|
|
}
|
|
],
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "coc-clangd configuration",
|
|
"properties": {
|
|
"clangd.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable coc-clangd extension"
|
|
},
|
|
"clangd.disableDiagnostics": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Disable diagnostics from clangd"
|
|
},
|
|
"clangd.disableCompletion": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Disable completion source from clangd"
|
|
},
|
|
"clangd.disableSnippetCompletion": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Disable completion snippet from clangd"
|
|
},
|
|
"clangd.compilationDatabasePath": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Specifies the directory containing the compilation database"
|
|
},
|
|
"clangd.path": {
|
|
"type": "string",
|
|
"default": "clangd",
|
|
"description": "The path to clangd executable, e.g.: /usr/bin/clangd"
|
|
},
|
|
"clangd.arguments": {
|
|
"type": "array",
|
|
"default": [],
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"description": "Arguments for clangd server"
|
|
},
|
|
"clangd.trace": {
|
|
"type": "string",
|
|
"description": "Names a file that clangd should log a performance trace to, in chrome trace-viewer JSON format."
|
|
},
|
|
"clangd.fallbackFlags": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"default": [],
|
|
"description": "Extra clang flags used to parse files when no compilation database is found."
|
|
},
|
|
"clangd.semanticHighlighting": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Enable semantic highlighting in clangd, requires jackguo380/vim-lsp-cxx-highlight to work"
|
|
},
|
|
"clangd.showDBChangedNotification": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Show notifications while DB files changed"
|
|
},
|
|
"clangd.serverCompletionRanking": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"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."
|
|
},
|
|
"clangd.checkUpdates": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Check for clangd language server updates on startup."
|
|
},
|
|
"suggest.detailMaxLength": {
|
|
"type": "number",
|
|
"description": "Max length of detail that should be shown in popup menu.",
|
|
"default": 50
|
|
},
|
|
"diagnostic.format": {
|
|
"type": "string",
|
|
"description": "Define the diagnostic format. Available parts: source, code, severity, message",
|
|
"default": "%message\n[%source:%code]"
|
|
}
|
|
}
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "clangd.switchSourceHeader",
|
|
"title": "Switch between source/header"
|
|
},
|
|
{
|
|
"command": "clangd.symbolInfo",
|
|
"title": "Resolve symbol info under the cursor"
|
|
},
|
|
{
|
|
"command": "clangd.install",
|
|
"title": "Install latest clangd language server binary release"
|
|
},
|
|
{
|
|
"command": "clangd.update",
|
|
"title": "Check for updates to clangd language server"
|
|
}
|
|
]
|
|
}
|
|
}
|