Merge pull request #2122 from juliandemille/patch-1

lang/kotlin: add +lsp flag
This commit is contained in:
Henrik Lissner 2019-11-28 22:04:34 -05:00 committed by GitHub
commit 50cab52766
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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)")