Skip to content

Kotlin#

Server#

For more information about the LSP server, check kotlin-language-server.

Installation#

For more instructions on how to install manually, check here.

Debugger: Not available#

Available configurations#

lsp-clients-kotlin-server-executable#

Type: string

Default: kotlin-language-server

The kotlin-language-server executable to use. Leave as just the executable name to use the default behavior of finding the executable with exec-path.


lsp-kotlin-compiler-jvm-target#

Type: string

Default: 1.8

Specifies the JVM target, e.g. "1.6" or "1.8".


lsp-kotlin-completion-snippets-enabled#

Type: boolean

Default: t

Specifies whether code completion should provide snippets (true) or plain-text items (false).


lsp-kotlin-debug-adapter-enabled#

Type: boolean

Default: t

[Recommended] Specifies whether the debug adapter should be used. When enabled a debugger for Kotlin will be available.


lsp-kotlin-debug-adapter-path#

Type: string

Default: ``

Optionally a custom path to the debug adapter executable.


lsp-kotlin-external-sources-auto-convert-to-kotlin#

Type: boolean

Default: t

Specifies whether decompiled/external classes should be auto-converted to Kotlin.


lsp-kotlin-external-sources-use-kls-scheme#

Type: boolean

Default: t

[Recommended] Specifies whether URIs inside JARs should be represented using the kls-scheme.


lsp-kotlin-inlayhints-enable-chainedhints#

Type: boolean

Default: t

Specifies whether to enable chained hints or not. Requires lsp-inlay-hints-mode.


lsp-kotlin-inlayhints-enable-parameterhints#

Type: boolean

Default: t

Specifies whether to enable parameter hints or not. Requires lsp-inlay-hints-mode.


lsp-kotlin-inlayhints-enable-typehints#

Type: boolean

Default: t

Specifies whether to enable type hints or not. Requires lsp-inlay-hints-mode.


lsp-kotlin-linting-debounce-time#

Type: number

Default: 250

[DEBUG] Specifies the debounce time limit. Lower to increase responsiveness at the cost of possible stability issues.


lsp-kotlin-ondisk-cache-enabled#

Type: boolean

Default: nil

Specifies whether to enable ondisk cache or not. If nil, in-memory cache will be used.


lsp-kotlin-ondisk-cache-path#

Type: string

Default: nil

Path to the ondisk cache if used. If lsp-kotlin-ondisk-cache-enabled is t, but path is nil, then the project root is used as a default.


lsp-kotlin-server-download-url#

Type: string

Default: https://github.com/fwcd/kotlin-language-server/releases/latest/download/server.zip

The URL for the language server download.


lsp-kotlin-trace-server#

Type: (choice (:tag off messages verbose))

Default: off

Traces the communication between VSCode and the Kotlin language server.


lsp-kotlin-workspace-cache-dir#

Type: directory

Default: ~/.emacs.d/workspace/.cache/

LSP kotlin workspace cache directory.


lsp-kotlin-workspace-dir#

Type: directory

Default: ~/.emacs.d/workspace/

LSP kotlin workspace directory.



Last update: February 27, 2024