feat(format): add :lang swift formatter

This commit is contained in:
Ellis Kenyő
2022-08-17 07:58:05 +01:00
committed by Ellis Kenyo
parent 7b46177d19
commit c2980d1d7b
2 changed files with 5 additions and 0 deletions

View File

@@ -3,3 +3,7 @@
(assert! (or (not (modulep! +tree-sitter))
(modulep! :tools tree-sitter))
"This module requires (:tools tree-sitter)")
(when (modulep! :editor format)
(unless (executable-find "swiftformat")
(warn! "Couldn't find swiftformat. Formatting will be disabled.")))