2022-03-28 15:03:21 +02:00
#+title : :lang swift
#+subtitle : We asked for emoji variables?
#+created : June 15, 2015
#+since : 0.7
2021-10-16 01:28:32 +02:00
* Description :unfold:
This module adds support for the [[https://developer.apple.com/swift/ ][Swift programming language ]] to Doom Emacs.
** Maintainers
*This module needs a maintainer.* [[doom-contrib-maintainer: ][Become a maintainer? ]]
** Module flags
- +lsp ::
2022-09-26 02:19:42 +08:00
Enable LSP support for ~swift-mode~ . Requires [[doom-module::tools lsp ]] and a langserver
2021-10-16 01:28:32 +02:00
(supports sourcekit).
2022-04-09 18:38:04 +03:00
- +tree-sitter ::
Leverages tree-sitter for better syntax highlighting and structural text
2022-09-26 02:19:42 +08:00
editing. Requires [[doom-module::tools tree-sitter ]].
2021-10-16 01:28:32 +02:00
** Packages
2022-09-26 02:19:42 +08:00
- [[doom-package:swift-mode ]]
- if [[doom-module:+lsp ]]
- [[doom-package:lsp-sourcekit ]]
2021-10-16 01:28:32 +02:00
- else
2022-09-26 02:19:42 +08:00
- [[doom-package:company-sourcekit ]] if [[doom-module::completion company ]]
- [[doom-package:flycheck-sourcekit ]] if [[doom-module::checkers syntax ]]
2021-10-16 01:28:32 +02:00
** Hacks
/No hacks documented for this module./
** TODO Changelog
# This section will be machine generated. Don't edit it by hand.
/This module does not have a changelog yet./
* TODO Installation
[[id:01cffea4-3329-45e2-a892-95a384ab2338 ][Enable this module in your ~doom!~ block. ]]
2022-11-19 15:21:08 +00:00
** Formatter
Formatting is handled using the [[doom-module::editor format ]] module via [[https://github.com/nicklockwood/SwiftFormat#command-line-tool ][swiftformat ]].
2021-10-16 01:28:32 +02:00
#+begin_quote
🔨 /This module's prerequisites are not documented./ [[doom-contrib-module: ][Document them? ]]
#+end_quote
* TODO Usage
#+begin_quote
🔨 This module has no usage documentation yet. [[doom-contrib-module: ][Write some? ]]
#+end_quote
* TODO Configuration
#+begin_quote
🔨 This module has no configuration documentation yet. [[doom-contrib-module: ][Write some? ]]
#+end_quote
* Troubleshooting
/There are no known problems with this module./ [[doom-report: ][Report one? ]]
* Frequently asked questions
/This module has no FAQs yet./ [[doom-suggest-faq: ][Ask one? ]]
* TODO Appendix
#+begin_quote
🔨 This module has no appendix yet. [[doom-contrib-module: ][Write one? ]]
#+end_quote