Merge pull request #2122 from juliandemille/patch-1
lang/kotlin: add +lsp flag
This commit is contained in:
commit
50cab52766
3 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue