Skip to content

Commit

Permalink
Add new lsp-kotlin settings for inlay hints (#4197)
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat authored Oct 24, 2023
1 parent 5236290 commit 413d65a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion clients/lsp-kotlin.el
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,21 @@ to Kotlin."
:type 'boolean
:group 'lsp-kotlin)

(defcustom lsp-kotlin-inlayhints-enable-typehints t
"Specifies whether to enable type hints or not. Requires lsp-inlay-hints-mode."
:type 'boolean
:group 'lsp-kotlin)

(defcustom lsp-kotlin-inlayhints-enable-parameterhints t
"Specifies whether to enable parameter hints or not. Requires lsp-inlay-hints-mode."
:type 'boolean
:group 'lsp-kotlin)

(defcustom lsp-kotlin-inlayhints-enable-chainedhints t
"Specifies whether to enable chained hints or not. Requires lsp-inlay-hints-mode."
:type 'boolean
:group 'lsp-kotlin)

(lsp-register-custom-settings
'(("kotlin.externalSources.autoConvertToKotlin" lsp-kotlin-external-sources-auto-convert-to-kotlin t)
("kotlin.externalSources.useKlsScheme" lsp-kotlin-external-sources-use-kls-scheme t)
Expand All @@ -126,7 +141,10 @@ to Kotlin."
("kotlin.linting.debounceTime" lsp-kotlin-linting-debounce-time)
("kotlin.compiler.jvm.target" lsp-kotlin-compiler-jvm-target)
("kotlin.trace.server" lsp-kotlin-trace-server)
("kotlin.languageServer.path" lsp-clients-kotlin-server-executable)))
("kotlin.languageServer.path" lsp-clients-kotlin-server-executable)
("kotlin.inlayHints.typeHints" lsp-kotlin-inlayhints-enable-typehints t)
("kotlin.inlayHints.parameterHints" lsp-kotlin-inlayhints-enable-parameterhints t)
("kotlin.inlayHints.chainedHints" lsp-kotlin-inlayhints-enable-chainedhints t)))

(defvar lsp-kotlin--language-server-path
(f-join lsp-server-install-dir
Expand Down

0 comments on commit 413d65a

Please sign in to comment.