doomemacs/modules/lang/swift/config.el
Henrik Lissner cb923eadcc
Add basic LSP support
Still needs to be documented, but includes support for the following
languages:

+ C/C++/ObjC
+ Go
+ Java
+ Javascript
+ OCaml
+ PHP
+ Python
+ Ruby
+ Scala
+ Swift
+ HTML/CSS

Relevant to #460, #716, #1186
2019-02-21 19:13:35 -05:00

25 lines
638 B
EmacsLisp

;;; lang/swift/config.el -*- lexical-binding: t; -*-
(after! swift-mode
(set-repl-handler! 'swift-mode #'run-swift))
(def-package! flycheck-swift
:when (and (featurep! :feature syntax-checker)
(not (featurep! +lsp)))
:after swift-mode
:config (flycheck-swift-setup))
(def-package! company-sourcekit
:when (and (featurep! :completion company)
(not (featurep! +lsp)))
:after swift-mode
:config
(set-company-backend! 'swift-mode '(company-sourcekit company-yasnippet)))
(def-package! lsp-sourcekit
:when (featurep! +lsp)
:after swift-mode
:init (add-hook 'swift-mode-hook #'+lsp|init))