diff --git a/docs/index.org b/docs/index.org index d51c59518..52e25ff7b 100644 --- a/docs/index.org +++ b/docs/index.org @@ -188,7 +188,7 @@ Modules that bring support for a language or group of languages to Emacs. + java =+meghanada +lsp= - TODO + [[file:../modules/lang/javascript/README.org][javascript]] =+lsp= - JavaScript, TypeScript, and CoffeeScript support + julia - TODO -+ kotlin - TODO ++ kotlin =+lsp+= - TODO + [[file:../modules/lang/latex/README.org][latex]] - TODO + lean - TODO + [[file:../modules/lang/ledger/README.org][ledger]] - TODO diff --git a/modules/lang/kotlin/config.el b/modules/lang/kotlin/config.el index 06a1588b8..fb26af8fc 100644 --- a/modules/lang/kotlin/config.el +++ b/modules/lang/kotlin/config.el @@ -1,6 +1,8 @@ ;;; lang/kotlin/config.el -*- lexical-binding: t; -*- (after! kotlin-mode + (when (featurep! +lsp) + (add-hook 'kotlin-mode-local-vars-hook #'lsp!)) (set-docsets! 'kotlin-mode "Kotlin") (map! :map kotlin-mode-map diff --git a/modules/lang/kotlin/doctor.el b/modules/lang/kotlin/doctor.el index 63eabc017..3e8451a82 100644 --- a/modules/lang/kotlin/doctor.el +++ b/modules/lang/kotlin/doctor.el @@ -2,3 +2,7 @@ (unless (executable-find "ktlint") (warn! "ktlint not found. flycheck-kotlin won't work.")) + +(assert! (or (not (featurep! +lsp)) + (featurep! :tools lsp)) + "This module requires (:tools lsp)")