doomemacs/modules/lang/swift/config.el

26 lines
625 B
EmacsLisp
Raw Normal View History

;;; lang/swift/config.el -*- lexical-binding: t; -*-
(after! swift-mode
(set-repl-handler! 'swift-mode #'run-swift))
2017-02-19 18:57:16 -05:00
(use-package! flycheck-swift
:when (and (featurep! :tools flycheck)
(not (featurep! +lsp)))
:after swift-mode
:config (flycheck-swift-setup))
2017-02-19 18:57:16 -05:00
(use-package! company-sourcekit
:when (and (featurep! :completion company)
(not (featurep! +lsp)))
2017-02-19 18:57:16 -05:00
:after swift-mode
:config
(set-company-backend! 'swift-mode '(company-sourcekit company-yasnippet)))
(use-package! lsp-sourcekit
:when (featurep! +lsp)
:after swift-mode
2019-03-02 01:33:54 -05:00
:init (add-hook 'swift-mode-hook #'lsp!))