Initialize it globally and turn it off where needed, instead of enabling it on demand. Also fixes void-function: flycheck-mode errors when :feature syntax-checker is disabled. This is experimental. Indirectly fixes #710
18 lines
425 B
EmacsLisp
18 lines
425 B
EmacsLisp
;;; lang/swift/config.el -*- lexical-binding: t; -*-
|
|
|
|
;; `swift-mode'
|
|
(set-repl-handler! 'swift-mode #'run-swift)
|
|
|
|
|
|
(def-package! flycheck-swift
|
|
:when (featurep! :feature syntax-checker)
|
|
:after swift-mode
|
|
:config (flycheck-swift-setup))
|
|
|
|
|
|
(def-package! company-sourcekit
|
|
:when (featurep! :completion company)
|
|
:after swift-mode
|
|
:config
|
|
(set-company-backend! 'swift-mode '(company-sourcekit company-yasnippet)))
|
|
|