Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add Kotlin JAVA_HOME example (#38507)
Peter Tripp3217bcb83efd
diff --git a/docs/src/languages/kotlin.md b/docs/src/languages/kotlin.mdindex 3955062a777..60d66f277eb 100644--- a/docs/src/languages/kotlin.md+++ b/docs/src/languages/kotlin.md@@ -11,6 +11,12 @@ Report issues to: [https://github.com/zed-extensions/kotlin/issues](https://githWorkspace configuration options can be passed to the language server via lspsettings in `settings.json`.+The full list of lsp `settings` can be found+[here](https://github.com/fwcd/kotlin-language-server/blob/main/server/src/main/kotlin/org/javacs/kt/Configuration.kt)+under `class Configuration` and initialization_options under `class InitializationOptions`.++### JVM Target+The following example changes the JVM target from `default` (which is 1.8) to`17`:@@ -30,5 +36,20 @@ The following example changes the JVM target from `default` (which is 1.8) to}```-The full list of workspace configuration options can be found-[here](https://github.com/fwcd/kotlin-language-server/blob/main/server/src/main/kotlin/org/javacs/kt/Configuration.kt).+### JAVA_HOME++To use a specific java installation, just specify the `JAVA_HOME` environment variable with:++```json+{+ "lsp": {+ "kotlin-language-server": {+ "binary": {+ "env": {+ "JAVA_HOME": "/Users/whatever/Applications/Work/Android Studio.app/Contents/jbr/Contents/Home"+ }+ }+ }+ }+}+```