Add LSP support to Kotlin

`lsp-mode` has built in support for Kotlin. This makes it automatically used if you use the `+lsp` flag.
This commit is contained in:
Julian DeMille 2019-11-28 21:48:26 -05:00 committed by GitHub
parent 9bd8904838
commit c69a85c803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,10 @@
;;; lang/kotlin/config.el -*- lexical-binding: t; -*- ;;; lang/kotlin/config.el -*- lexical-binding: t; -*-
(use-package! kotlin-mode
:init
(when (featurep! +lsp)
(add-hook 'kotlin-mode-local-vars-hook #'lsp!)))
(after! kotlin-mode (after! kotlin-mode
(set-docsets! 'kotlin-mode "Kotlin") (set-docsets! 'kotlin-mode "Kotlin")