Files
my-pi/config/lsp.json

84 lines
2.1 KiB
JSON

{
"version": 1,
"servers": [
{
"id": "typescript-language-server",
"enabled": true,
"include": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts", "**/*.js", "**/*.jsx", "**/*.mjs", "**/*.cjs"],
"exclude": ["**/node_modules/**", "**/dist/**", "**/build/**", "**/coverage/**"],
"rootMarkers": [
"tsconfig.json",
"jsconfig.json",
"package.json",
".git"
],
"bin": "typescript-language-server",
"args": ["--stdio"],
"cwd": "{root}",
"languageIdByExtension": {
".ts": "typescript",
".tsx": "typescriptreact",
".mts": "typescript",
".cts": "typescript",
".js": "javascript",
".jsx": "javascriptreact",
".mjs": "javascript",
".cjs": "javascript"
},
"startupTimeoutMs": 45000,
"diagnosticsWaitMs": 2000,
"initializationOptions": {},
"settings": {}
},
{
"id": "kotlin-lsp",
"enabled": true,
"include": ["**/*.kt", "**/*.kts"],
"exclude": ["**/.gradle/**", "**/build/**"],
"rootMarkers": [
"settings.gradle.kts",
"settings.gradle",
"pom.xml",
"build.gradle.kts",
"build.gradle",
".git"
],
"bin": "kotlin-lsp",
"args": ["--stdio"],
"cwd": "{root}",
"languageIdByExtension": {
".kt": "kotlin",
".kts": "kotlin"
},
"startupTimeoutMs": 120000,
"diagnosticsWaitMs": 3000,
"initializationOptions": {},
"settings": {}
},
{
"id": "jdtls",
"enabled": true,
"include": ["**/*.java"],
"exclude": ["**/.gradle/**", "**/build/**", "**/target/**"],
"rootMarkers": [
"settings.gradle.kts",
"settings.gradle",
"pom.xml",
"build.gradle.kts",
"build.gradle",
".git"
],
"bin": "jdtls",
"args": [],
"cwd": "{root}",
"languageIdByExtension": {
".java": "java"
},
"startupTimeoutMs": 120000,
"diagnosticsWaitMs": 3000,
"initializationOptions": {},
"settings": {}
}
]
}