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